/* @migen@ */ /* **============================================================================== ** ** WARNING: THIS FILE WAS AUTOMATICALLY GENERATED. PLEASE DO NOT EDIT. ** **============================================================================== */ #ifndef _CIM_Job_h #define _CIM_Job_h #include #include "CIM_LogicalElement.h" /* **============================================================================== ** ** CIM_Job [CIM_Job] ** ** Keys: ** **============================================================================== */ typedef struct _CIM_Job /* extends CIM_LogicalElement */ { MI_Instance __instance; /* CIM_ManagedElement properties */ MI_ConstStringField InstanceID; MI_ConstStringField Caption; MI_ConstStringField Description; MI_ConstStringField ElementName; /* CIM_ManagedSystemElement properties */ MI_ConstDatetimeField InstallDate; MI_ConstStringField Name; MI_ConstUint16AField OperationalStatus; MI_ConstStringAField StatusDescriptions; MI_ConstStringField Status; MI_ConstUint16Field HealthState; MI_ConstUint16Field CommunicationStatus; MI_ConstUint16Field DetailedStatus; MI_ConstUint16Field OperatingStatus; MI_ConstUint16Field PrimaryStatus; /* CIM_LogicalElement properties */ /* CIM_Job properties */ MI_ConstStringField JobStatus; MI_ConstDatetimeField TimeSubmitted; MI_ConstDatetimeField ScheduledStartTime; MI_ConstDatetimeField StartTime; MI_ConstDatetimeField ElapsedTime; MI_ConstUint32Field JobRunTimes; MI_ConstUint8Field RunMonth; MI_ConstSint8Field RunDay; MI_ConstSint8Field RunDayOfWeek; MI_ConstDatetimeField RunStartInterval; MI_ConstUint16Field LocalOrUtcTime; MI_ConstDatetimeField UntilTime; MI_ConstStringField Notify; MI_ConstStringField Owner; MI_ConstUint32Field Priority; MI_ConstUint16Field PercentComplete; MI_ConstBooleanField DeleteOnCompletion; MI_ConstUint16Field ErrorCode; MI_ConstStringField ErrorDescription; MI_ConstUint16Field RecoveryAction; MI_ConstStringField OtherRecoveryAction; } CIM_Job; typedef struct _CIM_Job_Ref { CIM_Job* value; MI_Boolean exists; MI_Uint8 flags; } CIM_Job_Ref; typedef struct _CIM_Job_ConstRef { MI_CONST CIM_Job* value; MI_Boolean exists; MI_Uint8 flags; } CIM_Job_ConstRef; typedef struct _CIM_Job_Array { struct _CIM_Job** data; MI_Uint32 size; } CIM_Job_Array; typedef struct _CIM_Job_ConstArray { struct _CIM_Job MI_CONST* MI_CONST* data; MI_Uint32 size; } CIM_Job_ConstArray; typedef struct _CIM_Job_ArrayRef { CIM_Job_Array value; MI_Boolean exists; MI_Uint8 flags; } CIM_Job_ArrayRef; typedef struct _CIM_Job_ConstArrayRef { CIM_Job_ConstArray value; MI_Boolean exists; MI_Uint8 flags; } CIM_Job_ConstArrayRef; MI_EXTERN_C MI_CONST MI_ClassDecl CIM_Job_rtti; /* **============================================================================== ** ** CIM_Job.KillJob() ** **============================================================================== */ typedef struct _CIM_Job_KillJob { MI_Instance __instance; /*OUT*/ MI_ConstUint32Field MIReturn; /*IN*/ MI_ConstBooleanField DeleteOnKill; } CIM_Job_KillJob; /* **============================================================================== ** ** CIM_Job_Class ** **============================================================================== */ #ifdef __cplusplus # include MI_BEGIN_NAMESPACE class CIM_Job_Class : public CIM_LogicalElement_Class { public: typedef CIM_Job Self; CIM_Job_Class() : CIM_LogicalElement_Class(&CIM_Job_rtti) { } CIM_Job_Class( const CIM_Job* instanceName, bool keysOnly) : CIM_LogicalElement_Class( &CIM_Job_rtti, &instanceName->__instance, keysOnly) { } CIM_Job_Class( const MI_ClassDecl* clDecl, const MI_Instance* instance, bool keysOnly) : CIM_LogicalElement_Class(clDecl, instance, keysOnly) { } CIM_Job_Class( const MI_ClassDecl* clDecl) : CIM_LogicalElement_Class(clDecl) { } CIM_Job_Class& operator=( const CIM_Job_Class& x) { CopyRef(x); return *this; } CIM_Job_Class( const CIM_Job_Class& x) : CIM_LogicalElement_Class(x) { } static const MI_ClassDecl* GetClassDecl() { return &CIM_Job_rtti; } // // CIM_Job_Class.JobStatus // const Field& JobStatus() const { const size_t n = offsetof(Self, JobStatus); return GetField(n); } void JobStatus(const Field& x) { const size_t n = offsetof(Self, JobStatus); GetField(n) = x; } const String& JobStatus_value() const { const size_t n = offsetof(Self, JobStatus); return GetField(n).value; } void JobStatus_value(const String& x) { const size_t n = offsetof(Self, JobStatus); GetField(n).Set(x); } bool JobStatus_exists() const { const size_t n = offsetof(Self, JobStatus); return GetField(n).exists ? true : false; } void JobStatus_clear() { const size_t n = offsetof(Self, JobStatus); GetField(n).Clear(); } // // CIM_Job_Class.TimeSubmitted // const Field& TimeSubmitted() const { const size_t n = offsetof(Self, TimeSubmitted); return GetField(n); } void TimeSubmitted(const Field& x) { const size_t n = offsetof(Self, TimeSubmitted); GetField(n) = x; } const Datetime& TimeSubmitted_value() const { const size_t n = offsetof(Self, TimeSubmitted); return GetField(n).value; } void TimeSubmitted_value(const Datetime& x) { const size_t n = offsetof(Self, TimeSubmitted); GetField(n).Set(x); } bool TimeSubmitted_exists() const { const size_t n = offsetof(Self, TimeSubmitted); return GetField(n).exists ? true : false; } void TimeSubmitted_clear() { const size_t n = offsetof(Self, TimeSubmitted); GetField(n).Clear(); } // // CIM_Job_Class.ScheduledStartTime // const Field& ScheduledStartTime() const { const size_t n = offsetof(Self, ScheduledStartTime); return GetField(n); } void ScheduledStartTime(const Field& x) { const size_t n = offsetof(Self, ScheduledStartTime); GetField(n) = x; } const Datetime& ScheduledStartTime_value() const { const size_t n = offsetof(Self, ScheduledStartTime); return GetField(n).value; } void ScheduledStartTime_value(const Datetime& x) { const size_t n = offsetof(Self, ScheduledStartTime); GetField(n).Set(x); } bool ScheduledStartTime_exists() const { const size_t n = offsetof(Self, ScheduledStartTime); return GetField(n).exists ? true : false; } void ScheduledStartTime_clear() { const size_t n = offsetof(Self, ScheduledStartTime); GetField(n).Clear(); } // // CIM_Job_Class.StartTime // const Field& StartTime() const { const size_t n = offsetof(Self, StartTime); return GetField(n); } void StartTime(const Field& x) { const size_t n = offsetof(Self, StartTime); GetField(n) = x; } const Datetime& StartTime_value() const { const size_t n = offsetof(Self, StartTime); return GetField(n).value; } void StartTime_value(const Datetime& x) { const size_t n = offsetof(Self, StartTime); GetField(n).Set(x); } bool StartTime_exists() const { const size_t n = offsetof(Self, StartTime); return GetField(n).exists ? true : false; } void StartTime_clear() { const size_t n = offsetof(Self, StartTime); GetField(n).Clear(); } // // CIM_Job_Class.ElapsedTime // const Field& ElapsedTime() const { const size_t n = offsetof(Self, ElapsedTime); return GetField(n); } void ElapsedTime(const Field& x) { const size_t n = offsetof(Self, ElapsedTime); GetField(n) = x; } const Datetime& ElapsedTime_value() const { const size_t n = offsetof(Self, ElapsedTime); return GetField(n).value; } void ElapsedTime_value(const Datetime& x) { const size_t n = offsetof(Self, ElapsedTime); GetField(n).Set(x); } bool ElapsedTime_exists() const { const size_t n = offsetof(Self, ElapsedTime); return GetField(n).exists ? true : false; } void ElapsedTime_clear() { const size_t n = offsetof(Self, ElapsedTime); GetField(n).Clear(); } // // CIM_Job_Class.JobRunTimes // const Field& JobRunTimes() const { const size_t n = offsetof(Self, JobRunTimes); return GetField(n); } void JobRunTimes(const Field& x) { const size_t n = offsetof(Self, JobRunTimes); GetField(n) = x; } const Uint32& JobRunTimes_value() const { const size_t n = offsetof(Self, JobRunTimes); return GetField(n).value; } void JobRunTimes_value(const Uint32& x) { const size_t n = offsetof(Self, JobRunTimes); GetField(n).Set(x); } bool JobRunTimes_exists() const { const size_t n = offsetof(Self, JobRunTimes); return GetField(n).exists ? true : false; } void JobRunTimes_clear() { const size_t n = offsetof(Self, JobRunTimes); GetField(n).Clear(); } // // CIM_Job_Class.RunMonth // const Field& RunMonth() const { const size_t n = offsetof(Self, RunMonth); return GetField(n); } void RunMonth(const Field& x) { const size_t n = offsetof(Self, RunMonth); GetField(n) = x; } const Uint8& RunMonth_value() const { const size_t n = offsetof(Self, RunMonth); return GetField(n).value; } void RunMonth_value(const Uint8& x) { const size_t n = offsetof(Self, RunMonth); GetField(n).Set(x); } bool RunMonth_exists() const { const size_t n = offsetof(Self, RunMonth); return GetField(n).exists ? true : false; } void RunMonth_clear() { const size_t n = offsetof(Self, RunMonth); GetField(n).Clear(); } // // CIM_Job_Class.RunDay // const Field& RunDay() const { const size_t n = offsetof(Self, RunDay); return GetField(n); } void RunDay(const Field& x) { const size_t n = offsetof(Self, RunDay); GetField(n) = x; } const Sint8& RunDay_value() const { const size_t n = offsetof(Self, RunDay); return GetField(n).value; } void RunDay_value(const Sint8& x) { const size_t n = offsetof(Self, RunDay); GetField(n).Set(x); } bool RunDay_exists() const { const size_t n = offsetof(Self, RunDay); return GetField(n).exists ? true : false; } void RunDay_clear() { const size_t n = offsetof(Self, RunDay); GetField(n).Clear(); } // // CIM_Job_Class.RunDayOfWeek // const Field& RunDayOfWeek() const { const size_t n = offsetof(Self, RunDayOfWeek); return GetField(n); } void RunDayOfWeek(const Field& x) { const size_t n = offsetof(Self, RunDayOfWeek); GetField(n) = x; } const Sint8& RunDayOfWeek_value() const { const size_t n = offsetof(Self, RunDayOfWeek); return GetField(n).value; } void RunDayOfWeek_value(const Sint8& x) { const size_t n = offsetof(Self, RunDayOfWeek); GetField(n).Set(x); } bool RunDayOfWeek_exists() const { const size_t n = offsetof(Self, RunDayOfWeek); return GetField(n).exists ? true : false; } void RunDayOfWeek_clear() { const size_t n = offsetof(Self, RunDayOfWeek); GetField(n).Clear(); } // // CIM_Job_Class.RunStartInterval // const Field& RunStartInterval() const { const size_t n = offsetof(Self, RunStartInterval); return GetField(n); } void RunStartInterval(const Field& x) { const size_t n = offsetof(Self, RunStartInterval); GetField(n) = x; } const Datetime& RunStartInterval_value() const { const size_t n = offsetof(Self, RunStartInterval); return GetField(n).value; } void RunStartInterval_value(const Datetime& x) { const size_t n = offsetof(Self, RunStartInterval); GetField(n).Set(x); } bool RunStartInterval_exists() const { const size_t n = offsetof(Self, RunStartInterval); return GetField(n).exists ? true : false; } void RunStartInterval_clear() { const size_t n = offsetof(Self, RunStartInterval); GetField(n).Clear(); } // // CIM_Job_Class.LocalOrUtcTime // const Field& LocalOrUtcTime() const { const size_t n = offsetof(Self, LocalOrUtcTime); return GetField(n); } void LocalOrUtcTime(const Field& x) { const size_t n = offsetof(Self, LocalOrUtcTime); GetField(n) = x; } const Uint16& LocalOrUtcTime_value() const { const size_t n = offsetof(Self, LocalOrUtcTime); return GetField(n).value; } void LocalOrUtcTime_value(const Uint16& x) { const size_t n = offsetof(Self, LocalOrUtcTime); GetField(n).Set(x); } bool LocalOrUtcTime_exists() const { const size_t n = offsetof(Self, LocalOrUtcTime); return GetField(n).exists ? true : false; } void LocalOrUtcTime_clear() { const size_t n = offsetof(Self, LocalOrUtcTime); GetField(n).Clear(); } // // CIM_Job_Class.UntilTime // const Field& UntilTime() const { const size_t n = offsetof(Self, UntilTime); return GetField(n); } void UntilTime(const Field& x) { const size_t n = offsetof(Self, UntilTime); GetField(n) = x; } const Datetime& UntilTime_value() const { const size_t n = offsetof(Self, UntilTime); return GetField(n).value; } void UntilTime_value(const Datetime& x) { const size_t n = offsetof(Self, UntilTime); GetField(n).Set(x); } bool UntilTime_exists() const { const size_t n = offsetof(Self, UntilTime); return GetField(n).exists ? true : false; } void UntilTime_clear() { const size_t n = offsetof(Self, UntilTime); GetField(n).Clear(); } // // CIM_Job_Class.Notify // const Field& Notify() const { const size_t n = offsetof(Self, Notify); return GetField(n); } void Notify(const Field& x) { const size_t n = offsetof(Self, Notify); GetField(n) = x; } const String& Notify_value() const { const size_t n = offsetof(Self, Notify); return GetField(n).value; } void Notify_value(const String& x) { const size_t n = offsetof(Self, Notify); GetField(n).Set(x); } bool Notify_exists() const { const size_t n = offsetof(Self, Notify); return GetField(n).exists ? true : false; } void Notify_clear() { const size_t n = offsetof(Self, Notify); GetField(n).Clear(); } // // CIM_Job_Class.Owner // const Field& Owner() const { const size_t n = offsetof(Self, Owner); return GetField(n); } void Owner(const Field& x) { const size_t n = offsetof(Self, Owner); GetField(n) = x; } const String& Owner_value() const { const size_t n = offsetof(Self, Owner); return GetField(n).value; } void Owner_value(const String& x) { const size_t n = offsetof(Self, Owner); GetField(n).Set(x); } bool Owner_exists() const { const size_t n = offsetof(Self, Owner); return GetField(n).exists ? true : false; } void Owner_clear() { const size_t n = offsetof(Self, Owner); GetField(n).Clear(); } // // CIM_Job_Class.Priority // const Field& Priority() const { const size_t n = offsetof(Self, Priority); return GetField(n); } void Priority(const Field& x) { const size_t n = offsetof(Self, Priority); GetField(n) = x; } const Uint32& Priority_value() const { const size_t n = offsetof(Self, Priority); return GetField(n).value; } void Priority_value(const Uint32& x) { const size_t n = offsetof(Self, Priority); GetField(n).Set(x); } bool Priority_exists() const { const size_t n = offsetof(Self, Priority); return GetField(n).exists ? true : false; } void Priority_clear() { const size_t n = offsetof(Self, Priority); GetField(n).Clear(); } // // CIM_Job_Class.PercentComplete // const Field& PercentComplete() const { const size_t n = offsetof(Self, PercentComplete); return GetField(n); } void PercentComplete(const Field& x) { const size_t n = offsetof(Self, PercentComplete); GetField(n) = x; } const Uint16& PercentComplete_value() const { const size_t n = offsetof(Self, PercentComplete); return GetField(n).value; } void PercentComplete_value(const Uint16& x) { const size_t n = offsetof(Self, PercentComplete); GetField(n).Set(x); } bool PercentComplete_exists() const { const size_t n = offsetof(Self, PercentComplete); return GetField(n).exists ? true : false; } void PercentComplete_clear() { const size_t n = offsetof(Self, PercentComplete); GetField(n).Clear(); } // // CIM_Job_Class.DeleteOnCompletion // const Field& DeleteOnCompletion() const { const size_t n = offsetof(Self, DeleteOnCompletion); return GetField(n); } void DeleteOnCompletion(const Field& x) { const size_t n = offsetof(Self, DeleteOnCompletion); GetField(n) = x; } const Boolean& DeleteOnCompletion_value() const { const size_t n = offsetof(Self, DeleteOnCompletion); return GetField(n).value; } void DeleteOnCompletion_value(const Boolean& x) { const size_t n = offsetof(Self, DeleteOnCompletion); GetField(n).Set(x); } bool DeleteOnCompletion_exists() const { const size_t n = offsetof(Self, DeleteOnCompletion); return GetField(n).exists ? true : false; } void DeleteOnCompletion_clear() { const size_t n = offsetof(Self, DeleteOnCompletion); GetField(n).Clear(); } // // CIM_Job_Class.ErrorCode // const Field& ErrorCode() const { const size_t n = offsetof(Self, ErrorCode); return GetField(n); } void ErrorCode(const Field& x) { const size_t n = offsetof(Self, ErrorCode); GetField(n) = x; } const Uint16& ErrorCode_value() const { const size_t n = offsetof(Self, ErrorCode); return GetField(n).value; } void ErrorCode_value(const Uint16& x) { const size_t n = offsetof(Self, ErrorCode); GetField(n).Set(x); } bool ErrorCode_exists() const { const size_t n = offsetof(Self, ErrorCode); return GetField(n).exists ? true : false; } void ErrorCode_clear() { const size_t n = offsetof(Self, ErrorCode); GetField(n).Clear(); } // // CIM_Job_Class.ErrorDescription // const Field& ErrorDescription() const { const size_t n = offsetof(Self, ErrorDescription); return GetField(n); } void ErrorDescription(const Field& x) { const size_t n = offsetof(Self, ErrorDescription); GetField(n) = x; } const String& ErrorDescription_value() const { const size_t n = offsetof(Self, ErrorDescription); return GetField(n).value; } void ErrorDescription_value(const String& x) { const size_t n = offsetof(Self, ErrorDescription); GetField(n).Set(x); } bool ErrorDescription_exists() const { const size_t n = offsetof(Self, ErrorDescription); return GetField(n).exists ? true : false; } void ErrorDescription_clear() { const size_t n = offsetof(Self, ErrorDescription); GetField(n).Clear(); } // // CIM_Job_Class.RecoveryAction // const Field& RecoveryAction() const { const size_t n = offsetof(Self, RecoveryAction); return GetField(n); } void RecoveryAction(const Field& x) { const size_t n = offsetof(Self, RecoveryAction); GetField(n) = x; } const Uint16& RecoveryAction_value() const { const size_t n = offsetof(Self, RecoveryAction); return GetField(n).value; } void RecoveryAction_value(const Uint16& x) { const size_t n = offsetof(Self, RecoveryAction); GetField(n).Set(x); } bool RecoveryAction_exists() const { const size_t n = offsetof(Self, RecoveryAction); return GetField(n).exists ? true : false; } void RecoveryAction_clear() { const size_t n = offsetof(Self, RecoveryAction); GetField(n).Clear(); } // // CIM_Job_Class.OtherRecoveryAction // const Field& OtherRecoveryAction() const { const size_t n = offsetof(Self, OtherRecoveryAction); return GetField(n); } void OtherRecoveryAction(const Field& x) { const size_t n = offsetof(Self, OtherRecoveryAction); GetField(n) = x; } const String& OtherRecoveryAction_value() const { const size_t n = offsetof(Self, OtherRecoveryAction); return GetField(n).value; } void OtherRecoveryAction_value(const String& x) { const size_t n = offsetof(Self, OtherRecoveryAction); GetField(n).Set(x); } bool OtherRecoveryAction_exists() const { const size_t n = offsetof(Self, OtherRecoveryAction); return GetField(n).exists ? true : false; } void OtherRecoveryAction_clear() { const size_t n = offsetof(Self, OtherRecoveryAction); GetField(n).Clear(); } }; typedef Array CIM_Job_ClassA; MI_END_NAMESPACE #endif /* __cplusplus */ #endif /* _CIM_Job_h */