本文整理汇总了C++中ObjectFactory::uniqueKeys方法的典型用法代码示例。如果您正苦于以下问题:C++ ObjectFactory::uniqueKeys方法的具体用法?C++ ObjectFactory::uniqueKeys怎么用?C++ ObjectFactory::uniqueKeys使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ObjectFactory
的用法示例。
在下文中一共展示了ObjectFactory::uniqueKeys方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: main
int main(int argc, char *argv[]) {
QCoreApplication app(argc, argv);
app.setAttribute(Qt::AA_Use96Dpi, true);
// Setup our tests factory object.
ObjectFactory testFactory;
testFactory.registerClass<TestAwsAbstractClient>();
testFactory.registerClass<TestAwsAbstractCredentials>();
testFactory.registerClass<TestAwsAbstractRequest>();
testFactory.registerClass<TestAwsAbstractResponse>();
testFactory.registerClass<TestAwsAbstractSignature>();
testFactory.registerClass<TestAwsAnonymousCredentials>();
testFactory.registerClass<TestAwsBasicCredentials>();
testFactory.registerClass<TestAwsEndpoint>();
testFactory.registerClass<TestAwsRegion>();
testFactory.registerClass<TestAwsSignatureV0>();
testFactory.registerClass<TestAwsSignatureV1>();
testFactory.registerClass<TestAwsSignatureV2>();
testFactory.registerClass<TestAwsSignatureV3>();
testFactory.registerClass<TestAwsSignatureV4>();
testFactory.registerClass<TestSqsAddPermissionRequest>();
testFactory.registerClass<TestSqsAddPermissionResponse>();
testFactory.registerClass<TestSqsChangeMessageVisibilityBatchRequest>();
testFactory.registerClass<TestSqsChangeMessageVisibilityBatchResponse>();
testFactory.registerClass<TestSqsChangeMessageVisibilityRequest>();
testFactory.registerClass<TestSqsChangeMessageVisibilityResponse>();
testFactory.registerClass<TestSqsClient>();
testFactory.registerClass<TestSqsCreateQueueRequest>();
testFactory.registerClass<TestSqsCreateQueueResponse>();
testFactory.registerClass<TestSqsDeleteMessageBatchRequest>();
testFactory.registerClass<TestSqsDeleteMessageBatchResponse>();
testFactory.registerClass<TestSqsDeleteMessageRequest>();
testFactory.registerClass<TestSqsDeleteMessageResponse>();
testFactory.registerClass<TestSqsDeleteQueueRequest>();
testFactory.registerClass<TestSqsDeleteQueueResponse>();
testFactory.registerClass<TestSqsError>();
testFactory.registerClass<TestSqsGetQueueAttributesRequest>();
testFactory.registerClass<TestSqsGetQueueAttributesResponse>();
testFactory.registerClass<TestSqsGetQueueUrlRequest>();
testFactory.registerClass<TestSqsGetQueueUrlResponse>();
testFactory.registerClass<TestSqsListDeadLetterSourceQueuesRequest>();
testFactory.registerClass<TestSqsListDeadLetterSourceQueuesResponse>();
testFactory.registerClass<TestSqsListQueuesRequest>();
testFactory.registerClass<TestSqsListQueuesResponse>();
testFactory.registerClass<TestSqsPurgeQueueRequest>();
testFactory.registerClass<TestSqsPurgeQueueResponse>();
testFactory.registerClass<TestSqsReceiveMessageRequest>();
testFactory.registerClass<TestSqsReceiveMessageResponse>();
testFactory.registerClass<TestSqsRemovePermissionRequest>();
testFactory.registerClass<TestSqsRemovePermissionResponse>();
testFactory.registerClass<TestSqsRequest>();
testFactory.registerClass<TestSqsResponse>();
testFactory.registerClass<TestSqsSendMessageBatchRequest>();
testFactory.registerClass<TestSqsSendMessageBatchResponse>();
testFactory.registerClass<TestSqsSendMessageRequest>();
testFactory.registerClass<TestSqsSendMessageResponse>();
testFactory.registerClass<TestSqsSetQueueAttributesRequest>();
testFactory.registerClass<TestSqsSetQueueAttributesResponse>();
// If the user has specified a Test* class name, execute that test class only.
for (int index = 1; index < argc; ++index) {
if (qstrcmp(argv[index], "-classes") == 0) {
foreach (const QByteArray &className, testFactory.uniqueKeys()) {
fprintf(stdout, "%s\n", className.data());
}
return EXIT_SUCCESS;
} else if (qstrncmp(argv[index], "Test", 4) == 0) {