2003-03-20 17:29:08 +01:00
|
|
|
/*
|
|
|
|
* $Id$
|
|
|
|
*/
|
|
|
|
#ifdef _MSC_VER
|
|
|
|
#pragma warning(disable: 4786 4800)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include <SAX/ParserConfig.h>
|
2003-09-12 16:09:13 +02:00
|
|
|
#include <SAX/wrappers/saxxerces.h>
|
2003-03-21 13:54:47 +01:00
|
|
|
|
2003-03-20 17:29:08 +01:00
|
|
|
namespace SAX
|
|
|
|
{
|
|
|
|
|
2003-09-12 16:09:13 +02:00
|
|
|
namespace XercesImpl
|
2003-03-20 17:29:08 +01:00
|
|
|
{
|
|
|
|
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
|
2003-09-12 16:09:13 +02:00
|
|
|
// end of file
|