/* @migen@ */ /* **============================================================================== ** ** WARNING: THIS FILE WAS AUTOMATICALLY GENERATED. PLEASE DO NOT EDIT. ** **============================================================================== */ #ifndef _MSFT_Person_h #define _MSFT_Person_h #include /* **============================================================================== ** ** MSFT_Person [MSFT_Person] ** ** Keys: ** Key ** **============================================================================== */ typedef struct _MSFT_Person { MI_Instance __instance; /* MSFT_Person properties */ /*KEY*/ MI_ConstUint32Field Key; MI_ConstStringField First; MI_ConstStringField Last; MI_ConstStringAField Colors; MI_ConstUint32AField Numbers; MI_ConstUint32Field Nothing; } MSFT_Person; typedef struct _MSFT_Person_Ref { MSFT_Person* value; MI_Boolean exists; MI_Uint8 flags; } MSFT_Person_Ref; typedef struct _MSFT_Person_ConstRef { MI_CONST MSFT_Person* value; MI_Boolean exists; MI_Uint8 flags; } MSFT_Person_ConstRef; typedef struct _MSFT_Person_Array { struct _MSFT_Person** data; MI_Uint32 size; } MSFT_Person_Array; typedef struct _MSFT_Person_ConstArray { struct _MSFT_Person MI_CONST* MI_CONST* data; MI_Uint32 size; } MSFT_Person_ConstArray; typedef struct _MSFT_Person_ArrayRef { MSFT_Person_Array value; MI_Boolean exists; MI_Uint8 flags; } MSFT_Person_ArrayRef; typedef struct _MSFT_Person_ConstArrayRef { MSFT_Person_ConstArray value; MI_Boolean exists; MI_Uint8 flags; } MSFT_Person_ConstArrayRef; MI_EXTERN_C MI_CONST MI_ClassDecl MSFT_Person_rtti; /* **============================================================================== ** ** MSFT_Person_Class ** **============================================================================== */ #ifdef __cplusplus # include MI_BEGIN_NAMESPACE class MSFT_Person_Class : public Instance { public: typedef MSFT_Person Self; MSFT_Person_Class() : Instance(&MSFT_Person_rtti) { } MSFT_Person_Class( const MSFT_Person* instanceName, bool keysOnly) : Instance( &MSFT_Person_rtti, &instanceName->__instance, keysOnly) { } MSFT_Person_Class( const MI_ClassDecl* clDecl, const MI_Instance* instance, bool keysOnly) : Instance(clDecl, instance, keysOnly) { } MSFT_Person_Class( const MI_ClassDecl* clDecl) : Instance(clDecl) { } MSFT_Person_Class& operator=( const MSFT_Person_Class& x) { CopyRef(x); return *this; } MSFT_Person_Class( const MSFT_Person_Class& x) : Instance(x) { } static const MI_ClassDecl* GetClassDecl() { return &MSFT_Person_rtti; } // // MSFT_Person_Class.Key // const Field& Key() const { const size_t n = offsetof(Self, Key); return GetField(n); } void Key(const Field& x) { const size_t n = offsetof(Self, Key); GetField(n) = x; } const Uint32& Key_value() const { const size_t n = offsetof(Self, Key); return GetField(n).value; } void Key_value(const Uint32& x) { const size_t n = offsetof(Self, Key); GetField(n).Set(x); } bool Key_exists() const { const size_t n = offsetof(Self, Key); return GetField(n).exists ? true : false; } void Key_clear() { const size_t n = offsetof(Self, Key); GetField(n).Clear(); } // // MSFT_Person_Class.First // const Field& First() const { const size_t n = offsetof(Self, First); return GetField(n); } void First(const Field& x) { const size_t n = offsetof(Self, First); GetField(n) = x; } const String& First_value() const { const size_t n = offsetof(Self, First); return GetField(n).value; } void First_value(const String& x) { const size_t n = offsetof(Self, First); GetField(n).Set(x); } bool First_exists() const { const size_t n = offsetof(Self, First); return GetField(n).exists ? true : false; } void First_clear() { const size_t n = offsetof(Self, First); GetField(n).Clear(); } // // MSFT_Person_Class.Last // const Field& Last() const { const size_t n = offsetof(Self, Last); return GetField(n); } void Last(const Field& x) { const size_t n = offsetof(Self, Last); GetField(n) = x; } const String& Last_value() const { const size_t n = offsetof(Self, Last); return GetField(n).value; } void Last_value(const String& x) { const size_t n = offsetof(Self, Last); GetField(n).Set(x); } bool Last_exists() const { const size_t n = offsetof(Self, Last); return GetField(n).exists ? true : false; } void Last_clear() { const size_t n = offsetof(Self, Last); GetField(n).Clear(); } // // MSFT_Person_Class.Colors // const Field& Colors() const { const size_t n = offsetof(Self, Colors); return GetField(n); } void Colors(const Field& x) { const size_t n = offsetof(Self, Colors); GetField(n) = x; } const StringA& Colors_value() const { const size_t n = offsetof(Self, Colors); return GetField(n).value; } void Colors_value(const StringA& x) { const size_t n = offsetof(Self, Colors); GetField(n).Set(x); } bool Colors_exists() const { const size_t n = offsetof(Self, Colors); return GetField(n).exists ? true : false; } void Colors_clear() { const size_t n = offsetof(Self, Colors); GetField(n).Clear(); } // // MSFT_Person_Class.Numbers // const Field& Numbers() const { const size_t n = offsetof(Self, Numbers); return GetField(n); } void Numbers(const Field& x) { const size_t n = offsetof(Self, Numbers); GetField(n) = x; } const Uint32A& Numbers_value() const { const size_t n = offsetof(Self, Numbers); return GetField(n).value; } void Numbers_value(const Uint32A& x) { const size_t n = offsetof(Self, Numbers); GetField(n).Set(x); } bool Numbers_exists() const { const size_t n = offsetof(Self, Numbers); return GetField(n).exists ? true : false; } void Numbers_clear() { const size_t n = offsetof(Self, Numbers); GetField(n).Clear(); } // // MSFT_Person_Class.Nothing // const Field& Nothing() const { const size_t n = offsetof(Self, Nothing); return GetField(n); } void Nothing(const Field& x) { const size_t n = offsetof(Self, Nothing); GetField(n) = x; } const Uint32& Nothing_value() const { const size_t n = offsetof(Self, Nothing); return GetField(n).value; } void Nothing_value(const Uint32& x) { const size_t n = offsetof(Self, Nothing); GetField(n).Set(x); } bool Nothing_exists() const { const size_t n = offsetof(Self, Nothing); return GetField(n).exists ? true : false; } void Nothing_clear() { const size_t n = offsetof(Self, Nothing); GetField(n).Clear(); } }; typedef Array MSFT_Person_ClassA; MI_END_NAMESPACE #endif /* __cplusplus */ #endif /* _MSFT_Person_h */