/* @migen@ */ /* **============================================================================== ** ** WARNING: THIS FILE WAS AUTOMATICALLY GENERATED. PLEASE DO NOT EDIT. ** **============================================================================== */ #ifndef _CIM_ManagedSystemElement_h #define _CIM_ManagedSystemElement_h #include #include "CIM_ManagedElement.h" /* **============================================================================== ** ** CIM_ManagedSystemElement [CIM_ManagedSystemElement] ** ** Keys: ** **============================================================================== */ typedef struct _CIM_ManagedSystemElement /* extends CIM_ManagedElement */ { 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_ManagedSystemElement; typedef struct _CIM_ManagedSystemElement_Ref { CIM_ManagedSystemElement* value; MI_Boolean exists; MI_Uint8 flags; } CIM_ManagedSystemElement_Ref; typedef struct _CIM_ManagedSystemElement_ConstRef { MI_CONST CIM_ManagedSystemElement* value; MI_Boolean exists; MI_Uint8 flags; } CIM_ManagedSystemElement_ConstRef; typedef struct _CIM_ManagedSystemElement_Array { struct _CIM_ManagedSystemElement** data; MI_Uint32 size; } CIM_ManagedSystemElement_Array; typedef struct _CIM_ManagedSystemElement_ConstArray { struct _CIM_ManagedSystemElement MI_CONST* MI_CONST* data; MI_Uint32 size; } CIM_ManagedSystemElement_ConstArray; typedef struct _CIM_ManagedSystemElement_ArrayRef { CIM_ManagedSystemElement_Array value; MI_Boolean exists; MI_Uint8 flags; } CIM_ManagedSystemElement_ArrayRef; typedef struct _CIM_ManagedSystemElement_ConstArrayRef { CIM_ManagedSystemElement_ConstArray value; MI_Boolean exists; MI_Uint8 flags; } CIM_ManagedSystemElement_ConstArrayRef; MI_EXTERN_C MI_CONST MI_ClassDecl CIM_ManagedSystemElement_rtti; /* **============================================================================== ** ** CIM_ManagedSystemElement_Class ** **============================================================================== */ #ifdef __cplusplus # include MI_BEGIN_NAMESPACE class CIM_ManagedSystemElement_Class : public CIM_ManagedElement_Class { public: typedef CIM_ManagedSystemElement Self; CIM_ManagedSystemElement_Class() : CIM_ManagedElement_Class(&CIM_ManagedSystemElement_rtti) { } CIM_ManagedSystemElement_Class( const CIM_ManagedSystemElement* instanceName, bool keysOnly) : CIM_ManagedElement_Class( &CIM_ManagedSystemElement_rtti, &instanceName->__instance, keysOnly) { } CIM_ManagedSystemElement_Class( const MI_ClassDecl* clDecl, const MI_Instance* instance, bool keysOnly) : CIM_ManagedElement_Class(clDecl, instance, keysOnly) { } CIM_ManagedSystemElement_Class( const MI_ClassDecl* clDecl) : CIM_ManagedElement_Class(clDecl) { } CIM_ManagedSystemElement_Class& operator=( const CIM_ManagedSystemElement_Class& x) { CopyRef(x); return *this; } CIM_ManagedSystemElement_Class( const CIM_ManagedSystemElement_Class& x) : CIM_ManagedElement_Class(x) { } static const MI_ClassDecl* GetClassDecl() { return &CIM_ManagedSystemElement_rtti; } // // CIM_ManagedSystemElement_Class.InstallDate // const Field& InstallDate() const { const size_t n = offsetof(Self, InstallDate); return GetField(n); } void InstallDate(const Field& x) { const size_t n = offsetof(Self, InstallDate); GetField(n) = x; } const Datetime& InstallDate_value() const { const size_t n = offsetof(Self, InstallDate); return GetField(n).value; } void InstallDate_value(const Datetime& x) { const size_t n = offsetof(Self, InstallDate); GetField(n).Set(x); } bool InstallDate_exists() const { const size_t n = offsetof(Self, InstallDate); return GetField(n).exists ? true : false; } void InstallDate_clear() { const size_t n = offsetof(Self, InstallDate); GetField(n).Clear(); } // // CIM_ManagedSystemElement_Class.Name // const Field& Name() const { const size_t n = offsetof(Self, Name); return GetField(n); } void Name(const Field& x) { const size_t n = offsetof(Self, Name); GetField(n) = x; } const String& Name_value() const { const size_t n = offsetof(Self, Name); return GetField(n).value; } void Name_value(const String& x) { const size_t n = offsetof(Self, Name); GetField(n).Set(x); } bool Name_exists() const { const size_t n = offsetof(Self, Name); return GetField(n).exists ? true : false; } void Name_clear() { const size_t n = offsetof(Self, Name); GetField(n).Clear(); } // // CIM_ManagedSystemElement_Class.OperationalStatus // const Field& OperationalStatus() const { const size_t n = offsetof(Self, OperationalStatus); return GetField(n); } void OperationalStatus(const Field& x) { const size_t n = offsetof(Self, OperationalStatus); GetField(n) = x; } const Uint16A& OperationalStatus_value() const { const size_t n = offsetof(Self, OperationalStatus); return GetField(n).value; } void OperationalStatus_value(const Uint16A& x) { const size_t n = offsetof(Self, OperationalStatus); GetField(n).Set(x); } bool OperationalStatus_exists() const { const size_t n = offsetof(Self, OperationalStatus); return GetField(n).exists ? true : false; } void OperationalStatus_clear() { const size_t n = offsetof(Self, OperationalStatus); GetField(n).Clear(); } // // CIM_ManagedSystemElement_Class.StatusDescriptions // const Field& StatusDescriptions() const { const size_t n = offsetof(Self, StatusDescriptions); return GetField(n); } void StatusDescriptions(const Field& x) { const size_t n = offsetof(Self, StatusDescriptions); GetField(n) = x; } const StringA& StatusDescriptions_value() const { const size_t n = offsetof(Self, StatusDescriptions); return GetField(n).value; } void StatusDescriptions_value(const StringA& x) { const size_t n = offsetof(Self, StatusDescriptions); GetField(n).Set(x); } bool StatusDescriptions_exists() const { const size_t n = offsetof(Self, StatusDescriptions); return GetField(n).exists ? true : false; } void StatusDescriptions_clear() { const size_t n = offsetof(Self, StatusDescriptions); GetField(n).Clear(); } // // CIM_ManagedSystemElement_Class.Status // const Field& Status() const { const size_t n = offsetof(Self, Status); return GetField(n); } void Status(const Field& x) { const size_t n = offsetof(Self, Status); GetField(n) = x; } const String& Status_value() const { const size_t n = offsetof(Self, Status); return GetField(n).value; } void Status_value(const String& x) { const size_t n = offsetof(Self, Status); GetField(n).Set(x); } bool Status_exists() const { const size_t n = offsetof(Self, Status); return GetField(n).exists ? true : false; } void Status_clear() { const size_t n = offsetof(Self, Status); GetField(n).Clear(); } // // CIM_ManagedSystemElement_Class.HealthState // const Field& HealthState() const { const size_t n = offsetof(Self, HealthState); return GetField(n); } void HealthState(const Field& x) { const size_t n = offsetof(Self, HealthState); GetField(n) = x; } const Uint16& HealthState_value() const { const size_t n = offsetof(Self, HealthState); return GetField(n).value; } void HealthState_value(const Uint16& x) { const size_t n = offsetof(Self, HealthState); GetField(n).Set(x); } bool HealthState_exists() const { const size_t n = offsetof(Self, HealthState); return GetField(n).exists ? true : false; } void HealthState_clear() { const size_t n = offsetof(Self, HealthState); GetField(n).Clear(); } // // CIM_ManagedSystemElement_Class.CommunicationStatus // const Field& CommunicationStatus() const { const size_t n = offsetof(Self, CommunicationStatus); return GetField(n); } void CommunicationStatus(const Field& x) { const size_t n = offsetof(Self, CommunicationStatus); GetField(n) = x; } const Uint16& CommunicationStatus_value() const { const size_t n = offsetof(Self, CommunicationStatus); return GetField(n).value; } void CommunicationStatus_value(const Uint16& x) { const size_t n = offsetof(Self, CommunicationStatus); GetField(n).Set(x); } bool CommunicationStatus_exists() const { const size_t n = offsetof(Self, CommunicationStatus); return GetField(n).exists ? true : false; } void CommunicationStatus_clear() { const size_t n = offsetof(Self, CommunicationStatus); GetField(n).Clear(); } // // CIM_ManagedSystemElement_Class.DetailedStatus // const Field& DetailedStatus() const { const size_t n = offsetof(Self, DetailedStatus); return GetField(n); } void DetailedStatus(const Field& x) { const size_t n = offsetof(Self, DetailedStatus); GetField(n) = x; } const Uint16& DetailedStatus_value() const { const size_t n = offsetof(Self, DetailedStatus); return GetField(n).value; } void DetailedStatus_value(const Uint16& x) { const size_t n = offsetof(Self, DetailedStatus); GetField(n).Set(x); } bool DetailedStatus_exists() const { const size_t n = offsetof(Self, DetailedStatus); return GetField(n).exists ? true : false; } void DetailedStatus_clear() { const size_t n = offsetof(Self, DetailedStatus); GetField(n).Clear(); } // // CIM_ManagedSystemElement_Class.OperatingStatus // const Field& OperatingStatus() const { const size_t n = offsetof(Self, OperatingStatus); return GetField(n); } void OperatingStatus(const Field& x) { const size_t n = offsetof(Self, OperatingStatus); GetField(n) = x; } const Uint16& OperatingStatus_value() const { const size_t n = offsetof(Self, OperatingStatus); return GetField(n).value; } void OperatingStatus_value(const Uint16& x) { const size_t n = offsetof(Self, OperatingStatus); GetField(n).Set(x); } bool OperatingStatus_exists() const { const size_t n = offsetof(Self, OperatingStatus); return GetField(n).exists ? true : false; } void OperatingStatus_clear() { const size_t n = offsetof(Self, OperatingStatus); GetField(n).Clear(); } // // CIM_ManagedSystemElement_Class.PrimaryStatus // const Field& PrimaryStatus() const { const size_t n = offsetof(Self, PrimaryStatus); return GetField(n); } void PrimaryStatus(const Field& x) { const size_t n = offsetof(Self, PrimaryStatus); GetField(n) = x; } const Uint16& PrimaryStatus_value() const { const size_t n = offsetof(Self, PrimaryStatus); return GetField(n).value; } void PrimaryStatus_value(const Uint16& x) { const size_t n = offsetof(Self, PrimaryStatus); GetField(n).Set(x); } bool PrimaryStatus_exists() const { const size_t n = offsetof(Self, PrimaryStatus); return GetField(n).exists ? true : false; } void PrimaryStatus_clear() { const size_t n = offsetof(Self, PrimaryStatus); GetField(n).Clear(); } }; typedef Array CIM_ManagedSystemElement_ClassA; MI_END_NAMESPACE #endif /* __cplusplus */ #endif /* _CIM_ManagedSystemElement_h */