SectionHandler::SectionHandler(IBaseHandler *parent) : m_parent(parent) { //printf("SectionHandler::SectionHandler()\n"); m_members.setAutoDelete(TRUE); addEndHandler("sectiondef",this,&SectionHandler::endSection); addStartHandler("memberdef",this,&SectionHandler::startMember); addStartHandler("header",this,&SectionHandler::startHeader); addEndHandler("header",this,&SectionHandler::endHeader); }
NodeHandler::NodeHandler(GraphHandler *gh) : m_parent(gh), m_graph(gh) { addEndHandler("node",this,&NodeHandler::endNode); addStartHandler("link",this,&NodeHandler::startLink); addEndHandler("link",this,&NodeHandler::endLink); addStartHandler("label",this,&NodeHandler::startLabel); addEndHandler("label",this,&NodeHandler::endLabel); addStartHandler("childnode",this,&NodeHandler::startChildNode); m_children.setAutoDelete(TRUE); }
EnumValueHandler::EnumValueHandler(IBaseHandler *parent) : m_parent(parent), m_brief(0), m_detailed(0), m_linkedTextHandler(0) { addEndHandler("enumvalue",this,&EnumValueHandler::endEnumValue); addStartHandler("name",this,&EnumValueHandler::startName); addEndHandler("name",this,&EnumValueHandler::endName); addStartHandler("initializer",this,&EnumValueHandler::startInitializer); addStartHandler("briefdescription",this,&EnumValueHandler::startBriefDesc); addStartHandler("detaileddescription",this,&EnumValueHandler::startDetailedDesc); m_initializer.setAutoDelete(TRUE); }
ChildNodeHandler::ChildNodeHandler(IBaseHandler *parent,GraphHandler *gh) : m_parent(parent), m_graph(gh) { addEndHandler("childnode",this,&ChildNodeHandler::endChildNode); addStartHandler("edgelabel",this,&ChildNodeHandler::startEdgeLabel); m_edgeLabels.setAutoDelete(TRUE); }
MainHandler::MainHandler() : m_compoundDict(2999), m_compoundNameDict(2999), m_memberDict(12251), m_memberNameDict(12251), m_compoundsLoaded(1009) { m_compounds.setAutoDelete(TRUE); m_memberNameDict.setAutoDelete(TRUE); addStartHandler("doxygenindex"); addEndHandler("doxygenindex"); addStartHandler("compound",this,&MainHandler::startCompound); addEndHandler("compound"); addStartHandler("member",this,&MainHandler::startMember); addEndHandler("member",this,&MainHandler::endMember); addStartHandler("name",this,&MainHandler::startName); addEndHandler("name",this,&MainHandler::endName); m_curCompound = 0; m_insideMember = FALSE; }
GraphHandler::GraphHandler(IBaseHandler *parent,const char *endTag) : m_parent(parent) { addEndHandler(endTag,this,&GraphHandler::endGraph); addStartHandler("node",this,&GraphHandler::startNode); m_nodes.setAutoDelete(TRUE); m_nodeDict = new QDict<NodeHandler>(1009); }
LinkedTextHandler::LinkedTextHandler(IBaseHandler *parent, QList<LinkedTextImpl> &children ) : m_parent(parent), m_children(children) { addStartHandler("ref",this,&LinkedTextHandler::startRef); addEndHandler("ref",this,&LinkedTextHandler::endRef); m_children.setAutoDelete(TRUE); m_ref=0; }
ParamHandler::ParamHandler(IBaseHandler *parent) : m_brief(0), m_parent(parent) { addEndHandler("param",this,&ParamHandler::endParam); addStartHandler("type",this,&ParamHandler::startType); addStartHandler("declname"); addEndHandler("declname",this,&ParamHandler::endDeclName); addStartHandler("defname"); addEndHandler("defname",this,&ParamHandler::endDefName); addStartHandler("array"); addEndHandler("array",this,&ParamHandler::endArray); addStartHandler("attribute"); addEndHandler("attribute",this,&ParamHandler::endAttrib); addStartHandler("briefdescription",this,&ParamHandler::startBriefDesc); addStartHandler("defval",this,&ParamHandler::startDefVal); m_linkedTextHandler = 0; }
TemplateParamListHandler::TemplateParamListHandler(IBaseHandler *parent) : m_parent(parent) { addStartHandler("param",this,&TemplateParamListHandler::startParam); addEndHandler("templateparamlist",this,&TemplateParamListHandler::endTemplateParamList); }
MemberHandler::MemberHandler(IBaseHandler *parent) : m_parent(parent), m_compound(0), m_brief(0), m_detailed(0), m_inbody(0) { //printf("MemberHandler::MemberHandler() %p\n",this); addEndHandler("memberdef",this,&MemberHandler::endMember); addStartHandler("templateparamlist",this,&MemberHandler::startTemplateParamList); addEndHandler("templateparamlist",this,&MemberHandler::endTemplateParamList); addStartHandler("type",this,&MemberHandler::startType); addStartHandler("definition",this,&MemberHandler::startDefinition); addEndHandler("definition",this,&MemberHandler::endDefinition); addStartHandler("argsstring",this,&MemberHandler::startArgsString); addEndHandler("argsstring",this,&MemberHandler::endArgsString); addStartHandler("name",this,&MemberHandler::startName); addEndHandler("name",this,&MemberHandler::endName); addStartHandler("read",this,&MemberHandler::startRead); addEndHandler("read",this,&MemberHandler::endRead); addStartHandler("write",this,&MemberHandler::startWrite); addEndHandler("write",this,&MemberHandler::endWrite); addStartHandler("reimplements",this,&MemberHandler::startReimplements); addEndHandler("reimplements",this,&MemberHandler::endReimplements); addStartHandler("reimplementedby",this,&MemberHandler::startReimplementedBy); addEndHandler("reimplementedby",this,&MemberHandler::endReimplementedBy); addStartHandler("param",this,&MemberHandler::startParam); addStartHandler("enumvalue",this,&MemberHandler::startEnumValue2); addEndHandler("enumvalue",this,&MemberHandler::endMember); addStartHandler("initializer",this,&MemberHandler::startInitializer); addStartHandler("exceptions",this,&MemberHandler::startException); addStartHandler("briefdescription",this,&MemberHandler::startBriefDesc); addStartHandler("detaileddescription",this,&MemberHandler::startDetailedDesc); addStartHandler("inbodydescription",this,&MemberHandler::startInbodyDesc); addStartHandler("location",this,&MemberHandler::startLocation); addEndHandler("location"); addStartHandler("references",this,&MemberHandler::startReferences); addEndHandler("references",this,&MemberHandler::endReferences); addStartHandler("referencedby",this,&MemberHandler::startReferencedBy); addEndHandler("referencedby",this,&MemberHandler::endReferencedBy); m_type.setAutoDelete(TRUE); m_initializer.setAutoDelete(TRUE); m_exception.setAutoDelete(TRUE); m_params.setAutoDelete(TRUE); m_references.setAutoDelete(TRUE); m_referencedBy.setAutoDelete(TRUE); m_reimplements = 0; m_reimplementedBy.setAutoDelete(TRUE); m_enumValues.setAutoDelete(TRUE); m_linkedTextHandler = 0; m_defLine=0; m_bodyStart=0; m_bodyEnd=0; m_insideTemplateParamList=FALSE; m_hasTemplateParamList=FALSE; }
CompoundHandler::CompoundHandler(const QString &xmlDir) : m_titleHandler(0), m_includeDependencyGraph(0), m_includedByDependencyGraph(0), m_templateParamList(0), m_brief(0), m_detailed(0), m_inheritanceGraph(0), m_collaborationGraph(0), m_programListing(0), m_members(0), m_xmlDir(xmlDir), m_refCount(1), m_memberDict(257), m_memberNameDict(257), m_mainHandler(0) { m_superClasses.setAutoDelete(TRUE); m_subClasses.setAutoDelete(TRUE); m_sections.setAutoDelete(TRUE); m_memberNameDict.setAutoDelete(TRUE); m_innerCompounds.setAutoDelete(TRUE); m_includes.setAutoDelete(TRUE); m_includedBy.setAutoDelete(TRUE); addStartHandler("doxygen"); addEndHandler("doxygen"); addStartHandler("compounddef",this,&CompoundHandler::startCompound); addEndHandler("compounddef",this,&CompoundHandler::endCompound); addStartHandler("compoundname"); addEndHandler("compoundname",this,&CompoundHandler::endCompoundName); addStartHandler("title",this,&CompoundHandler::startTitle); addStartHandler("basecompoundref",this,&CompoundHandler::startSuperClass); addEndHandler("basecompoundref",this,&CompoundHandler::endSuperClass); addStartHandler("derivedcompoundref",this,&CompoundHandler::startSubClass); addEndHandler("derivedcompoundref",this,&CompoundHandler::endSubClass); addStartHandler("includes",this,&CompoundHandler::startIncludes); addStartHandler("includedby",this,&CompoundHandler::startIncludedBy); addStartHandler("incdepgraph",this,&CompoundHandler::startIncludeDependencyGraph); addStartHandler("invincdepgraph",this,&CompoundHandler::startIncludedByDependencyGraph); addStartHandler("innerdir",this,&CompoundHandler::startInnerDir); addEndHandler("innerdir"); addStartHandler("innerfile",this,&CompoundHandler::startInnerFile); addEndHandler("innerfile"); addStartHandler("innerclass",this,&CompoundHandler::startInnerClass); addEndHandler("innerclass"); addStartHandler("innernamespace",this,&CompoundHandler::startInnerNamespace); addEndHandler("innernamespace"); addStartHandler("innerpage",this,&CompoundHandler::startInnerPage); addEndHandler("innerpage"); addStartHandler("innergroup",this,&CompoundHandler::startInnerGroup); addEndHandler("innergroup"); addStartHandler("templateparamlist",this,&CompoundHandler::startTemplateParamList); addStartHandler("sectiondef",this,&CompoundHandler::startSection); addStartHandler("briefdescription",this,&CompoundHandler::startBriefDesc); addStartHandler("detaileddescription",this,&CompoundHandler::startDetailedDesc); addStartHandler("inheritancegraph",this,&CompoundHandler::startInheritanceGraph); addStartHandler("collaborationgraph",this,&CompoundHandler::startCollaborationGraph); addStartHandler("programlisting",this,&CompoundHandler::startProgramListing); addStartHandler("location",this,&CompoundHandler::startLocation); addEndHandler("location"); addStartHandler("listofallmembers",this,&CompoundHandler::startListOfAllMembers); }