LocatorImpl.cpp

Go to the documentation of this file.
00001 // -*- C++ -*-  LocatorImpl.cpp,v 1.6 2003/05/30 03:31:48 kitty Exp
00002 
00003 #include "ACEXML/common/LocatorImpl.h"
00004 
00005 #if !defined (__ACEXML_INLINE__)
00006 # include "ACEXML/common/LocatorImpl.i"
00007 #endif /* __ACEXML_INLINE__ */
00008 
00009 ACEXML_LocatorImpl::ACEXML_LocatorImpl (void)
00010   : publicId_ (0),
00011     systemId_ (0),
00012     lineNumber_ (1),
00013     columnNumber_ (0)
00014 {
00015 }
00016 
00017 ACEXML_LocatorImpl::ACEXML_LocatorImpl (const ACEXML_Char* systemId,
00018                                         const ACEXML_Char* publicId)
00019   : publicId_ (publicId ? ACE::strnew (publicId) : 0),
00020     systemId_ (systemId ? ACE::strnew (systemId) : 0),
00021     lineNumber_ (1),
00022     columnNumber_ (0)
00023 {
00024 }
00025 
00026 
00027 ACEXML_LocatorImpl::ACEXML_LocatorImpl (const ACEXML_Locator& locator)
00028   : publicId_ (locator.getPublicId() ? ACE::strnew(locator.getPublicId ()): 0),
00029     systemId_ (locator.getSystemId() ? ACE::strnew(locator.getSystemId ()): 0),
00030     lineNumber_ (locator.getLineNumber ()),
00031     columnNumber_ (locator.getColumnNumber ())
00032 {
00033 }
00034 
00035 ACEXML_LocatorImpl::~ACEXML_LocatorImpl (void)
00036 {
00037   this->reset();
00038 }
00039 
00040 void
00041 ACEXML_LocatorImpl::reset (void)
00042 {
00043   delete[] this->publicId_;
00044   this->publicId_ = 0;
00045   delete[] this->systemId_;
00046   this->systemId_ = 0;
00047   this->columnNumber_ = 0;
00048   this->lineNumber_ = 1;
00049 }

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