Revert to Current Include Style
[ACE_TAO.git] / ACE / ace / Monitor_Admin_Manager.h
blob5b4f04c2302025fae687a2263c6c3bedbd3b93c2
1 // -*- C++ -*-
3 //=============================================================================
4 /**
5 * @file Monitor_Admin_Manager.h
7 * @author Jeff Parsons <j.parsons@vanderbilt.edu>
8 */
9 //=============================================================================
11 #ifndef MONITOR_ADMIN_MANAGER_H
12 #define MONITOR_ADMIN_MANAGER_H
14 #include /**/ "ace/pre.h"
16 #include "ace/Service_Object.h"
18 #if !defined (ACE_LACKS_PRAGMA_ONCE)
19 #pragma once
20 #endif /* ACE_LACKS_PRAGMA_ONCE */
22 #if defined (ACE_HAS_MONITOR_FRAMEWORK) && (ACE_HAS_MONITOR_FRAMEWORK == 1)
24 #include "ace/Monitor_Admin.h"
26 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
28 namespace ACE
30 namespace Monitor_Control
32 /**
33 * @class Monitor_Admin_Manager
35 * @brief Repsonsible for creating and destroying the global
36 * (per process) instance of the Admin class.
38 * Monitor_Admin_Manager will be instantiated as an ACE_Dynamic_Service
39 * singleton, and implements the interface of ACE_Service_Object.
41 class ACE_Export Monitor_Admin_Manager : public ACE_Service_Object
43 public:
44 /// Access the admin instance.
45 ACE::Monitor_Control::Monitor_Admin& admin (void);
47 /// Used to force initialization of the MC service.
48 static int Initializer (void);
50 private:
51 Monitor_Admin admin_;
56 /// For the ACE_FACTORY_DEFINE macro in the .cpp file.
57 typedef ACE::Monitor_Control::Monitor_Admin_Manager MC_ADMINMANAGER;
59 ACE_END_VERSIONED_NAMESPACE_DECL
61 ACE_STATIC_SVC_DECLARE (MC_ADMINMANAGER)
62 ACE_FACTORY_DECLARE (ACE, MC_ADMINMANAGER)
64 #endif /* ACE_HAS_MONITOR_FRAMEWORK==1 */
66 #include /**/ "ace/post.h"
68 #endif // MONITOR_ADMIN_MANAGER_H