Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

XML_Svc_Conf.h

Go to the documentation of this file.
00001 /* -*- C++ -*- */
00002 
00003 //=============================================================================
00004 /**
00005  *  @file    XML_Svc_Conf.h
00006  *
00007  *  $Id: XML_Svc_Conf.h,v 1.1.1.1 2003/02/21 18:36:32 chad 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  * @class ACE_XML_Svc_Conf
00028  *
00029  * @brief This abstract class defines the common operations
00030  * ACE_Service_Config expects when using the XML Service Config Parser.
00031  *
00032  * When implementing a concret XML_Svc_Conf class, be sure to overload
00033  * the new/delete function so the dynamically created concret XML_Svc_Conf
00034  * instance can be deleted from the original heap in the DLL/SO.  The
00035  * concret XML_Svc_Conf implementation will be put into a DLL/SO that
00036  * ACE applications can link to dynamically using the ACE_DLL class.
00037  * This DLL should include an operation as follow:
00038  *
00039  *   extern "C" ACE_XML_Svc_Conf_Parser * _ACEXML_create_XML_Svc_Conf_Object (void);
00040  *
00041  *
00042  */
00043 
00044 class ACE_Export ACE_XML_Svc_Conf
00045 {
00046 public:
00047   typedef ACE_XML_Svc_Conf *(*Factory)(void);
00048 
00049   virtual ~ACE_XML_Svc_Conf (void) = 0;
00050 
00051   virtual int parse_file (const ACE_TCHAR file[]) = 0;
00052 
00053   virtual int parse_string (const ACE_TCHAR str[]) = 0;
00054 };
00055 #endif /* ACE_USES_CLASSIC_SVC_CONF == 0 */
00056 
00057 #include "ace/post.h"
00058 
00059 #endif /* ACE_XML_SVC_CONF_H */

Generated on Mon Jun 16 11:22:12 2003 for ACE by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002