blob: 182d554805bcc80c505949a022a3cdd4e5991a21 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
|
// -*- 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/ACE_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
#if (ACE_USES_CLASSIC_SVC_CONF==0)
ACE_BEGIN_VERSIONED_NAMESPACE_DECL
/**
* @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;
};
ACE_END_VERSIONED_NAMESPACE_DECL
#endif /* ACE_USES_CLASSIC_SVC_CONF == 0 */
#include /**/ "ace/post.h"
#endif /* ACE_XML_SVC_CONF_H */
|