3 //=============================================================================
5 * @file Monitor_Group.h
7 * @author Jeff Parsons <j.parsons@vanderbilt.edu>
9 //=============================================================================
11 #ifndef MONITOR_GROUP_H
12 #define MONITOR_GROUP_H
14 #include /**/ "ace/pre.h"
16 #include "ace/Monitor_Base.h"
18 #if !defined (ACE_LACKS_PRAGMA_ONCE)
20 #endif /* ACE_LACKS_PRAGMA_ONCE */
22 #if defined (ACE_HAS_MONITOR_FRAMEWORK) && (ACE_HAS_MONITOR_FRAMEWORK == 1)
24 #include "ace/Monitor_Control/Monitor_Control_export.h"
26 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
30 namespace Monitor_Control
33 * @class Monitor_Group
35 * @brief Updates and/or clears a group of monitors with a single call.
37 class MONITOR_CONTROL_Export Monitor_Group
: public Monitor_Base
40 Monitor_Group (const char* name
);
42 void add_member (Monitor_Base
* member
);
44 virtual void update ();
46 /// These are overridden to be no-ops.
47 virtual void receive (double data
);
48 virtual void receive (size_t data
);
49 virtual void receive (const Monitor_Control_Types::NameList
& data
);
51 virtual void clear ();
54 typedef ACE_Unbounded_Queue
<Monitor_Base
*>
56 typedef ACE_Unbounded_Queue_Const_Iterator
<Monitor_Base
*>
64 ACE_END_VERSIONED_NAMESPACE_DECL
66 #endif /* ACE_HAS_MONITOR_FRAMEWORK==1 */
68 #include /**/ "ace/post.h"
70 #endif // MONITOR_GROUP_H