#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 8 of file ParserContext.inl.
|
|
||||||||||||
|
Constructor which initializes the context.
Definition at line 16 of file ParserContext.inl.
|
|
|
Destructor.
Definition at line 9 of file ParserContext.cpp. References instream_.
|
|
|
Copy constructor.
Definition at line 25 of file ParserContext.inl.
|
|
|
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 }
|
|
|
Get the underlying locator.
Definition at line 55 of file ParserContext.inl. Referenced by ACEXML_Parser::get(), and ACEXML_Parser::normalize_systemid().
00056 {
00057 return this->locator_;
00058 }
|
|
|
Comparison operator.
Definition at line 33 of file ParserContext.inl. References instream_, and locator_.
|
|
|
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 }
|
|
|
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 73 of file ParserContext.inl. References instream_.
|
|
|
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 }
|
|
|
Set the underlying locator.
Definition at line 67 of file ParserContext.inl.
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 operator!=(), and operator=(). |
1.3.6