Cleanup ACE_HAS_PTHREAD_SIGMASK_PROTOTYPE, all platforms support it so far as I can...
[ACE_TAO.git] / ACE / ACEXML / common / LocatorImpl.cpp
blob47501f5736834956ede39cb49355f2084585ce25
1 // -*- C++ -*-
3 #include "ACEXML/common/LocatorImpl.h"
5 #if !defined (__ACEXML_INLINE__)
6 # include "ACEXML/common/LocatorImpl.inl"
7 #endif /* __ACEXML_INLINE__ */
9 ACEXML_LocatorImpl::ACEXML_LocatorImpl ()
10 : publicId_ (0),
11 systemId_ (0),
12 lineNumber_ (1),
13 columnNumber_ (0)
17 ACEXML_LocatorImpl::ACEXML_LocatorImpl (const ACEXML_Char* systemId,
18 const ACEXML_Char* publicId)
19 : publicId_ (publicId ? ACE::strnew (publicId) : 0),
20 systemId_ (systemId ? ACE::strnew (systemId) : 0),
21 lineNumber_ (1),
22 columnNumber_ (0)
27 ACEXML_LocatorImpl::ACEXML_LocatorImpl (const ACEXML_Locator& locator)
28 : publicId_ (locator.getPublicId() ? ACE::strnew(locator.getPublicId ()): 0),
29 systemId_ (locator.getSystemId() ? ACE::strnew(locator.getSystemId ()): 0),
30 lineNumber_ (locator.getLineNumber ()),
31 columnNumber_ (locator.getColumnNumber ())
35 ACEXML_LocatorImpl::~ACEXML_LocatorImpl ()
37 this->reset();
40 void
41 ACEXML_LocatorImpl::reset ()
43 delete[] this->publicId_;
44 this->publicId_ = 0;
45 delete[] this->systemId_;
46 this->systemId_ = 0;
47 this->columnNumber_ = 0;
48 this->lineNumber_ = 1;