Public Member Functions | Private Member Functions | Private Attributes

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.

Detailed Description

Definition at line 30 of file ParserContext.h.


Constructor & Destructor Documentation

ACEXML_INLINE ACEXML_Parser_Context::ACEXML_Parser_Context (  ) 

Default constructor.

Definition at line 8 of file ParserContext.inl.

  : instream_ (0),
    locator_ (0)
{

}

ACEXML_INLINE ACEXML_Parser_Context::ACEXML_Parser_Context ( ACEXML_InputSource instream,
ACEXML_LocatorImpl locator 
)

Constructor which initializes the context.

Definition at line 16 of file ParserContext.inl.

  : instream_ (instream),
    locator_ (locator)
{

}

ACEXML_Parser_Context::~ACEXML_Parser_Context (  )  [virtual]

Destructor.

Definition at line 9 of file ParserContext.cpp.

{
  delete this->instream_;
  this->instream_ = 0;
  delete this->locator_;
  this->locator_ = 0;
}

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

Copy constructor.

Definition at line 25 of file ParserContext.inl.

  : instream_ (src.instream_),
    locator_ (src.locator_)
{

}


Member Function Documentation

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

Get the underlying input source.

Definition at line 49 of file ParserContext.inl.

{
  return this->instream_;
}

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

Get the underlying locator.

Definition at line 55 of file ParserContext.inl.

{
  return this->locator_;
}

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

Comparison operator.

Definition at line 33 of file ParserContext.inl.

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

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.

{
  ACEXML_Parser_Context tmp (src);
  std::swap (this->instream_, tmp.instream_);
  std::swap (this->locator_, tmp.locator_);
  return *this;
}

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 73 of file ParserContext.inl.

{
  this->instream_ = 0;
  this->locator_ = 0;
}

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

Set the underlying input source.

Definition at line 61 of file ParserContext.inl.

{
  this->instream_ = ip;
}

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

Set the underlying locator.

Definition at line 67 of file ParserContext.inl.

{
  this->locator_ = locator;
}


Member Data Documentation

Current input char stream.

Definition at line 72 of file ParserContext.h.

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

Definition at line 75 of file ParserContext.h.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines