Public Member Functions | Private Attributes | Friends | List of all members
EdgeLabelHandler Class Reference

#include <graphhandler.h>

Inheritance diagram for EdgeLabelHandler:
IEdgeLabel BaseHandler< EdgeLabelHandler > QXmlDefaultHandler ElementMapper< EdgeLabelHandler > LocatorContainer IBaseHandler QXmlContentHandler QXmlErrorHandler QXmlDTDHandler QXmlEntityResolver QXmlLexicalHandler QXmlDeclHandler

Public Member Functions

 EdgeLabelHandler (IBaseHandler *parent)
 
virtual ~EdgeLabelHandler ()
 
void startEdgeLabel (const QXmlAttributes &attrib)
 
void endEdgeLabel ()
 
virtual const IStringlabel () const
 
- Public Member Functions inherited from BaseHandler< EdgeLabelHandler >
 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)
 
QXmlDefaultHandlerdelegate () const
 
void setFallBackHandler (IFallBackHandler *h)
 
IFallBackHandlerfallBackHandler () 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 &notationName)
 
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< EdgeLabelHandler >
 ElementMapper ()
 
virtual ~ElementMapper ()
 
void addStartHandler (const char *key)
 
void addStartHandler (const char *key, EdgeLabelHandler *obj, void(EdgeLabelHandler::*handler)(const QXmlAttributes &))
 
void addEndHandler (const char *key)
 
void addEndHandler (const char *key, EdgeLabelHandler *obj, void(EdgeLabelHandler::*handler)())
 
- Public Member Functions inherited from IBaseHandler
virtual ~IBaseHandler ()
 

Private Attributes

IBaseHandlerm_parent
 
StringImpl m_label
 

Friends

class EdgeLabelIterator
 

Additional Inherited Members

- Public Types inherited from BaseHandler< EdgeLabelHandler >
typedef ElementMapper< EdgeLabelHandler >::StartElementHandlerT StartElementHandlerT
 
typedef ElementMapper< EdgeLabelHandler >::EndElementHandlerT EndElementHandlerT
 
- Public Types inherited from ElementMapper< EdgeLabelHandler >
typedef StartElementHandler StartElementHandlerT
 
typedef EndElementHandler EndElementHandlerT
 
- Static Public Attributes inherited from LocatorContainer
static QXmlLocators_theLocator =0
 
- Protected Attributes inherited from BaseHandler< EdgeLabelHandler >
QString m_curString
 
QString m_skipUntil
 
int m_skipCount
 
QXmlDefaultHandlerm_delegateHandler
 
IFallBackHandlerm_fallBackHandler
 
- Protected Attributes inherited from ElementMapper< EdgeLabelHandler >
QDict< StartElementHandlerTm_startHandlers
 
QDict< EndElementHandlerTm_endHandlers
 

Detailed Description

Definition at line 125 of file graphhandler.h.

Constructor & Destructor Documentation

EdgeLabelHandler::EdgeLabelHandler ( IBaseHandler parent)

Definition at line 191 of file graphhandler.cpp.

192  : m_parent(parent)
193 {
195 }
IBaseHandler * m_parent
Definition: graphhandler.h:139
void addEndHandler(const char *key)
Definition: basehandler.h:101
EdgeLabelHandler::~EdgeLabelHandler ( )
virtual

Definition at line 197 of file graphhandler.cpp.

198 {
199 }

Member Function Documentation

void EdgeLabelHandler::endEdgeLabel ( )

Definition at line 207 of file graphhandler.cpp.

208 {
210  m_parent->setDelegate(0);
211 }
IBaseHandler * m_parent
Definition: graphhandler.h:139
virtual void setDelegate(QXmlDefaultHandler *delegate)=0
StringImpl m_label
Definition: graphhandler.h:140
virtual const IString* EdgeLabelHandler::label ( ) const
inlinevirtual

Implements IEdgeLabel.

Definition at line 136 of file graphhandler.h.

136 { return &m_label; }
StringImpl m_label
Definition: graphhandler.h:140
void EdgeLabelHandler::startEdgeLabel ( const QXmlAttributes attrib)

Definition at line 201 of file graphhandler.cpp.

202 {
203  m_parent->setDelegate(this);
204  m_curString="";
205 }
IBaseHandler * m_parent
Definition: graphhandler.h:139
virtual void setDelegate(QXmlDefaultHandler *delegate)=0

Friends And Related Function Documentation

friend class EdgeLabelIterator
friend

Definition at line 127 of file graphhandler.h.

Member Data Documentation

StringImpl EdgeLabelHandler::m_label
private

Definition at line 140 of file graphhandler.h.

IBaseHandler* EdgeLabelHandler::m_parent
private

Definition at line 139 of file graphhandler.h.


The documentation for this class was generated from the following files: