summaryrefslogtreecommitdiff
path: root/TAO/CIAO/tools/Config_Handlers/Utils/XML_Helper.h
diff options
context:
space:
mode:
authorWilliam R. Otte <wotte@dre.vanderbilt.edu>2006-04-21 16:29:20 +0000
committerWilliam R. Otte <wotte@dre.vanderbilt.edu>2006-04-21 16:29:20 +0000
commitf8342c1cae5d6cdd44019dc108b43049bdf42ef0 (patch)
tree68f88172a83e302343439af630db4597d0214764 /TAO/CIAO/tools/Config_Handlers/Utils/XML_Helper.h
parentf56eb6a0c5f7632fdcec55169ebe6a34b85917b1 (diff)
downloadATCD-f8342c1cae5d6cdd44019dc108b43049bdf42ef0.tar.gz
Fri Apr 21 16:24:46 UTC 2006 William R. Otte <wotte@dre.vanderbilt.edu>
Diffstat (limited to 'TAO/CIAO/tools/Config_Handlers/Utils/XML_Helper.h')
-rw-r--r--TAO/CIAO/tools/Config_Handlers/Utils/XML_Helper.h18
1 files changed, 14 insertions, 4 deletions
diff --git a/TAO/CIAO/tools/Config_Handlers/Utils/XML_Helper.h b/TAO/CIAO/tools/Config_Handlers/Utils/XML_Helper.h
index 50c05f3472d..40b16e6bafa 100644
--- a/TAO/CIAO/tools/Config_Handlers/Utils/XML_Helper.h
+++ b/TAO/CIAO/tools/Config_Handlers/Utils/XML_Helper.h
@@ -17,6 +17,8 @@
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
+#include "ace/Singleton.h"
+#include "ace/Null_Mutex.h"
#include "xercesc/util/XercesDefs.hpp"
@@ -47,15 +49,15 @@ namespace CIAO
/// Create a DOM tree
XERCES_CPP_NAMESPACE::DOMDocument *
create_dom (const ACE_TCHAR *uri);
-
+
XERCES_CPP_NAMESPACE::DOMDocument *
create_dom (const ACE_TCHAR *root,
const ACE_TCHAR *ns);
-
+
//Writes out a DOMDocument to an XML file
bool write_DOM (XERCES_CPP_NAMESPACE::DOMDocument *doc,
- ACE_TCHAR *file);
-
+ const ACE_TCHAR *file);
+
bool is_initialized (void) const;
protected:
@@ -69,8 +71,16 @@ namespace CIAO
bool initialized_;
XERCES_CPP_NAMESPACE::DOMImplementation *impl_;
};
+
+ CIAO_XML_UTILS_SINGLETON_DECLARE (ACE_Singleton,
+ XML_Helper,
+ ACE_Null_Mutex);
+
+ typedef ACE_Singleton < XML_Helper, ACE_Null_Mutex > XML_Helper_Singleton;
+#define XML_HELPER XML_Helper_Singleton::instance ()
}
}
+
#include /**/ "ace/post.h"
#endif/*CIAO_CONFIG_HANDLERS_XML_HELPER_H*/