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

Node representing a list of named items. More...

#include <dochandler.h>

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

Public Member Functions

virtual void startVariableList (const QXmlAttributes &attrib)
 
virtual void endVariableList ()
 
virtual void startVarListEntry (const QXmlAttributes &attrib)
 
virtual void startListItem (const QXmlAttributes &attrib)
 
 VariableListHandler (IBaseHandler *parent)
 
virtual ~VariableListHandler ()
 
virtual Kind kind () const
 
virtual IDocIteratorentries () const
 
- Public Member Functions inherited from BaseHandler< VariableListHandler >
 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< VariableListHandler >
 ElementMapper ()
 
virtual ~ElementMapper ()
 
void addStartHandler (const char *key)
 
void addStartHandler (const char *key, VariableListHandler *obj, void(VariableListHandler::*handler)(const QXmlAttributes &))
 
void addEndHandler (const char *key)
 
void addEndHandler (const char *key, VariableListHandler *obj, void(VariableListHandler::*handler)())
 
- Public Member Functions inherited from IBaseHandler
virtual ~IBaseHandler ()
 

Private Attributes

IBaseHandlerm_parent
 
QList< VariableListEntryHandlerm_entries
 
VariableListEntryHandlerm_curEntry
 

Friends

class VariableListIterator
 

Additional Inherited Members

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

Detailed Description

Node representing a list of named items.

Definition at line 753 of file dochandler.h.

Constructor & Destructor Documentation

VariableListHandler::VariableListHandler ( IBaseHandler parent)

Definition at line 1027 of file dochandler.cpp.

1028  : m_parent(parent)
1029 {
1034 }
virtual void startVarListEntry(const QXmlAttributes &attrib)
QList< VariableListEntryHandler > m_entries
Definition: dochandler.h:773
virtual void endVariableList()
IBaseHandler * m_parent
Definition: dochandler.h:772
virtual void startListItem(const QXmlAttributes &attrib)
void addStartHandler(const char *key)
Definition: basehandler.h:91
void setAutoDelete(bool enable)
Definition: qlist.h:99
const bool TRUE
Definition: qglobal.h:371
void addEndHandler(const char *key)
Definition: basehandler.h:101
VariableListHandler::~VariableListHandler ( )
virtual

Definition at line 1036 of file dochandler.cpp.

1037 {
1038 }

Member Function Documentation

void VariableListHandler::endVariableList ( )
virtual

Definition at line 1046 of file dochandler.cpp.

1047 {
1048  debug(2,"end variablelist\n");
1049  m_parent->setDelegate(0);
1050 }
virtual void setDelegate(QXmlDefaultHandler *delegate)=0
IBaseHandler * m_parent
Definition: dochandler.h:772
IDocIterator * VariableListHandler::entries ( ) const
virtual

Definition at line 1066 of file dochandler.cpp.

1067 {
1068  return new VariableListIterator(*this);
1069 }
friend class VariableListIterator
Definition: dochandler.h:756
virtual Kind VariableListHandler::kind ( ) const
inlinevirtual

Definition at line 768 of file dochandler.h.

void VariableListHandler::startListItem ( const QXmlAttributes attrib)
virtual

Definition at line 1060 of file dochandler.cpp.

1061 {
1062  ASSERT(m_curEntry!=0);
1063  m_curEntry->startListItem(attrib);
1064 }
VariableListEntryHandler * m_curEntry
Definition: dochandler.h:774
virtual void startListItem(const QXmlAttributes &attrib)
Definition: dochandler.cpp:986
#define ASSERT(x)
Definition: qglobal.h:590
void VariableListHandler::startVariableList ( const QXmlAttributes attrib)
virtual

Definition at line 1040 of file dochandler.cpp.

1041 {
1042  m_parent->setDelegate(this);
1043  debug(2,"start variablelist\n");
1044 }
virtual void setDelegate(QXmlDefaultHandler *delegate)=0
IBaseHandler * m_parent
Definition: dochandler.h:772
void VariableListHandler::startVarListEntry ( const QXmlAttributes attrib)
virtual

Definition at line 1052 of file dochandler.cpp.

1053 {
1055  vle->startVarListEntry(attrib);
1056  m_curEntry = vle;
1057  m_entries.append(vle);
1058 }
QList< VariableListEntryHandler > m_entries
Definition: dochandler.h:773
void append(const type *d)
Definition: qlist.h:73
VariableListEntryHandler * m_curEntry
Definition: dochandler.h:774
virtual void startVarListEntry(const QXmlAttributes &attrib)
Definition: dochandler.cpp:974

Friends And Related Function Documentation

friend class VariableListIterator
friend

Definition at line 756 of file dochandler.h.

Member Data Documentation

VariableListEntryHandler* VariableListHandler::m_curEntry
private

Definition at line 774 of file dochandler.h.

QList<VariableListEntryHandler> VariableListHandler::m_entries
private

Definition at line 773 of file dochandler.h.

IBaseHandler* VariableListHandler::m_parent
private

Definition at line 772 of file dochandler.h.


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