Changes to attempt to silence bcc64x
[ACE_TAO.git] / ACE / ace / Monitor_Control / Windows_Multi_Instance_Monitor.h
blob8a5cb75d5e52ccba6f76127620cf7d424dd81aa7
1 // -*- C++ -*-
3 //=============================================================================
4 /**
5 * @file Windows_Multi_Instance_Monitor.h
7 * @author Jeff Parsons <j.parsons@vanderbilt.edu>
8 */
9 //=============================================================================
11 #ifndef WINDOWS_MULTI_INSTANCE_MONITOR_H
12 #define WINDOWS_MULTI_INSTANCE_MONITOR_H
14 #include /**/ "ace/pre.h"
16 #include "ace/Unbounded_Queue.h"
18 #if !defined (ACE_LACKS_PRAGMA_ONCE)
19 #pragma once
20 #endif /* ACE_LACKS_PRAGMA_ONCE */
22 #include "ace/Monitor_Control/Windows_Monitor.h"
24 #if defined (ACE_HAS_WIN32_PDH)
26 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
28 namespace ACE
30 namespace Monitor_Control
32 /**
33 * @class Windows_Multi_Instance_Monitor
35 * @brief Mixin class for concrete monitors compiled on Windows machines
36 * where the Performance Data Helper object of interest has more
37 * than once instance, for example multiple CPUs or network cards.
39 class MONITOR_CONTROL_Export Windows_Multi_Instance_Monitor
41 protected:
42 Windows_Multi_Instance_Monitor (const ACE_TCHAR *wildcard_path);
43 virtual ~Windows_Multi_Instance_Monitor ();
45 /// Platform-specific implementation.
46 void update_i ();
48 /// Platform-specific reset.
49 void clear_impl ();
51 protected:
52 double value_;
54 private:
55 typedef ACE_Unbounded_Queue<Windows_Monitor *>
56 INSTANCES;
57 typedef ACE_Unbounded_Queue_Const_Iterator<Windows_Monitor *>
58 INSTANCES_ITERATOR;
60 INSTANCES instances_;
61 DWORD n_instances_;
62 PDH_STATUS status_;
67 ACE_END_VERSIONED_NAMESPACE_DECL
69 #include /**/ "ace/post.h"
71 #endif /* defined (ACE_HAS_WIN32_PDH) */
73 #endif // WINDOWS_MULTI_INSTANCE_MONITOR_H