summaryrefslogtreecommitdiff
path: root/TAO/tao/Monitor/Monitor.h
blob: b899f7b04ce50b5bca94ebe21add7420b8e7c512 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
// -*- C++ -*-

// ===================================================================
/**
 *  @file   Monitor.h
 *
 *  @author Johnny Willemsen  <jwillemsen@remedy.nl>
 */
// ===================================================================

#ifndef TAO_MONITOR_H
#define TAO_MONITOR_H

#include /**/ "ace/pre.h"

#include "ace/Service_Config.h"

#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */

#include "tao/Monitor/Monitor_export.h"
#include "tao/Versioned_Namespace.h"
#include "tao/Object_Loader.h"

#if defined (TAO_HAS_MONITOR_FRAMEWORK) && (TAO_HAS_MONITOR_FRAMEWORK == 1)

TAO_BEGIN_VERSIONED_NAMESPACE_DECL

/**
 * @class TAO_Monitor_Init
 */
class TAO_Monitor_Export TAO_Monitor_Init : public TAO_Object_Loader
{
public:
  TAO_Monitor_Init (void);

  virtual CORBA::Object_ptr create_object (CORBA::ORB_ptr orb,
                                           int argc,
                                           ACE_TCHAR *argv []);

  /// Used to force the initialization of the ORB code.
  static int Initializer (void);
};

//#if defined (TAO_AS_STATIC_LIBS)
// only do this for static builds, it causes a circular
// dependency for dynamic builds.
static int
TAO_Requires_Monitor_Initializer = TAO_Monitor_Init::Initializer ();
//#endif /* TAO_AS_STATIC_LIBS */


ACE_STATIC_SVC_DECLARE (TAO_Monitor_Init)
ACE_FACTORY_DECLARE (TAO_Monitor, TAO_Monitor_Init)
TAO_END_VERSIONED_NAMESPACE_DECL

#endif /* TAO_HAS_MONITOR_FRAMEWORK==1 */

#include /**/ "ace/post.h"

#define TAO_MONITOR_SAFE_INCLUDE
#include "tao/Monitor/Monitor_TypesC.h"
#include "tao/Monitor/Monitor_TypesA.h"
#include "tao/Monitor/MonitorC.h"
#undef TAO_MONITOR_SAFE_INCLUDE

#endif  /* TAO_MONITOR_H */