template<class E> class XMLIO_ElementReader

Parses global element of a xml file, optional decides by name to skip content

Inheritance:


Public Methods

[more] XMLIO_ElementReader ()
[more] ~XMLIO_ElementReader ()
[more]virtual XMLIO_Element* XMLIO_startTag (const XMLIO_string& my_tag, XMLIO_Attributes &my_attributes)
[more]virtual void set_doc_name (const XMLIO_string& new_name)
This is the name of the parsed and saved elements
[more]virtual const XMLIO_string& get_doc_name (const XMLIO_string& new_name)
[more]virtual E* get_element ()
[more]virtual const char* toString ()
[more]virtual void read_file (const char* filename)
Reads the elements from a xml file

Protected Fields

[more]XMLIO_string doc_name
Saves the name of the elements to parse
[more]E* element


Inherited from XMLIO_Document:

Public Fields

oXMLIO_string characters
oXMLIO_Element* current_element
oXMLIO_stack<XMLIO_Element*> element_stack
ochar* indent

Public Methods

ovoid changeIndent(int change)
ovoid setIndent(int new_indent)
oint close()
oint flush() const
oint open(const XMLIO_string& filename, const XMLIO_string& access_mode)
oint open(FILE* file, const XMLIO_string& my_access_mode)
oint readDocument()
oint write(const XMLIO_strstream& char_data) const
oint write(const XMLIO_string& char_data) const
oint write(const char* text) const
oint writef(const char* templ, ...) const
oint writeEndl() const
oint writeEndlIndent() const
oint writeElement(XMLIO_Element* element)
oint writeComment(const char* templ, ... ) const
oint writeCDSect(const XMLIO_string& CDSect) const
oint writeIndent() const
oint writeEndTag(const XMLIO_string& tag) const
oint writeStartTag(const XMLIO_string& tag) const
oint writeStartTag(const XMLIO_string& tag, const XMLIO_Attributes& attributes) const

Protected Fields

oXMLIO_string xml_filename

Protected Methods

ovirtual int XMLIO_writeProlog()
ovirtual int XMLIO_writeXMLDeclaration()
ovirtual int XMLIO_writeDocTypeDeclaration()
ovirtual int XMLIO_writeTrailer()

Private Fields

oFILE* xml_file
oXMLIO_AccessMode access_mode
oXMLIO_FileType xml_file_type
omutable int current_indent
ochar* indent_block

Private Methods

oint writeAttribute(const XMLIO_string& key, const XMLIO_string& value) const
oint writeAttributes(const XMLIO_Attributes& attributes) const
oint writeEmptyElement(const XMLIO_string& tag) const
oint writeEmptyElement(const XMLIO_string& tag, const XMLIO_Attributes& attributes) const

Private Members

oenum XMLIO_AccessMode
oenum XMLIO_FileType


Inherited from XMLIO_Element:

Public Fields

oXMLIO_string tag
oXMLIO_Attributes attributes
oXMLIO_IndentationType xmlio_indent_type

Public Methods

ovirtual void XMLIO_endTag(const XMLIO_string& tag)
ovirtual void XMLIO_getCharacters(const XMLIO_string& characters)
ovirtual void XMLIO_getComment(const XMLIO_string& comment)
ovirtual void XMLIO_getProcessingInstruction(const XMLIO_string& target, const XMLIO_string& instructions)
ovirtual void XMLIO_finishedReading()
ovirtual bool XMLIO_remove() const
ovirtual const int XMLIO_writeContent(XMLIO_Document& doc)
ovirtual const XMLIO_string& XMLIO_getName() const
ovirtual XMLIO_Attributes& XMLIO_getAttributes()
ovirtual bool XMLIO_isEmpty() const
ovirtual void print() const


Documentation

Parses global element of a xml file, optional decides by name to skip content
o XMLIO_ElementReader()

o ~XMLIO_ElementReader()

ovirtual XMLIO_Element* XMLIO_startTag(const XMLIO_string& my_tag, XMLIO_Attributes &my_attributes)

ovirtual void set_doc_name(const XMLIO_string& new_name)
This is the name of the parsed and saved elements

ovirtual const XMLIO_string& get_doc_name(const XMLIO_string& new_name)

ovirtual E* get_element()

ovirtual const char* toString()

ovirtual void read_file(const char* filename)
Reads the elements from a xml file

oXMLIO_string doc_name
Saves the name of the elements to parse

oE* element


This class has no child classes.

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.