OpenLexocad  28.0
Base::XMLReader Class Reference

#include <Reader.h>

Inheritance diagram for Base::XMLReader:
Base::AbstractXMLReader

Public Member Functions

 XMLReader (const Base::String &FileName, std::istream &)
 opens the file and read the first element More...
 
 ~XMLReader ()
 
bool isValid () const
 
Parser handling
void read (void)
 
const char * localName (void)
 get the local name of the current Element More...
 
void readElement (const char *ElementName=0)
 reads until it findes a start element (<name>) or start-end element (<name>) (with special name if given) More...
 
void readEndElement (const char *ElementName=0)
 reads until it findes a end element (with special name if given) More...
 
void readCharacters (void)
 reads until it findes characters More...
 
- Public Member Functions inherited from Base::AbstractXMLReader
virtual ~AbstractXMLReader ()=default
 

Attribute handling

unsigned int getAttributeCount (void) const
 get the numbers of attributes of the current Element More...
 
bool hasAttribute (const char *AttrName) const
 check if the read element has a special attribute More...
 
long getAttributeAsInteger (const char *AttrName) const
 returns the named attribute as an interer (does type checking) More...
 
long getAttributeAsInteger (const wchar_t *AttrName) const
 returns the named attribute as an interer (does type checking) More...
 
double getAttributeAsDouble (const char *AttrName) const
 returns the named attribute as an double floating point (does type checking) More...
 
double getAttributeAsDouble (const wchar_t *AttrName) const
 returns the named attribute as an double floating point (does type checking) More...
 
Base::String getAttribute (const char *AttrName) const
 returns the named attribute as an double floating point (does type checking) More...
 
Base::String getAttribute (const wchar_t *AttrName) const
 returns the named attribute as an double floating point (does type checking) More...
 
std::string getAttributeString (const char *AttrName) const
 
Base::String getText ()
 Returns the text of Characters. More...
 
virtual bool readInline ()
 

Constructor & Destructor Documentation

◆ XMLReader()

Base::XMLReader::XMLReader ( const Base::String FileName,
std::istream &   
)

opens the file and read the first element

◆ ~XMLReader()

Base::XMLReader::~XMLReader ( )

Member Function Documentation

◆ getAttribute() [1/2]

Base::String Base::XMLReader::getAttribute ( const char *  AttrName) const
inlinevirtual

returns the named attribute as an double floating point (does type checking)

Implements Base::AbstractXMLReader.

◆ getAttribute() [2/2]

Base::String Base::XMLReader::getAttribute ( const wchar_t *  AttrName) const
inlinevirtual

returns the named attribute as an double floating point (does type checking)

Implements Base::AbstractXMLReader.

◆ getAttributeAsDouble() [1/2]

double Base::XMLReader::getAttributeAsDouble ( const char *  AttrName) const
inlinevirtual

returns the named attribute as an double floating point (does type checking)

Implements Base::AbstractXMLReader.

◆ getAttributeAsDouble() [2/2]

double Base::XMLReader::getAttributeAsDouble ( const wchar_t *  AttrName) const
inlinevirtual

returns the named attribute as an double floating point (does type checking)

Implements Base::AbstractXMLReader.

◆ getAttributeAsInteger() [1/2]

long Base::XMLReader::getAttributeAsInteger ( const char *  AttrName) const
inlinevirtual

returns the named attribute as an interer (does type checking)

Implements Base::AbstractXMLReader.

◆ getAttributeAsInteger() [2/2]

long Base::XMLReader::getAttributeAsInteger ( const wchar_t *  AttrName) const
inlinevirtual

returns the named attribute as an interer (does type checking)

Implements Base::AbstractXMLReader.

◆ getAttributeCount()

unsigned int Base::XMLReader::getAttributeCount ( void  ) const
inlinevirtual

get the numbers of attributes of the current Element

Implements Base::AbstractXMLReader.

◆ getAttributeString()

std::string Base::XMLReader::getAttributeString ( const char *  AttrName) const
inlinevirtual

◆ getText()

Base::String Base::XMLReader::getText ( )
inlinevirtual

Returns the text of Characters.

Implements Base::AbstractXMLReader.

◆ hasAttribute()

bool Base::XMLReader::hasAttribute ( const char *  AttrName) const
inlinevirtual

check if the read element has a special attribute

Implements Base::AbstractXMLReader.

◆ isValid()

bool Base::XMLReader::isValid ( ) const
inlinevirtual

◆ localName()

const char* Base::XMLReader::localName ( void  )
inlinevirtual

get the local name of the current Element

Implements Base::AbstractXMLReader.

◆ read()

void Base::XMLReader::read ( void  )
inlinevirtual

◆ readCharacters()

void Base::XMLReader::readCharacters ( void  )
inlinevirtual

reads until it findes characters

Implements Base::AbstractXMLReader.

◆ readElement()

void Base::XMLReader::readElement ( const char *  ElementName = 0)
inlinevirtual

reads until it findes a start element (<name>) or start-end element (<name>) (with special name if given)

Implements Base::AbstractXMLReader.

◆ readEndElement()

void Base::XMLReader::readEndElement ( const char *  ElementName = 0)
inlinevirtual

reads until it findes a end element (with special name if given)

Implements Base::AbstractXMLReader.

◆ readInline()

virtual bool Base::XMLReader::readInline ( )
inlinevirtual

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