arabica/SAX/wrappers/saxxerces.cpp
jez_higgins 924103481e Corrected for Xerces 2.2.0 release - depending on the compiler, the Xerces stuff maybe in its own namespace
couple of VC++.Net changes
Xerces initialiser stuff does not need to be templated, so isn't :)
2003-03-20 16:29:08 +00:00

35 lines
No EOL
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