Changes to attempt to silence bcc64x
[ACE_TAO.git] / ACE / ace / Monitor_Control / Monitor_Group.h
blob6aa628949360aa2250bf02d54901ec4443b45ef9
1 // -*- C++ -*-
3 //=============================================================================
4 /**
5 * @file Monitor_Group.h
7 * @author Jeff Parsons <j.parsons@vanderbilt.edu>
8 */
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)
19 #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
28 namespace ACE
30 namespace Monitor_Control
32 /**
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
39 public:
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 ();
53 private:
54 typedef ACE_Unbounded_Queue<Monitor_Base *>
55 MEMBERS;
56 typedef ACE_Unbounded_Queue_Const_Iterator<Monitor_Base *>
57 MEMBERS_ITERATOR;
59 MEMBERS members_;
64 ACE_END_VERSIONED_NAMESPACE_DECL
66 #endif /* ACE_HAS_MONITOR_FRAMEWORK==1 */
68 #include /**/ "ace/post.h"
70 #endif // MONITOR_GROUP_H