Monitor_Size.h

Go to the documentation of this file.
00001 // -*- C++ -*-
00002 
00003 //=============================================================================
00004 /**
00005  * @file Monitor_Size.h
00006  *
00007  * $Id: Monitor_Size.h 81691 2008-05-14 11:09:21Z johnnyw $
00008  *
00009  * @author Jeff Parsons <j.parsons@vanderbilt.edu>
00010  */
00011 //=============================================================================
00012 
00013 #ifndef SIZE_MONITOR_H
00014 #define SIZE_MONITOR_H
00015 
00016 #include /**/ "ace/pre.h"
00017 
00018 #include /**/ "ace/ACE_export.h"
00019 
00020 #if !defined (ACE_LACKS_PRAGMA_ONCE)
00021 #pragma once
00022 #endif /* ACE_LACKS_PRAGMA_ONCE */
00023 
00024 #include "ace/Monitor_Base.h"
00025 
00026 #if defined (ACE_HAS_MONITOR_FRAMEWORK) && (ACE_HAS_MONITOR_FRAMEWORK == 1)
00027 
00028 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
00029 
00030 namespace ACE
00031 {
00032   namespace Monitor_Control
00033   {
00034     /**
00035      * @class Size_Monitor
00036      *
00037      * @brief Base class from which ACE monitors of size are
00038      *        derived.
00039      *
00040      */
00041     class ACE_Export Size_Monitor : public Monitor_Base
00042     {
00043     public:
00044       Size_Monitor (void);
00045       Size_Monitor (const char* name);
00046       virtual ~Size_Monitor (void);
00047 
00048       /// Implemented by the most-derived class. Does the actual
00049       /// work of fetching the monitored value.
00050       virtual void update (void);
00051 
00052       /// Reset function.
00053       virtual void clear (void);
00054     };
00055   }
00056 }
00057 
00058 ACE_END_VERSIONED_NAMESPACE_DECL
00059 
00060 #endif /* ACE_HAS_MONITOR_FRAMEWORK==1 */
00061 
00062 #include /**/ "ace/post.h"
00063 
00064 #endif // SIZE_MONITOR_H

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