Go to the documentation of this file.00001
00002
00003 #ifndef DYNAMIC_STATISTIC_H
00004 #define DYNAMIC_STATISTIC_H
00005
00006 #include "ace/pre.h"
00007
00008 #include "ace/Monitor_Base.h"
00009
00010 #include "tao/orbconf.h"
00011
00012 #if defined (TAO_HAS_MONITOR_FRAMEWORK) && (TAO_HAS_MONITOR_FRAMEWORK == 1)
00013
00014 using namespace ACE_VERSIONED_NAMESPACE_NAME::ACE::Monitor_Control;
00015
00016 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
00017
00018 template <typename TYPE>
00019 class TAO_Dynamic_Statistic : public Monitor_Base
00020 {
00021 public:
00022
00023
00024
00025 TAO_Dynamic_Statistic (TYPE* interf,
00026 const char* name,
00027 Monitor_Control_Types::Information_Type type)
00028 : Monitor_Base (name, type),
00029 interf_ (interf)
00030 {
00031 }
00032
00033
00034
00035
00036
00037
00038 virtual void update (void) = 0;
00039
00040 protected:
00041 TYPE* interf_;
00042 };
00043
00044 TAO_END_VERSIONED_NAMESPACE_DECL
00045
00046 #endif
00047
00048 #include "ace/post.h"
00049
00050 #endif