当前位置: 首页>>代码示例>>C++>>正文


C++ ObjectFactory::uniqueKeys方法代码示例

本文整理汇总了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) {
开发者ID:,项目名称:,代码行数:67,代码来源:


注:本文中的ObjectFactory::uniqueKeys方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。