1 mike 1.1 /* @migen@ */
2 /*
3 **==============================================================================
4 **
5 ** WARNING: THIS FILE WAS AUTOMATICALLY GENERATED. PLEASE DO NOT EDIT.
6 **
7 **==============================================================================
8 */
9 #ifndef _CIM_ConcreteJob_h
10 #define _CIM_ConcreteJob_h
11
12 #include <MI.h>
13 #include "CIM_Job.h"
14 #include "CIM_Error.h"
15
16 /*
17 **==============================================================================
18 **
19 ** CIM_ConcreteJob [CIM_ConcreteJob]
20 **
21 ** Keys:
22 mike 1.1 ** InstanceID
23 **
24 **==============================================================================
25 */
26
27 typedef struct _CIM_ConcreteJob /* extends CIM_Job */
28 {
29 MI_Instance __instance;
30 /* CIM_ManagedElement properties */
31 /*KEY*/ MI_ConstStringField InstanceID;
32 MI_ConstStringField Caption;
33 MI_ConstStringField Description;
34 MI_ConstStringField ElementName;
35 /* CIM_ManagedSystemElement properties */
36 MI_ConstDatetimeField InstallDate;
37 MI_ConstStringField Name;
38 MI_ConstUint16AField OperationalStatus;
39 MI_ConstStringAField StatusDescriptions;
40 MI_ConstStringField Status;
41 MI_ConstUint16Field HealthState;
42 MI_ConstUint16Field CommunicationStatus;
43 mike 1.1 MI_ConstUint16Field DetailedStatus;
44 MI_ConstUint16Field OperatingStatus;
45 MI_ConstUint16Field PrimaryStatus;
46 /* CIM_LogicalElement properties */
47 /* CIM_Job properties */
48 MI_ConstStringField JobStatus;
49 MI_ConstDatetimeField TimeSubmitted;
50 MI_ConstDatetimeField ScheduledStartTime;
51 MI_ConstDatetimeField StartTime;
52 MI_ConstDatetimeField ElapsedTime;
53 MI_ConstUint32Field JobRunTimes;
54 MI_ConstUint8Field RunMonth;
55 MI_ConstSint8Field RunDay;
56 MI_ConstSint8Field RunDayOfWeek;
57 MI_ConstDatetimeField RunStartInterval;
58 MI_ConstUint16Field LocalOrUtcTime;
59 MI_ConstDatetimeField UntilTime;
60 MI_ConstStringField Notify;
61 MI_ConstStringField Owner;
62 MI_ConstUint32Field Priority;
63 MI_ConstUint16Field PercentComplete;
64 mike 1.1 MI_ConstBooleanField DeleteOnCompletion;
65 MI_ConstUint16Field ErrorCode;
66 MI_ConstStringField ErrorDescription;
67 MI_ConstUint16Field RecoveryAction;
68 MI_ConstStringField OtherRecoveryAction;
69 /* CIM_ConcreteJob properties */
70 MI_ConstUint16Field JobState;
71 MI_ConstDatetimeField TimeOfLastStateChange;
72 MI_ConstDatetimeField TimeBeforeRemoval;
73 }
74 CIM_ConcreteJob;
75
76 typedef struct _CIM_ConcreteJob_Ref
77 {
78 CIM_ConcreteJob* value;
79 MI_Boolean exists;
80 MI_Uint8 flags;
81 }
82 CIM_ConcreteJob_Ref;
83
84 typedef struct _CIM_ConcreteJob_ConstRef
85 mike 1.1 {
86 MI_CONST CIM_ConcreteJob* value;
87 MI_Boolean exists;
88 MI_Uint8 flags;
89 }
90 CIM_ConcreteJob_ConstRef;
91
92 typedef struct _CIM_ConcreteJob_Array
93 {
94 struct _CIM_ConcreteJob** data;
95 MI_Uint32 size;
96 }
97 CIM_ConcreteJob_Array;
98
99 typedef struct _CIM_ConcreteJob_ConstArray
100 {
101 struct _CIM_ConcreteJob MI_CONST* MI_CONST* data;
102 MI_Uint32 size;
103 }
104 CIM_ConcreteJob_ConstArray;
105
106 mike 1.1 typedef struct _CIM_ConcreteJob_ArrayRef
107 {
108 CIM_ConcreteJob_Array value;
109 MI_Boolean exists;
110 MI_Uint8 flags;
111 }
112 CIM_ConcreteJob_ArrayRef;
113
114 typedef struct _CIM_ConcreteJob_ConstArrayRef
115 {
116 CIM_ConcreteJob_ConstArray value;
117 MI_Boolean exists;
118 MI_Uint8 flags;
119 }
120 CIM_ConcreteJob_ConstArrayRef;
121
122 MI_EXTERN_C MI_CONST MI_ClassDecl CIM_ConcreteJob_rtti;
123
124 /*
125 **==============================================================================
126 **
127 mike 1.1 ** CIM_ConcreteJob.KillJob()
128 **
129 **==============================================================================
130 */
131
132 typedef struct _CIM_ConcreteJob_KillJob
133 {
134 MI_Instance __instance;
135 /*OUT*/ MI_ConstUint32Field MIReturn;
136 /*IN*/ MI_ConstBooleanField DeleteOnKill;
137 }
138 CIM_ConcreteJob_KillJob;
139
140 /*
141 **==============================================================================
142 **
143 ** CIM_ConcreteJob.RequestStateChange()
144 **
145 **==============================================================================
146 */
147
148 mike 1.1 typedef struct _CIM_ConcreteJob_RequestStateChange
149 {
150 MI_Instance __instance;
151 /*OUT*/ MI_ConstUint32Field MIReturn;
152 /*IN*/ MI_ConstUint16Field RequestedState;
153 /*IN*/ MI_ConstDatetimeField TimeoutPeriod;
154 }
155 CIM_ConcreteJob_RequestStateChange;
156
157 /*
158 **==============================================================================
159 **
160 ** CIM_ConcreteJob.GetError()
161 **
162 **==============================================================================
163 */
164
165 typedef struct _CIM_ConcreteJob_GetError
166 {
167 MI_Instance __instance;
168 /*OUT*/ MI_ConstUint32Field MIReturn;
169 mike 1.1 /*OUT*/ CIM_Error_ConstRef Error;
170 }
171 CIM_ConcreteJob_GetError;
172
173
174 /*
175 **==============================================================================
176 **
177 ** CIM_ConcreteJob_Class
178 **
179 **==============================================================================
180 */
181
182 #ifdef __cplusplus
183 # include <micxx/micxx.h>
184
185 MI_BEGIN_NAMESPACE
186
187 class CIM_ConcreteJob_Class : public CIM_Job_Class
188 {
189 public:
190 mike 1.1
191 typedef CIM_ConcreteJob Self;
192
193 CIM_ConcreteJob_Class() :
194 CIM_Job_Class(&CIM_ConcreteJob_rtti)
195 {
196 }
197
198 CIM_ConcreteJob_Class(
199 const CIM_ConcreteJob* instanceName,
200 bool keysOnly) :
201 CIM_Job_Class(
202 &CIM_ConcreteJob_rtti,
203 &instanceName->__instance,
204 keysOnly)
205 {
206 }
207
208 CIM_ConcreteJob_Class(
209 const MI_ClassDecl* clDecl,
210 const MI_Instance* instance,
211 mike 1.1 bool keysOnly) :
212 CIM_Job_Class(clDecl, instance, keysOnly)
213 {
214 }
215
216 CIM_ConcreteJob_Class(
217 const MI_ClassDecl* clDecl) :
218 CIM_Job_Class(clDecl)
219 {
220 }
221
222 CIM_ConcreteJob_Class& operator=(
223 const CIM_ConcreteJob_Class& x)
224 {
225 CopyRef(x);
226 return *this;
227 }
228
229 CIM_ConcreteJob_Class(
230 const CIM_ConcreteJob_Class& x) :
231 CIM_Job_Class(x)
232 mike 1.1 {
233 }
234
235 static const MI_ClassDecl* GetClassDecl()
236 {
237 return &CIM_ConcreteJob_rtti;
238 }
239
240 //
241 // CIM_ConcreteJob_Class.JobState
242 //
243
244 const Field<Uint16>& JobState() const
245 {
246 const size_t n = offsetof(Self, JobState);
247 return GetField<Uint16>(n);
248 }
249
250 void JobState(const Field<Uint16>& x)
251 {
252 const size_t n = offsetof(Self, JobState);
253 mike 1.1 GetField<Uint16>(n) = x;
254 }
255
256 const Uint16& JobState_value() const
257 {
258 const size_t n = offsetof(Self, JobState);
259 return GetField<Uint16>(n).value;
260 }
261
262 void JobState_value(const Uint16& x)
263 {
264 const size_t n = offsetof(Self, JobState);
265 GetField<Uint16>(n).Set(x);
266 }
267
268 bool JobState_exists() const
269 {
270 const size_t n = offsetof(Self, JobState);
271 return GetField<Uint16>(n).exists ? true : false;
272 }
273
274 mike 1.1 void JobState_clear()
275 {
276 const size_t n = offsetof(Self, JobState);
277 GetField<Uint16>(n).Clear();
278 }
279
280 //
281 // CIM_ConcreteJob_Class.TimeOfLastStateChange
282 //
283
284 const Field<Datetime>& TimeOfLastStateChange() const
285 {
286 const size_t n = offsetof(Self, TimeOfLastStateChange);
287 return GetField<Datetime>(n);
288 }
289
290 void TimeOfLastStateChange(const Field<Datetime>& x)
291 {
292 const size_t n = offsetof(Self, TimeOfLastStateChange);
293 GetField<Datetime>(n) = x;
294 }
295 mike 1.1
296 const Datetime& TimeOfLastStateChange_value() const
297 {
298 const size_t n = offsetof(Self, TimeOfLastStateChange);
299 return GetField<Datetime>(n).value;
300 }
301
302 void TimeOfLastStateChange_value(const Datetime& x)
303 {
304 const size_t n = offsetof(Self, TimeOfLastStateChange);
305 GetField<Datetime>(n).Set(x);
306 }
307
308 bool TimeOfLastStateChange_exists() const
309 {
310 const size_t n = offsetof(Self, TimeOfLastStateChange);
311 return GetField<Datetime>(n).exists ? true : false;
312 }
313
314 void TimeOfLastStateChange_clear()
315 {
316 mike 1.1 const size_t n = offsetof(Self, TimeOfLastStateChange);
317 GetField<Datetime>(n).Clear();
318 }
319
320 //
321 // CIM_ConcreteJob_Class.TimeBeforeRemoval
322 //
323
324 const Field<Datetime>& TimeBeforeRemoval() const
325 {
326 const size_t n = offsetof(Self, TimeBeforeRemoval);
327 return GetField<Datetime>(n);
328 }
329
330 void TimeBeforeRemoval(const Field<Datetime>& x)
331 {
332 const size_t n = offsetof(Self, TimeBeforeRemoval);
333 GetField<Datetime>(n) = x;
334 }
335
336 const Datetime& TimeBeforeRemoval_value() const
337 mike 1.1 {
338 const size_t n = offsetof(Self, TimeBeforeRemoval);
339 return GetField<Datetime>(n).value;
340 }
341
342 void TimeBeforeRemoval_value(const Datetime& x)
343 {
344 const size_t n = offsetof(Self, TimeBeforeRemoval);
345 GetField<Datetime>(n).Set(x);
346 }
347
348 bool TimeBeforeRemoval_exists() const
349 {
350 const size_t n = offsetof(Self, TimeBeforeRemoval);
351 return GetField<Datetime>(n).exists ? true : false;
352 }
353
354 void TimeBeforeRemoval_clear()
355 {
356 const size_t n = offsetof(Self, TimeBeforeRemoval);
357 GetField<Datetime>(n).Clear();
358 mike 1.1 }
359 };
360
361 typedef Array<CIM_ConcreteJob_Class> CIM_ConcreteJob_ClassA;
362
363 MI_END_NAMESPACE
364
365 #endif /* __cplusplus */
366
367 #endif /* _CIM_ConcreteJob_h */
|