00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef _GATMETRICEVENT_H_
00021 #define _GATMETRICEVENT_H_ 1
00022
00023 #include "GATObject.h"
00024 #include "GATMetric.h"
00025 #include "GATTime.h"
00026
00027 #ifdef __cplusplus
00028 extern "C" {
00029 #endif
00030
00031
00032 GATOBJECT_DECLARE_CONVERTERS(GATMetricEvent);
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043
00044
00045
00046
00047
00048 GATMetricEvent
00049 GATMetricEvent_Create_Continuous(GATObject_const source, GATMetric metric,
00050 GATMetricEvent_GetValueProc callback, void *data);
00051
00052
00053
00054
00055
00056
00057
00058
00059
00060
00061
00062
00063
00064
00065
00066 GATMetricEvent
00067 GATMetricEvent_Create_EventLike(GATObject_const source, GATMetric metric,
00068 void *buffer, GATuint32 size);
00069
00070
00071
00072
00073
00074
00075
00076
00077 void
00078 GATMetricEvent_Destroy(GATMetricEvent *object);
00079
00080
00081
00082
00083
00084
00085
00086
00087
00088
00089
00090
00091
00092
00093 GATResult
00094 GATMetricEvent_Equals(GATMetricEvent_const lhs,
00095 GATMetricEvent_const rhs, GATBool *isequal);
00096
00097
00098
00099
00100
00101
00102
00103
00104
00105
00106
00107
00108
00109 GATResult
00110 GATMetricEvent_Clone(GATMetricEvent_const object,
00111 GATMetricEvent *new_object);
00112
00113
00114
00115
00116
00117
00118
00119
00120
00121
00122
00123 GATType
00124 GATMetricEvent_GetType(GATMetricEvent_const object);
00125
00126
00127
00128
00129
00130
00131
00132
00133
00134
00135
00136
00137
00138 GATResult
00139 GATMetricEvent_GetInterface(GATMetricEvent_const file,
00140 GATInterface iftype, void const **ifp);
00141
00142
00143
00144
00145
00146
00147
00148
00149
00150
00151 GATObject_const
00152 GATMetricEvent_GetSource(GATMetricEvent_const metric_event);
00153
00154
00155
00156
00157
00158
00159
00160
00161
00162
00163 GATType
00164 GATMetricEvent_GetValueType(GATMetricEvent_const metric_event);
00165
00166
00167
00168
00169
00170
00171
00172
00173
00174
00175
00176
00177
00178
00179
00180
00181
00182 GATResult
00183 GATMetricEvent_GetValue(GATMetricEvent_const metric_event, void *buffer,
00184 GATuint32 size);
00185
00186
00187
00188
00189
00190
00191
00192
00193
00194 GATMetric_const
00195 GATMetricEvent_GetMetric(GATMetricEvent_const metric_event);
00196
00197
00198
00199
00200
00201
00202
00203
00204
00205 GATTime_const
00206 GATMetricEvent_GetEventTime(GATMetricEvent metric_event);
00207
00208 #ifdef __cplusplus
00209 }
00210 #endif
00211
00212 #endif