blob: 42c8b824bb5d66a1f4885eb2a1cb415587c8de0e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
|
#include "ace/Monitor_Control/Monitor_Group.h"
#if defined (ACE_HAS_MONITOR_FRAMEWORK) && (ACE_HAS_MONITOR_FRAMEWORK == 1)
ACE_BEGIN_VERSIONED_NAMESPACE_DECL
namespace ACE
{
namespace Monitor_Control
{
Monitor_Group::Monitor_Group (const char* name)
: Monitor_Base (name, Monitor_Control_Types::MC_GROUP)
{}
void
Monitor_Group::add_member (Monitor_Base* member)
{
this->members_.enqueue_tail (member);
}
void
Monitor_Group::update ()
{
for (MEMBERS_ITERATOR i (this->members_); !i.done (); i.advance ())
{
Monitor_Base **member;
i.next (member);
(*member)->update ();
}
}
void
Monitor_Group::receive (double /* data */)
{
/// No-op, should always call update().
}
void
Monitor_Group::receive (size_t /* data */)
{
/// No-op, should always call update().
}
void
Monitor_Group::receive (const Monitor_Control_Types::NameList& /* data */)
{
/// No-op, should always call update().
}
void
Monitor_Group::clear ()
{
for (MEMBERS_ITERATOR i (this->members_); !i.done (); i.advance ())
{
Monitor_Base **member = 0;
i.next (member);
(*member)->clear ();
}
}
}
}
ACE_END_VERSIONED_NAMESPACE_DECL
#endif /* ACE_HAS_MONITOR_FRAMEWORK==1 */
|