00001 // -*- C++ -*- 00002 00003 //============================================================================= 00004 /** 00005 * @file PI_Server_Loader.h 00006 * 00007 * $Id: PI_Server_Loader.h 87582 2009-11-16 16:04:12Z vzykov $ 00008 */ 00009 //============================================================================= 00010 00011 #ifndef TAO_PI_SERVER_LOADER_H 00012 #define TAO_PI_SERVER_LOADER_H 00013 #include /**/ "ace/pre.h" 00014 00015 #include "tao/PI_Server/pi_server_export.h" 00016 00017 #if !defined (ACE_LACKS_PRAGMA_ONCE) 00018 # pragma once 00019 #endif /* ACE_LACKS_PRAGMA_ONCE */ 00020 00021 #include "tao/PI/PI.h" 00022 #include "tao/Versioned_Namespace.h" 00023 #include "ace/Service_Object.h" 00024 #include "ace/Service_Config.h" 00025 00026 TAO_BEGIN_VERSIONED_NAMESPACE_DECL 00027 00028 class TAO_PI_Server_Export TAO_PI_Server_Loader : public ACE_Service_Object 00029 { 00030 public: 00031 /// Constructor. 00032 TAO_PI_Server_Loader (void); 00033 00034 /// Destructor. 00035 virtual ~TAO_PI_Server_Loader (void); 00036 00037 /// Initialize the PI_Server loader hooks. 00038 virtual int init (int argc, ACE_TCHAR* []); 00039 00040 private: 00041 /// Set to true after init is called. 00042 bool initialized_; 00043 }; 00044 00045 00046 ACE_STATIC_SVC_DECLARE_EXPORT (TAO_PI_Server, TAO_PI_Server_Loader) 00047 ACE_FACTORY_DECLARE (TAO_PI_Server, TAO_PI_Server_Loader) 00048 00049 TAO_END_VERSIONED_NAMESPACE_DECL 00050 00051 #include /**/ "ace/post.h" 00052 #endif /* TAO_PI_SERVER_LOADER_H */