summaryrefslogtreecommitdiff
path: root/ace/XML_Svc_Conf.h
diff options
context:
space:
mode:
authornanbor <nanbor@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2002-05-08 21:54:10 +0000
committernanbor <nanbor@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2002-05-08 21:54:10 +0000
commit0ecf5205b86fec6836445d8df3272cc613b83ea9 (patch)
tree010302338ac8df945f024f8f90d1d9d7cd2b2356 /ace/XML_Svc_Conf.h
parente7eaa5dec5d01f5094ff207feea5ebb0d224b1c6 (diff)
downloadATCD-0ecf5205b86fec6836445d8df3272cc613b83ea9.tar.gz
ChangeLogTag:Wed May 8 15:15:41 2002 Nanbor Wang <nanbor@cs.wustl.edu>
Diffstat (limited to 'ace/XML_Svc_Conf.h')
-rw-r--r--ace/XML_Svc_Conf.h54
1 files changed, 54 insertions, 0 deletions
diff --git a/ace/XML_Svc_Conf.h b/ace/XML_Svc_Conf.h
new file mode 100644
index 00000000000..855504d34b5
--- /dev/null
+++ b/ace/XML_Svc_Conf.h
@@ -0,0 +1,54 @@
+/* -*- C++ -*- */
+
+//=============================================================================
+/**
+ * @file XML_Svc_Conf.h
+ *
+ * $Id$
+ *
+ * @author Nanbor Wang <nanbor@cs.wustl.edu>
+ */
+//=============================================================================
+
+
+#ifndef ACE_XML_SVC_CONF_H
+#define ACE_XML_SVC_CONF_H
+
+#include "ace/pre.h"
+
+#include "ace/config-all.h"
+
+#if (ACE_USES_CLASSIC_SVC_CONF == 0)
+/**
+ * @class ACE_XML_Svc_Conf
+ *
+ * @brief This abstract class defines the common operations
+ * ACE_Service_Config expects when using the XML Service Config Parser.
+ *
+ * When implementing a concret XML_Svc_Conf class, be sure to overload
+ * the new/delete function so the dynamically created concret XML_Svc_Conf
+ * instance can be deleted from the original heap in the DLL/SO. The
+ * concret XML_Svc_Conf implementation will be put into a DLL/SO that
+ * ACE applications can link to dynamically using the ACE_DLL class.
+ * This DLL should include an operation as follow:
+ *
+ * extern "C" ACE_XML_Svc_Conf_Parser * _ACEXML_create_XML_Svc_Conf_Object (void);
+ *
+ *
+ */
+class ACE_Export ACE_XML_Svc_Conf
+{
+public:
+ typedef ACE_XML_Svc_Conf *(*Factory)(void);
+
+ virtual ~ACE_XML_Svc_Conf (void) = 0;
+
+ virtual int parse_file (const ACE_TCHAR file[]) = 0;
+
+ virtual int parse_string (const ACE_TCHAR str[]) = 0;
+};
+#endif /* ACE_USES_CLASSIC_SVC_CONF == 0 */
+
+#include "ace/post.h"
+
+#endif /* ACE_XML_SVC_CONF_H */