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