Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013 #ifndef MONITOR_GROUP_H
00014 #define MONITOR_GROUP_H
00015
00016 #include "ace/pre.h"
00017
00018 #include "ace/Monitor_Base.h"
00019
00020 #if !defined (ACE_LACKS_PRAGMA_ONCE)
00021 #pragma once
00022 #endif
00023
00024 #if defined (ACE_HAS_MONITOR_FRAMEWORK) && (ACE_HAS_MONITOR_FRAMEWORK == 1)
00025
00026 #include "ace/Monitor_Control/Monitor_Control_export.h"
00027
00028 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
00029
00030 namespace ACE
00031 {
00032 namespace Monitor_Control
00033 {
00034
00035
00036
00037
00038
00039 class MONITOR_CONTROL_Export Monitor_Group : public Monitor_Base
00040 {
00041 public:
00042 Monitor_Group (const char* name);
00043
00044 void add_member (Monitor_Base* member);
00045
00046 virtual void update (void);
00047
00048
00049 virtual void receive (double data);
00050 virtual void receive (size_t data);
00051 virtual void receive (const Monitor_Control_Types::NameList& data);
00052
00053 virtual void clear (void);
00054
00055 private:
00056 typedef ACE_Unbounded_Queue<Monitor_Base *>
00057 MEMBERS;
00058 typedef ACE_Unbounded_Queue_Const_Iterator<Monitor_Base *>
00059 MEMBERS_ITERATOR;
00060
00061 MEMBERS members_;
00062 };
00063 }
00064 }
00065
00066 ACE_END_VERSIONED_NAMESPACE_DECL
00067
00068 #endif
00069
00070 #include "ace/post.h"
00071
00072 #endif // MONITOR_GROUP_H