mirror of
https://github.com/jezhiggins/arabica
synced 2025-01-06 05:24:35 +01:00
35 lines
587 B
C++
35 lines
587 B
C++
|
/*
|
||
|
* $Id$
|
||
|
*/
|
||
|
|
||
|
#ifdef _MSC_VER
|
||
|
#pragma warning(disable: 4786 4800)
|
||
|
#endif
|
||
|
|
||
|
#include <SAX/ParserConfig.h>
|
||
|
|
||
|
namespace SAX
|
||
|
{
|
||
|
|
||
|
namespace xerces_implemenation_helper
|
||
|
{
|
||
|
void xerces_initializer::doInitialize()
|
||
|
{
|
||
|
if(!count_)
|
||
|
XERCES_CPP_NAMESPACE::XMLPlatformUtils::Initialize();
|
||
|
++count_;
|
||
|
} // doInitialize
|
||
|
|
||
|
void xerces_initializer::doTerminate()
|
||
|
{
|
||
|
--count_;
|
||
|
if (!count_)
|
||
|
XERCES_CPP_NAMESPACE::XMLPlatformUtils::Terminate();
|
||
|
} // doTerminate
|
||
|
|
||
|
int xerces_initializer::count_ = 0;
|
||
|
} //namespace xerces_implemenation_helper
|
||
|
|
||
|
} // namespace SAX
|
||
|
|
||
|
// end of file
|