1 #include "ace/Monitor_Control/Monitor_Group.h"
3 #if defined (ACE_HAS_MONITOR_FRAMEWORK) && (ACE_HAS_MONITOR_FRAMEWORK == 1)
5 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
9 namespace Monitor_Control
11 Monitor_Group::Monitor_Group (const char* name
)
12 : Monitor_Base (name
, Monitor_Control_Types::MC_GROUP
)
16 Monitor_Group::add_member (Monitor_Base
* member
)
18 this->members_
.enqueue_tail (member
);
22 Monitor_Group::update ()
24 for (MEMBERS_ITERATOR
i (this->members_
); !i
.done (); i
.advance ())
26 Monitor_Base
**member
;
33 Monitor_Group::receive (double /* data */)
35 /// No-op, should always call update().
39 Monitor_Group::receive (size_t /* data */)
41 /// No-op, should always call update().
45 Monitor_Group::receive (const Monitor_Control_Types::NameList
& /* data */)
47 /// No-op, should always call update().
51 Monitor_Group::clear ()
53 for (MEMBERS_ITERATOR
i (this->members_
); !i
.done (); i
.advance ())
55 Monitor_Base
**member
= 0;
63 ACE_END_VERSIONED_NAMESPACE_DECL
65 #endif /* ACE_HAS_MONITOR_FRAMEWORK==1 */