Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013 #ifndef MONITOR_CONTROL_TYPES_H
00014 #define MONITOR_CONTROL_TYPES_H
00015
00016 #include "ace/pre.h"
00017
00018 #include "ace/Vector_T.h"
00019
00020 #if !defined (ACE_LACKS_PRAGMA_ONCE)
00021 #pragma once
00022 #endif
00023
00024 #if defined (ACE_HAS_MONITOR_FRAMEWORK) && (ACE_HAS_MONITOR_FRAMEWORK == 1)
00025
00026 #include "ace/Array_Map.h"
00027 #include "ace/SString.h"
00028 #include "ace/Time_Value.h"
00029
00030 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
00031
00032 namespace ACE
00033 {
00034 namespace Monitor_Control
00035 {
00036 class Control_Action;
00037
00038 struct ACE_Export Monitor_Control_Types
00039 {
00040
00041
00042 enum Information_Type
00043 {
00044 MC_COUNTER,
00045 MC_NUMBER,
00046 MC_TIME,
00047 MC_INTERVAL,
00048 MC_LIST,
00049 MC_GROUP
00050 };
00051
00052
00053
00054
00055 struct ACE_Export Data
00056 {
00057 Data (Monitor_Control_Types::Information_Type type);
00058 ACE_Time_Value timestamp_;
00059 double value_;
00060 ACE_Array_Base<char *> list_;
00061
00062 Information_Type type_;
00063
00064 size_t index_;
00065 bool minimum_set_;
00066 double minimum_;
00067 double maximum_;
00068 double sum_;
00069 double sum_of_squares_;
00070 double last_;
00071 };
00072
00073
00074
00075
00076
00077 struct ACE_Export Constraint
00078 {
00079 Constraint (void);
00080 ~Constraint (void);
00081
00082
00083
00084 Constraint (const Constraint& rhs);
00085 Constraint& operator= (const Constraint& rhs);
00086
00087 ACE_CString expr;
00088 Control_Action* control_action;
00089 };
00090
00091
00092
00093
00094
00095 typedef ACE_Vector<Data> DataList;
00096
00097
00098
00099
00100 typedef ACE_Vector<ACE_CString> NameList;
00101
00102
00103
00104
00105 typedef ACE_Array_Map<long, Constraint> ConstraintList;
00106 };
00107 }
00108 }
00109
00110 ACE_END_VERSIONED_NAMESPACE_DECL
00111
00112 #endif
00113
00114 #include "ace/post.h"
00115
00116 #endif // MONITOR_CONTROL_TYPES_H