Separatista
Separatista::DocumentReader Class Reference

Public Member Functions

 ~DocumentReader ()
 
int getErrorCount () const
 Get the count of Errors from xerces.
 
const ErrorType::ErrorCode getErrorCode (int index) const
 Get the code for error a index.
 
const wchar_t * getErrorMessage (int index) const
 Get the message for error at index.
 
void warning (const xercesc::SAXParseException &e)
 
void error (const xercesc::SAXParseException &e)
 
void fatalError (const xercesc::SAXParseException &e)
 
void resetErrors ()
 
IOErrorCode loadSchema (const wchar_t *pNameSpace)
 
IOErrorCode parseFile (const wchar_t *pPath)
 
SeparatistaDocumentgetDocument (bool bWithAutoMagic=true)
 

Protected Member Functions

void appendError (ErrorType::ErrorCode etc, const xercesc::SAXParseException &e)
 

Constructor & Destructor Documentation

◆ ~DocumentReader()

DocumentReader::~DocumentReader ( )

Destroys all messages in the error list.

Member Function Documentation

◆ error()

void DocumentReader::error ( const xercesc::SAXParseException &  e)
See also
SAXParseException

◆ fatalError()

void DocumentReader::fatalError ( const xercesc::SAXParseException &  e)
See also
SAXParseException

◆ getDocument()

SeparatistaDocument * DocumentReader::getDocument ( bool  bWithAutoMagic = true)

Returns the document as SeparatistaDocument. This is a new instance that will be owned by the caller. The caller should free the object.

Parameters
bWithAutoMagicWether the SeparatistaDocument should have AutoMagic enabled or not.
Exceptions
InvalidValueException
InvalidChoiceException

◆ loadSchema()

IOErrorCode DocumentReader::loadSchema ( const wchar_t *  pNameSpace)

Platform specific implementation. Loads the schema for the namespace to the parser.

Parameters
pNameSpaceThe namespace URI to load the schema for.
Remarks
The windows implementation is found in dll.cpp
Returns
Error code

◆ parseFile()

IOErrorCode DocumentReader::parseFile ( const wchar_t *  pPath)

Parse the document at path.

◆ resetErrors()

void DocumentReader::resetErrors ( )
See also
SAXParseException

◆ warning()

void DocumentReader::warning ( const xercesc::SAXParseException &  e)
See also
SAXParseException

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