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 ()
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),
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 ()
41 ACEXML_LocatorImpl::reset ()
43 delete[] this->publicId_
;
45 delete[] this->systemId_
;
47 this->columnNumber_
= 0;
48 this->lineNumber_
= 1;