#include <mainhandler.h>
Public Member Functions | |
virtual void | startCompound (const QXmlAttributes &attrib) |
virtual void | startMember (const QXmlAttributes &attrib) |
virtual void | endMember () |
virtual void | startName (const QXmlAttributes &attrib) |
virtual void | endName () |
MainHandler () | |
virtual | ~MainHandler () |
ICompoundIterator * | compounds () const |
ICompound * | compoundById (const char *id) const |
virtual ICompound * | compoundByName (const char *name) const |
virtual ICompound * | memberById (const char *id) const |
virtual ICompoundIterator * | memberByName (const char *name) const |
virtual void | release () |
void | setDebugLevel (int level) |
bool | readXMLDir (const char *dirName) |
void | dump () |
void | unloadCompound (CompoundHandler *ch) |
Public Member Functions inherited from BaseHandler< MainHandler > | |
BaseHandler () | |
virtual | ~BaseHandler () |
virtual bool | startDocument () |
virtual bool | startElement (const QString &namespaceURI, const QString &localName, const QString &name, const QXmlAttributes &attrib) |
virtual bool | endElement (const QString &namespaceURI, const QString &localName, const QString &name) |
bool | skippedEntity (const QString &s) |
virtual bool | characters (const QString &ch) |
void | setDelegate (QXmlDefaultHandler *delegate) |
QXmlDefaultHandler * | delegate () const |
void | setFallBackHandler (IFallBackHandler *h) |
IFallBackHandler * | fallBackHandler () const |
void | setDocumentLocator (QXmlLocator *locator) |
Public Member Functions inherited from QXmlDefaultHandler | |
QXmlDefaultHandler () | |
virtual | ~QXmlDefaultHandler () |
bool | endDocument () |
bool | startPrefixMapping (const QString &prefix, const QString &uri) |
bool | endPrefixMapping (const QString &prefix) |
bool | ignorableWhitespace (const QString &ch) |
bool | processingInstruction (const QString &target, const QString &data) |
bool | warning (const QXmlParseException &exception) |
bool | error (const QXmlParseException &exception) |
bool | fatalError (const QXmlParseException &exception) |
bool | notationDecl (const QString &name, const QString &publicId, const QString &systemId) |
bool | unparsedEntityDecl (const QString &name, const QString &publicId, const QString &systemId, const QString ¬ationName) |
bool | resolveEntity (const QString &publicId, const QString &systemId, QXmlInputSource *&ret) |
bool | startDTD (const QString &name, const QString &publicId, const QString &systemId) |
bool | endDTD () |
bool | startCDATA () |
bool | endCDATA () |
bool | comment (const QString &ch) |
bool | attributeDecl (const QString &eName, const QString &aName, const QString &type, const QString &valueDefault, const QString &value) |
bool | internalEntityDecl (const QString &name, const QString &value) |
bool | externalEntityDecl (const QString &name, const QString &publicId, const QString &systemId) |
QString | errorString () |
Public Member Functions inherited from QXmlContentHandler | |
virtual | ~QXmlContentHandler () |
Public Member Functions inherited from QXmlErrorHandler | |
virtual | ~QXmlErrorHandler () |
Public Member Functions inherited from QXmlDTDHandler | |
virtual | ~QXmlDTDHandler () |
Public Member Functions inherited from QXmlEntityResolver | |
virtual | ~QXmlEntityResolver () |
Public Member Functions inherited from QXmlLexicalHandler | |
virtual | ~QXmlLexicalHandler () |
Public Member Functions inherited from QXmlDeclHandler | |
virtual | ~QXmlDeclHandler () |
Public Member Functions inherited from ElementMapper< MainHandler > | |
ElementMapper () | |
virtual | ~ElementMapper () |
void | addStartHandler (const char *key) |
void | addStartHandler (const char *key, MainHandler *obj, void(MainHandler::*handler)(const QXmlAttributes &)) |
void | addEndHandler (const char *key) |
void | addEndHandler (const char *key, MainHandler *obj, void(MainHandler::*handler)()) |
Public Member Functions inherited from IBaseHandler | |
virtual | ~IBaseHandler () |
Private Attributes | |
CompoundEntry * | m_curCompound |
MemberEntry * | m_curMember |
QList< CompoundEntry > | m_compounds |
QDict< CompoundEntry > | m_compoundDict |
QDict< CompoundEntry > | m_compoundNameDict |
QDict< MemberEntry > | m_memberDict |
QDict< QList< CompoundEntry > > | m_memberNameDict |
QString | m_xmlDirName |
QDict< CompoundHandler > | m_compoundsLoaded |
bool | m_insideMember |
Additional Inherited Members | |
Public Types inherited from BaseHandler< MainHandler > | |
typedef ElementMapper< MainHandler >::StartElementHandlerT | StartElementHandlerT |
typedef ElementMapper< MainHandler >::EndElementHandlerT | EndElementHandlerT |
Public Types inherited from ElementMapper< MainHandler > | |
typedef StartElementHandler | StartElementHandlerT |
typedef EndElementHandler | EndElementHandlerT |
Static Public Attributes inherited from LocatorContainer | |
static QXmlLocator * | s_theLocator =0 |
Protected Attributes inherited from BaseHandler< MainHandler > | |
QString | m_curString |
QString | m_skipUntil |
int | m_skipCount |
QXmlDefaultHandler * | m_delegateHandler |
IFallBackHandler * | m_fallBackHandler |
Protected Attributes inherited from ElementMapper< MainHandler > | |
QDict< StartElementHandlerT > | m_startHandlers |
QDict< EndElementHandlerT > | m_endHandlers |
Definition at line 45 of file mainhandler.h.
MainHandler::MainHandler | ( | ) |
Definition at line 91 of file mainhandler.cpp.
|
virtual |
Definition at line 109 of file mainhandler.cpp.
|
virtual |
Returns a compound given its unique id. If you have a compound id this function is much more efficient than iterating over the compound list. Returns 0 if the id is not valid.
Implements IDoxygen.
Definition at line 209 of file mainhandler.cpp.
|
virtual |
Returns a compound given its name (including the scope). Returns 0 if the name is not found in the project.
Implements IDoxygen.
Definition at line 246 of file mainhandler.cpp.
|
virtual |
Returns an iterator that can be used to iterate over the list of compounds found in the project.
Implements IDoxygen.
Definition at line 204 of file mainhandler.cpp.
void MainHandler::dump | ( | ) |
Definition at line 167 of file mainhandler.cpp.
|
virtual |
Definition at line 149 of file mainhandler.cpp.
|
virtual |
Definition at line 127 of file mainhandler.cpp.
|
virtual |
Returns an interface to a compound containing a member given it the member's id. Given the ICompound interface one can use the same id to obtain the IMember interface.
id | The member id. |
Implements IDoxygen.
Definition at line 255 of file mainhandler.cpp.
|
virtual |
Returns a list of all compounds containing at least one members with a certain name. Each compound can be asked to return the list of members with that name.
name | The name of the member. |
Implements IDoxygen.
Definition at line 264 of file mainhandler.cpp.
|
virtual |
Reads an XML directory produced by doxygen and builds up a data structure representing the contents of the XML files in the directory.
Implements IDoxygen.
Definition at line 183 of file mainhandler.cpp.
|
virtual |
Releases the memory for the object hierarchy obtained by createdObjecModelFromXML(). First release all iterators before calling this function.
Implements IDoxygen.
Definition at line 283 of file mainhandler.cpp.
|
virtual |
Sets the debug level.
Implements IDoxygen.
Definition at line 162 of file mainhandler.cpp.
|
virtual |
Definition at line 114 of file mainhandler.cpp.
|
virtual |
Definition at line 140 of file mainhandler.cpp.
|
virtual |
Definition at line 122 of file mainhandler.cpp.
void MainHandler::unloadCompound | ( | CompoundHandler * | ch | ) |
Definition at line 239 of file mainhandler.cpp.
|
private |
Definition at line 73 of file mainhandler.h.
|
private |
Definition at line 74 of file mainhandler.h.
|
private |
Definition at line 72 of file mainhandler.h.
|
private |
Definition at line 78 of file mainhandler.h.
|
private |
Definition at line 70 of file mainhandler.h.
|
private |
Definition at line 71 of file mainhandler.h.
|
private |
Definition at line 79 of file mainhandler.h.
|
private |
Definition at line 75 of file mainhandler.h.
|
private |
Definition at line 76 of file mainhandler.h.
|
private |
Definition at line 77 of file mainhandler.h.