Merge pull request #2309 from mitza-oci/warnings
[ACE_TAO.git] / TAO / tao / TransportCurrent / Current_Loader.h
blob2b4302b5c78f9990b0bb686bb795d504f5b6853a
1 /* -*- C++ -*- */
3 //=============================================================================
4 /**
5 * @file Current_Loader.h
7 * @author Iliyan Jeliazkov <iliyan@ociweb.com>
8 */
9 //=============================================================================
12 #ifndef TAO_TRANSPORT_CURRENT_LOADER_H
13 #define TAO_TRANSPORT_CURRENT_LOADER_H
15 #include /**/ "ace/pre.h"
17 #if !defined (ACE_LACKS_PRAGMA_ONCE)
18 # pragma once
19 #endif /* ACE_LACKS_PRAGMA_ONCE */
21 #include "ace/Service_Object.h"
22 #include "ace/Service_Config.h"
23 #include "tao/Versioned_Namespace.h"
25 #if TAO_HAS_TRANSPORT_CURRENT == 1
27 #include "tao/TransportCurrent/Transport_Current_Export.h"
29 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
31 namespace TAO
33 namespace Transport
35 class TAO_Transport_Current_Export Current_Loader
36 : public ACE_Service_Object
38 public:
39 /// Initializes object when dynamic linking occurs.
40 virtual int init (int argc, ACE_TCHAR *argv[]);
42 protected:
43 /// Protected destructor to enforce reference counting discipline
44 virtual ~Current_Loader ();
50 #if defined (TAO_AS_STATIC_LIBS)
51 namespace TAO
53 namespace Transport
55 int current_static_initializer ();
59 #endif /* defined (TAO_AS_STATIC_LIBS) */
61 ACE_STATIC_SVC_DECLARE_EXPORT (TAO_Transport_Current,
62 TAO_Transport_Current_Loader)
64 ACE_FACTORY_DECLARE (TAO_Transport_Current,
65 TAO_Transport_Current_Loader)
67 TAO_END_VERSIONED_NAMESPACE_DECL
70 #endif /* TAO_HAS_TRANSPORT_CURRENT == 1 */
72 #include /**/ "ace/post.h"
74 #endif /* TAO_TRANSPORT_CURRENT_LOADER_H */