ParserContext.inl

Go to the documentation of this file.
00001 // -*- C++ -*-
00002 //
00003 // ParserContext.inl,v 1.5 2004/04/23 03:45:34 ossama Exp
00004 
00005 
00006 ACEXML_INLINE
00007 ACEXML_Parser_Context::ACEXML_Parser_Context()
00008   : instream_ (0),
00009     locator_ (0)
00010 {
00011 
00012 }
00013 
00014 ACEXML_INLINE
00015 ACEXML_Parser_Context::ACEXML_Parser_Context (ACEXML_InputSource* instream,
00016                                               ACEXML_LocatorImpl* locator)
00017   : instream_ (instream),
00018     locator_ (locator)
00019 {
00020 
00021 }
00022 
00023 ACEXML_INLINE
00024 ACEXML_Parser_Context::ACEXML_Parser_Context (const ACEXML_Parser_Context& src)
00025   : instream_ (src.instream_),
00026     locator_ (src.locator_)
00027 {
00028 
00029 }
00030 
00031 ACEXML_INLINE bool
00032 ACEXML_Parser_Context::operator!= (const ACEXML_Parser_Context& src)
00033 {
00034   return (this->instream_ != src.instream_ && this->locator_ != src.locator_);
00035 }
00036 
00037 ACEXML_INLINE ACEXML_Parser_Context&
00038 ACEXML_Parser_Context::operator= (const ACEXML_Parser_Context& src)
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 }
00045 
00046 
00047 ACEXML_INLINE ACEXML_InputSource*
00048 ACEXML_Parser_Context::getInputSource (void)
00049 {
00050   return this->instream_;
00051 }
00052 
00053 ACEXML_INLINE ACEXML_LocatorImpl*
00054 ACEXML_Parser_Context::getLocator (void)
00055 {
00056   return this->locator_;
00057 }
00058 
00059 ACEXML_INLINE void
00060 ACEXML_Parser_Context::setInputSource (ACEXML_InputSource* ip)
00061 {
00062   this->instream_ = ip;
00063 }
00064 
00065 ACEXML_INLINE void
00066 ACEXML_Parser_Context::setLocator (ACEXML_LocatorImpl* locator)
00067 {
00068   this->locator_ = locator;
00069 }
00070 
00071 ACEXML_INLINE void
00072 ACEXML_Parser_Context::reset (void)
00073 {
00074   this->instream_ = 0;
00075   this->locator_ = 0;
00076 }

Generated on Thu Nov 9 11:45:38 2006 for ACEXML by doxygen 1.3.6