XML_Svc_Conf.h

Go to the documentation of this file.
00001 // -*- C++ -*-
00002 
00003 //=============================================================================
00004 /**
00005  *  @file    XML_Svc_Conf.h
00006  *
00007  *  XML_Svc_Conf.h,v 4.5 2005/10/28 23:55:10 ossama Exp
00008  *
00009  *  @author Nanbor Wang <nanbor@cs.wustl.edu>
00010  */
00011 //=============================================================================
00012 
00013 
00014 #ifndef ACE_XML_SVC_CONF_H
00015 #define ACE_XML_SVC_CONF_H
00016 
00017 #include /**/ "ace/pre.h"
00018 
00019 #include "ace/ACE_export.h"
00020 
00021 #if !defined (ACE_LACKS_PRAGMA_ONCE)
00022 # pragma once
00023 #endif /* ACE_LACKS_PRAGMA_ONCE */
00024 
00025 #if (ACE_USES_CLASSIC_SVC_CONF==0)
00026 
00027 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
00028 
00029 /**
00030  * @class ACE_XML_Svc_Conf
00031  *
00032  * @brief This abstract class defines the common operations
00033  * ACE_Service_Config expects when using the XML Service Config Parser.
00034  *
00035  * When implementing a concret XML_Svc_Conf class, be sure to overload
00036  * the new/delete function so the dynamically created concret XML_Svc_Conf
00037  * instance can be deleted from the original heap in the DLL/SO.  The
00038  * concret XML_Svc_Conf implementation will be put into a DLL/SO that
00039  * ACE applications can link to dynamically using the ACE_DLL class.
00040  * This DLL should include an operation as follow:
00041  *
00042  *   extern "C" ACE_XML_Svc_Conf_Parser * _ACEXML_create_XML_Svc_Conf_Object (void);
00043  *
00044  *
00045  */
00046 
00047 class ACE_Export ACE_XML_Svc_Conf
00048 {
00049 public:
00050   typedef ACE_XML_Svc_Conf *(*Factory)(void);
00051 
00052   virtual ~ACE_XML_Svc_Conf (void) = 0;
00053 
00054   virtual int parse_file (const ACE_TCHAR file[]) = 0;
00055 
00056   virtual int parse_string (const ACE_TCHAR str[]) = 0;
00057 };
00058 
00059 ACE_END_VERSIONED_NAMESPACE_DECL
00060 
00061 #endif /* ACE_USES_CLASSIC_SVC_CONF == 0 */
00062 
00063 #include /**/ "ace/post.h"
00064 
00065 #endif /* ACE_XML_SVC_CONF_H */

Generated on Thu Nov 9 09:42:10 2006 for ACE by doxygen 1.3.6