3 //=============================================================================
7 * @author Nanbor Wang <nanbor@cs.wustl.edu>
9 //=============================================================================
12 #ifndef ACE_XML_SVC_CONF_H
13 #define ACE_XML_SVC_CONF_H
15 #include /**/ "ace/pre.h"
17 #include /**/ "ace/ACE_export.h"
19 #if !defined (ACE_LACKS_PRAGMA_ONCE)
21 #endif /* ACE_LACKS_PRAGMA_ONCE */
23 #if (ACE_USES_CLASSIC_SVC_CONF==0)
25 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
28 * @class ACE_XML_Svc_Conf
30 * @brief This abstract class defines the common operations
31 * ACE_Service_Config expects when using the XML Service Config Parser.
33 * When implementing a concret XML_Svc_Conf class, be sure to overload
34 * the new/delete function so the dynamically created concret XML_Svc_Conf
35 * instance can be deleted from the original heap in the DLL/SO. The
36 * concret XML_Svc_Conf implementation will be put into a DLL/SO that
37 * ACE applications can link to dynamically using the ACE_DLL class.
38 * This DLL should include an operation as follow:
40 * extern "C" ACE_XML_Svc_Conf_Parser * _ACEXML_create_XML_Svc_Conf_Object ();
43 class ACE_Export ACE_XML_Svc_Conf
46 typedef ACE_XML_Svc_Conf
*(*Factory
)();
48 virtual ~ACE_XML_Svc_Conf () = 0;
50 virtual int parse_file (const ACE_TCHAR file
[]) = 0;
52 virtual int parse_string (const ACE_TCHAR str
[]) = 0;
55 ACE_END_VERSIONED_NAMESPACE_DECL
57 #endif /* ACE_USES_CLASSIC_SVC_CONF == 0 */
59 #include /**/ "ace/post.h"
61 #endif /* ACE_XML_SVC_CONF_H */