Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013 #ifndef WINDOWS_MONITOR_H
00014 #define WINDOWS_MONITOR_H
00015
00016 #include "ace/pre.h"
00017
00018 #include "ace/SString.h"
00019
00020 #if !defined (ACE_LACKS_PRAGMA_ONCE)
00021 #pragma once
00022 #endif
00023
00024 #include "ace/os_include/os_pdh.h"
00025
00026 #include "ace/Monitor_Control/Monitor_Control_export.h"
00027
00028 #if defined (ACE_HAS_WIN32_PDH)
00029
00030 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
00031
00032 namespace ACE
00033 {
00034 namespace Monitor_Control
00035 {
00036
00037
00038
00039
00040
00041 class MONITOR_CONTROL_Export Windows_Monitor
00042 {
00043 friend class Windows_Multi_Instance_Monitor;
00044
00045 protected:
00046 Windows_Monitor (const ACE_TCHAR *path);
00047
00048
00049 void update_i (void);
00050
00051
00052 void clear_impl (void);
00053
00054 protected:
00055 double value_;
00056
00057 private:
00058
00059 void init (void);
00060
00061
00062
00063 private:
00064 ACE_TString path_;
00065 HQUERY query_;
00066 HCOUNTER counter_;
00067 PDH_STATUS status_;
00068 };
00069 }
00070 }
00071
00072 ACE_END_VERSIONED_NAMESPACE_DECL
00073
00074 #include "ace/post.h"
00075
00076 #endif
00077
00078 #endif // WINDOWS_MONITOR_H