00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef _GATTIMEPERIOD_H_
00021 #define _GATTIMEPERIOD_H_ 1
00022
00023 #include "GATType.h"
00024 #include "GATInternal.h"
00025
00026 #ifdef __cplusplus
00027 extern "C"
00028 {
00029 #endif
00030
00031
00032 GATOBJECT_DECLARE_CONVERTERS(GATTimePeriod);
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043
00044
00045 GATTimePeriod GATTimePeriod_Create(GATdouble64 duration);
00046
00047
00048
00049
00050
00051
00052
00053
00054
00055
00056
00057
00058
00059 GATTimePeriod GATTimePeriod_Create_Difference(GATTime start, GATTime end);
00060
00061
00062
00063
00064
00065
00066
00067
00068
00069
00070
00071 GATType GATTimePeriod_GetType(GATTimePeriod_const period);
00072
00073
00074
00075
00076
00077
00078
00079
00080
00081
00082
00083
00084
00085 GATResult
00086 GATTimePeriod_Clone(GATTimePeriod_const period, GATTimePeriod *thisClone);
00087
00088
00089
00090
00091
00092
00093
00094
00095
00096
00097
00098
00099
00100
00101 GATResult
00102 GATTimePeriod_Equals(GATTimePeriod_const period, GATTimePeriod_const that,
00103 GATBool *isequal);
00104
00105
00106
00107
00108
00109
00110
00111
00112 void
00113 GATTimePeriod_Destroy(GATTimePeriod *period);
00114
00115
00116
00117
00118
00119
00120
00121
00122
00123
00124
00125
00126
00127 GATResult
00128 GATTimePeriod_GetInterface(GATTimePeriod_const object,
00129 GATInterface iftype, void const **ifp);
00130
00131
00132
00133 #define GATTIMEPERIOD_VERSION1 0x0100
00134 #define GATTIMEPERIOD_LASTVERSION GATTIMEPERIOD_VERSION1
00135 #define GATTIMEPERIOD_MINOR_MASK 0x00ff
00136
00137
00138
00139
00140
00141
00142
00143
00144
00145
00146
00147
00148
00149
00150 GATResult
00151 GATTimePeriod_Serialise(GATTimePeriod object, GATObject stream,
00152 GATBool clear_dirty);
00153
00154
00155
00156
00157
00158
00159
00160
00161
00162
00163
00164
00165
00166
00167
00168 GATTimePeriod
00169 GATTimePeriod_DeSerialise(GATContext context, GATObject stream,
00170 GATResult *result);
00171
00172
00173
00174
00175
00176
00177
00178
00179
00180
00181
00182 GATResult
00183 GATTimePeriod_GetIsDirty(GATTimePeriod_const object, GATBool *isdirty);
00184
00185
00186
00187
00188
00189
00190
00191
00192
00193
00194
00195 GATdouble64 GATTimePeriod_GetDuration(GATTimePeriod_const period);
00196
00197 #ifdef __cplusplus
00198 }
00199 #endif
00200
00201 #endif