#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. |
|
Default constructor.
Definition at line 7 of file ParserContext.inl.
|
|
Constructor which initializes the context.
Definition at line 15 of file ParserContext.inl.
|
|
Destructor.
Definition at line 9 of file ParserContext.cpp. References instream_.
|
|
Copy constructor.
Definition at line 24 of file ParserContext.inl.
|
|
Get the underlying input source.
Definition at line 48 of file ParserContext.inl. References instream_. Referenced by ACEXML_Parser::get(), and ACEXML_Parser::peek().
00049 { 00050 return this->instream_; 00051 } |
|
Get the underlying locator.
Definition at line 54 of file ParserContext.inl. Referenced by ACEXML_Parser::get(), and ACEXML_Parser::normalize_systemid().
00055 { 00056 return this->locator_; 00057 } |
|
Comparison operator.
Definition at line 32 of file ParserContext.inl. References instream_, and locator_.
|
|
Assignment operator.
Definition at line 38 of file ParserContext.inl. References instream_, locator_, and ACE_Swap< T >::swap().
00039 { 00040 ACEXML_Parser_Context tmp (src); 00041 ACE_Swap<ACEXML_InputSource*>::swap (this->instream_, tmp.instream_); 00042 ACE_Swap<ACEXML_LocatorImpl*>::swap (this->locator_, tmp.locator_); 00043 return *this; 00044 } |
|
Reset the parser context. This does not free up the memory. Only sets it to zero. Meant to be called after a context is pushed on to a stack. Definition at line 72 of file ParserContext.inl. References instream_.
|
|
Set the underlying input source.
Definition at line 60 of file ParserContext.inl. References instream_.
00061 { 00062 this->instream_ = ip; 00063 } |
|
Set the underlying locator.
Definition at line 66 of file ParserContext.inl.
00067 { 00068 this->locator_ = locator; 00069 } |
|
Current input char stream.
Definition at line 73 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 76 of file ParserContext.h. Referenced by operator!=(), and operator=(). |