Monitor_Admin_Manager.h

Go to the documentation of this file.
00001 // -*- C++ -*-
00002 
00003 //=============================================================================
00004 /**
00005  * @file Monitor_Admin_Manager.h
00006  *
00007  * $Id: Monitor_Admin_Manager.h 81691 2008-05-14 11:09:21Z johnnyw $
00008  *
00009  * @author Jeff Parsons <j.parsons@vanderbilt.edu>
00010  */
00011 //=============================================================================
00012 
00013 #ifndef MONITOR_ADMIN_MANAGER_H
00014 #define MONITOR_ADMIN_MANAGER_H
00015 
00016 #include /**/ "ace/pre.h"
00017 
00018 #include "ace/Service_Object.h"
00019 
00020 #if !defined (ACE_LACKS_PRAGMA_ONCE)
00021 #pragma once
00022 #endif /* ACE_LACKS_PRAGMA_ONCE */
00023 
00024 #if defined (ACE_HAS_MONITOR_FRAMEWORK) && (ACE_HAS_MONITOR_FRAMEWORK == 1)
00025 
00026 #include "ace/Monitor_Admin.h"
00027 
00028 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
00029 
00030 namespace ACE
00031 {
00032   namespace Monitor_Control
00033   {
00034     /**
00035      * @class Monitor_Admin_Manager
00036      *
00037      * @brief Repsonsible for creating and destroying the global
00038      * (per process) instance of the Admin class.
00039      *
00040      * Monitor_Admin_Manager will be instantiated as an ACE_Dynamic_Service
00041      * singleton, and implements the interface of ACE_Service_Object.
00042      */
00043     class ACE_Export Monitor_Admin_Manager : public ACE_Service_Object
00044     {
00045     public:
00046       /// Access the admin instance.
00047       ACE::Monitor_Control::Monitor_Admin& admin (void);
00048 
00049       /// Used to force initialization of the MC service.
00050       static int Initializer (void);
00051 
00052     private:
00053       Monitor_Admin admin_;
00054     };
00055   }
00056 }
00057 
00058 /// For the ACE_FACTORY_DEFINE macro in the .cpp file.
00059 typedef ACE::Monitor_Control::Monitor_Admin_Manager MC_ADMINMANAGER;
00060 
00061 ACE_END_VERSIONED_NAMESPACE_DECL
00062 
00063 ACE_STATIC_SVC_DECLARE (MC_ADMINMANAGER)
00064 ACE_FACTORY_DECLARE (ACE, MC_ADMINMANAGER)
00065 
00066 #endif /* ACE_HAS_MONITOR_FRAMEWORK==1 */
00067 
00068 #include /**/ "ace/post.h"
00069 
00070 #endif // MONITOR_ADMIN_MANAGER_H

Generated on Tue Feb 2 17:18:41 2010 for ACE by  doxygen 1.4.7