#include <ParserContext.h>
Collaboration diagram for ACEXML_Parser_Context:
Public Member Functions | |
ACEXML_Parser_Context () | |
Default constructor. | |
ACEXML_Parser_Context (ACEXML_InputSource *instream, ACEXML_LocatorImpl *locator) | |
Constructor which initializes the context. | |
bool | operator!= (const ACEXML_Parser_Context &src) |
Comparison operator. | |
virtual | ~ACEXML_Parser_Context () |
Destructor. | |
void | reset (void) |
virtual ACEXML_InputSource * | getInputSource (void) |
Get the underlying input source. | |
virtual ACEXML_LocatorImpl * | getLocator (void) |
Get the underlying locator. | |
virtual void | setInputSource (ACEXML_InputSource *ip) |
Set the underlying input source. | |
virtual void | setLocator (ACEXML_LocatorImpl *locator) |
Set the underlying locator. | |
Private Member Functions | |
ACEXML_Parser_Context (const ACEXML_Parser_Context &src) | |
Copy constructor. | |
ACEXML_Parser_Context & | operator= (const ACEXML_Parser_Context &src) |
Assignment operator. | |
Private Attributes | |
ACEXML_InputSource * | instream_ |
Current input char stream. | |
ACEXML_LocatorImpl * | locator_ |
Current Locator which provides line no., column no. systemId and publicId. |
Definition at line 30 of file ParserContext.h.
ACEXML_INLINE ACEXML_Parser_Context::ACEXML_Parser_Context | ( | ) |
ACEXML_INLINE ACEXML_Parser_Context::ACEXML_Parser_Context | ( | ACEXML_InputSource * | instream, | |
ACEXML_LocatorImpl * | locator | |||
) |
ACEXML_Parser_Context::~ACEXML_Parser_Context | ( | ) | [virtual] |
ACEXML_INLINE ACEXML_Parser_Context::ACEXML_Parser_Context | ( | const ACEXML_Parser_Context & | src | ) | [private] |
ACEXML_INLINE ACEXML_InputSource * ACEXML_Parser_Context::getInputSource | ( | void | ) | [virtual] |
Get the underlying input source.
Definition at line 49 of file ParserContext.inl.
References instream_.
Referenced by ACEXML_Parser::get(), ACEXML_Parser::parse_encoding_decl(), ACEXML_Parser::peek(), and ACEXML_Parser::reset().
00050 { 00051 return this->instream_; 00052 }
ACEXML_INLINE ACEXML_LocatorImpl * ACEXML_Parser_Context::getLocator | ( | void | ) | [virtual] |
Get the underlying locator.
Definition at line 55 of file ParserContext.inl.
References locator_.
Referenced by ACEXML_Parser::get(), and ACEXML_Parser::normalize_systemid().
00056 { 00057 return this->locator_; 00058 }
ACEXML_INLINE bool ACEXML_Parser_Context::operator!= | ( | const ACEXML_Parser_Context & | src | ) |
ACEXML_INLINE ACEXML_Parser_Context & ACEXML_Parser_Context::operator= | ( | const ACEXML_Parser_Context & | src | ) | [private] |
Assignment operator.
Definition at line 39 of file ParserContext.inl.
References instream_, and locator_.
00040 { 00041 ACEXML_Parser_Context tmp (src); 00042 std::swap (this->instream_, tmp.instream_); 00043 std::swap (this->locator_, tmp.locator_); 00044 return *this; 00045 }
ACEXML_INLINE void ACEXML_Parser_Context::reset | ( | void | ) |
ACEXML_INLINE void ACEXML_Parser_Context::setInputSource | ( | ACEXML_InputSource * | ip | ) | [virtual] |
Set the underlying input source.
Definition at line 61 of file ParserContext.inl.
References instream_.
Referenced by ACEXML_Parser::reset().
00062 { 00063 this->instream_ = ip; 00064 }
ACEXML_INLINE void ACEXML_Parser_Context::setLocator | ( | ACEXML_LocatorImpl * | locator | ) | [virtual] |
Set the underlying locator.
Definition at line 67 of file ParserContext.inl.
References locator_.
00068 { 00069 this->locator_ = locator; 00070 }
Current input char stream.
Definition at line 72 of file ParserContext.h.
Referenced by getInputSource(), operator!=(), operator=(), reset(), setInputSource(), and ~ACEXML_Parser_Context().
Current Locator which provides line no., column no. systemId and publicId.
Definition at line 75 of file ParserContext.h.
Referenced by getLocator(), operator!=(), operator=(), reset(), setLocator(), and ~ACEXML_Parser_Context().