Merge pull request #2309 from mitza-oci/warnings
[ACE_TAO.git] / TAO / tao / Monitor / Monitor.h
blob4742bdbc52e681e058a15056b3caabc457b81b87
1 // -*- C++ -*-
3 // ===================================================================
4 /**
5 * @file Monitor.h
7 * @author Johnny Willemsen <jwillemsen@remedy.nl>
8 */
9 // ===================================================================
11 #ifndef TAO_MONITOR_H
12 #define TAO_MONITOR_H
14 #include /**/ "ace/pre.h"
16 #include "ace/Service_Config.h"
18 #if !defined (ACE_LACKS_PRAGMA_ONCE)
19 # pragma once
20 #endif /* ACE_LACKS_PRAGMA_ONCE */
22 #include "tao/Monitor/Monitor_export.h"
23 #include "tao/Versioned_Namespace.h"
24 #include "tao/Object_Loader.h"
26 #if defined (TAO_HAS_MONITOR_FRAMEWORK) && (TAO_HAS_MONITOR_FRAMEWORK == 1)
28 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
30 /**
31 * @class TAO_Monitor_Init
33 class TAO_Monitor_Export TAO_Monitor_Init : public TAO_Object_Loader
35 public:
36 TAO_Monitor_Init ();
38 virtual CORBA::Object_ptr create_object (CORBA::ORB_ptr orb,
39 int argc,
40 ACE_TCHAR *argv []);
42 /// Used to force the initialization of the ORB code.
43 static int Initializer ();
46 //#if defined (TAO_AS_STATIC_LIBS)
47 // only do this for static builds, it causes a circular
48 // dependency for dynamic builds.
49 static int
50 TAO_Requires_Monitor_Initializer = TAO_Monitor_Init::Initializer ();
51 //#endif /* TAO_AS_STATIC_LIBS */
54 ACE_STATIC_SVC_DECLARE (TAO_Monitor_Init)
55 ACE_FACTORY_DECLARE (TAO_Monitor, TAO_Monitor_Init)
56 TAO_END_VERSIONED_NAMESPACE_DECL
58 #endif /* TAO_HAS_MONITOR_FRAMEWORK==1 */
60 #include /**/ "ace/post.h"
62 #define TAO_MONITOR_SAFE_INCLUDE
63 #include "tao/Monitor/Monitor_TypesC.h"
64 #include "tao/Monitor/Monitor_TypesA.h"
65 #include "tao/Monitor/MonitorC.h"
66 #undef TAO_MONITOR_SAFE_INCLUDE
68 #endif /* TAO_MONITOR_H */