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

#include <compoundhandler.h>

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

Public Member Functions

 IncludeHandler (IBaseHandler *parent, const char *endtag)
 
virtual ~IncludeHandler ()
 
void startInclude (const QXmlAttributes &attrib)
 
void endInclude ()
 
virtual const IStringname () const
 
virtual const IStringrefId () const
 
virtual bool isLocal () const
 
- Public Member Functions inherited from BaseHandler< IncludeHandler >
 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< IncludeHandler >
 ElementMapper ()
 
virtual ~ElementMapper ()
 
void addStartHandler (const char *key)
 
void addStartHandler (const char *key, IncludeHandler *obj, void(IncludeHandler::*handler)(const QXmlAttributes &))
 
void addEndHandler (const char *key)
 
void addEndHandler (const char *key, IncludeHandler *obj, void(IncludeHandler::*handler)())
 
- Public Member Functions inherited from IBaseHandler
virtual ~IBaseHandler ()
 

Private Attributes

IBaseHandlerm_parent
 
StringImpl m_name
 
StringImpl m_refId
 
bool m_isLocal
 

Additional Inherited Members

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

Detailed Description

Definition at line 39 of file compoundhandler.h.

Constructor & Destructor Documentation

IncludeHandler::IncludeHandler ( IBaseHandler parent,
const char *  endtag 
)

Definition at line 28 of file compoundhandler.cpp.

28  :
29  m_parent(parent)
30 {
32 }
IBaseHandler * m_parent
void addEndHandler(const char *key)
Definition: basehandler.h:101
IncludeHandler::~IncludeHandler ( )
virtual

Definition at line 34 of file compoundhandler.cpp.

35 {
36 }

Member Function Documentation

void IncludeHandler::endInclude ( )

Definition at line 46 of file compoundhandler.cpp.

47 {
50  debug(2,"Found include %s\n",m_name.data());
51 }
const char * data() const
Definition: qstring.h:542
StringImpl m_name
virtual void setDelegate(QXmlDefaultHandler *delegate)=0
IBaseHandler * m_parent
virtual bool IncludeHandler::isLocal ( ) const
inlinevirtual

Implements IInclude.

Definition at line 53 of file compoundhandler.h.

54  { return &m_isLocal; }
virtual const IString* IncludeHandler::name ( ) const
inlinevirtual

Implements IInclude.

Definition at line 49 of file compoundhandler.h.

50  { return &m_name; }
StringImpl m_name
virtual const IString* IncludeHandler::refId ( ) const
inlinevirtual

Implements IInclude.

Definition at line 51 of file compoundhandler.h.

52  { return &m_refId; }
StringImpl m_refId
void IncludeHandler::startInclude ( const QXmlAttributes attrib)

Definition at line 38 of file compoundhandler.cpp.

39 {
40  m_curString = "";
41  m_refId = attrib.value("refid");
42  m_isLocal = attrib.value("local")=="yes";
43  m_parent->setDelegate(this);
44 }
QString value(int index) const
Definition: qxml.cpp:664
virtual void setDelegate(QXmlDefaultHandler *delegate)=0
StringImpl m_refId
IBaseHandler * m_parent

Member Data Documentation

bool IncludeHandler::m_isLocal
private

Definition at line 60 of file compoundhandler.h.

StringImpl IncludeHandler::m_name
private

Definition at line 58 of file compoundhandler.h.

IBaseHandler* IncludeHandler::m_parent
private

Definition at line 57 of file compoundhandler.h.

StringImpl IncludeHandler::m_refId
private

Definition at line 59 of file compoundhandler.h.


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