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