Example #1
0
int output(const char* filename,
           bool isystem,
           bool useExceptions,
           bool useVirtualBase,
           const char* stringTypeName,
           const char* objectTypeName,
           const char* indent,
           bool skeleton,
           bool generic)
{
    Forward forward(filename);
    getSpecification()->accept(&forward);
    forward.generateForwardDeclarations();

    printCxx(filename, stringTypeName, objectTypeName, useExceptions, useVirtualBase, indent);
    if (skeleton)
    {
        printSkeleton(filename, isystem, indent);
    }
    if (generic)
    {
        printTemplate(filename, stringTypeName, objectTypeName, useExceptions, isystem, indent);
    }
    return EXIT_SUCCESS;
}
Example #2
0
void SkeletonGraph::printSkeleton(SkeletonGraph::Node *node, unsigned int level) {
    std::string nodeInfo;
    ++level;

    for (unsigned int i = 1; i < level+1; ++i) {
        nodeInfo.append("--");
    }

    nodeInfo.append(">");
    nodeInfo.append(node->name());

    std::cerr << nodeInfo << std::endl;

    for (unsigned int i = 0; i < node->nChilds(); ++i) {
        printSkeleton(node->child(i), level);
    }
}