ACEXML_Parser_Context Class Reference

#include <ParserContext.h>

Collaboration diagram for ACEXML_Parser_Context:

Collaboration graph
[legend]
List of all members.

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_InputSourcegetInputSource (void)
 Get the underlying input source.

virtual ACEXML_LocatorImplgetLocator (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_Contextoperator= (const ACEXML_Parser_Context &src)
 Assignment operator.


Private Attributes

ACEXML_InputSourceinstream_
 Current input char stream.

ACEXML_LocatorImpllocator_
 Current Locator which provides line no., column no. systemId and publicId.


Constructor & Destructor Documentation

ACEXML_INLINE ACEXML_Parser_Context::ACEXML_Parser_Context  ) 
 

Default constructor.

Definition at line 7 of file ParserContext.inl.

00008   : instream_ (0),
00009     locator_ (0)
00010 {
00011 
00012 }

ACEXML_INLINE ACEXML_Parser_Context::ACEXML_Parser_Context ACEXML_InputSource instream,
ACEXML_LocatorImpl locator
 

Constructor which initializes the context.

Definition at line 15 of file ParserContext.inl.

00017   : instream_ (instream),
00018     locator_ (locator)
00019 {
00020 
00021 }

ACEXML_Parser_Context::~ACEXML_Parser_Context  )  [virtual]
 

Destructor.

Definition at line 9 of file ParserContext.cpp.

References instream_.

00010 {
00011   delete this->instream_;
00012   this->instream_ = 0;
00013   delete this->locator_;
00014   this->locator_ = 0;
00015 }

ACEXML_INLINE ACEXML_Parser_Context::ACEXML_Parser_Context const ACEXML_Parser_Context src  )  [private]
 

Copy constructor.

Definition at line 24 of file ParserContext.inl.

00025   : instream_ (src.instream_),
00026     locator_ (src.locator_)
00027 {
00028 
00029 }


Member Function Documentation

ACEXML_INLINE ACEXML_InputSource * ACEXML_Parser_Context::getInputSource void   )  [virtual]
 

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 }

ACEXML_INLINE ACEXML_LocatorImpl * ACEXML_Parser_Context::getLocator void   )  [virtual]
 

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 }

ACEXML_INLINE bool ACEXML_Parser_Context::operator!= const ACEXML_Parser_Context src  ) 
 

Comparison operator.

Definition at line 32 of file ParserContext.inl.

References instream_, and locator_.

00033 {
00034   return (this->instream_ != src.instream_ && this->locator_ != src.locator_);
00035 }

ACEXML_INLINE ACEXML_Parser_Context & ACEXML_Parser_Context::operator= const ACEXML_Parser_Context src  )  [private]
 

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 }

ACEXML_INLINE void ACEXML_Parser_Context::reset void   ) 
 

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_.

00073 {
00074   this->instream_ = 0;
00075   this->locator_ = 0;
00076 }

ACEXML_INLINE void ACEXML_Parser_Context::setInputSource ACEXML_InputSource ip  )  [virtual]
 

Set the underlying input source.

Definition at line 60 of file ParserContext.inl.

References instream_.

00061 {
00062   this->instream_ = ip;
00063 }

ACEXML_INLINE void ACEXML_Parser_Context::setLocator ACEXML_LocatorImpl locator  )  [virtual]
 

Set the underlying locator.

Definition at line 66 of file ParserContext.inl.

00067 {
00068   this->locator_ = locator;
00069 }


Member Data Documentation

ACEXML_InputSource* ACEXML_Parser_Context::instream_ [private]
 

Current input char stream.

Definition at line 73 of file ParserContext.h.

Referenced by getInputSource(), operator!=(), operator=(), reset(), setInputSource(), and ~ACEXML_Parser_Context().

ACEXML_LocatorImpl* ACEXML_Parser_Context::locator_ [private]
 

Current Locator which provides line no., column no. systemId and publicId.

Definition at line 76 of file ParserContext.h.

Referenced by operator!=(), and operator=().


The documentation for this class was generated from the following files:
Generated on Thu Nov 9 11:48:04 2006 for ACEXML by doxygen 1.3.6