1 mike 1.1 /* @migen@ */
2 /*
3 **==============================================================================
4 **
5 ** WARNING: THIS FILE WAS AUTOMATICALLY GENERATED. PLEASE DO NOT EDIT.
6 **
7 **==============================================================================
8 */
9 #ifndef _Inner_h
10 #define _Inner_h
11
12 #include <MI.h>
13
14 /*
15 **==============================================================================
16 **
17 ** Inner [Inner]
18 **
19 ** Keys:
20 ** Key
21 **
22 mike 1.1 **==============================================================================
23 */
24
25 typedef struct _Inner
26 {
27 MI_Instance __instance;
28 /* Inner properties */
29 /*KEY*/ MI_ConstUint32Field Key;
30 MI_ConstStringField Str;
31 }
32 Inner;
33
34 typedef struct _Inner_Ref
35 {
36 Inner* value;
37 MI_Boolean exists;
38 MI_Uint8 flags;
39 }
40 Inner_Ref;
41
42 typedef struct _Inner_ConstRef
43 mike 1.1 {
44 MI_CONST Inner* value;
45 MI_Boolean exists;
46 MI_Uint8 flags;
47 }
48 Inner_ConstRef;
49
50 typedef struct _Inner_Array
51 {
52 struct _Inner** data;
53 MI_Uint32 size;
54 }
55 Inner_Array;
56
57 typedef struct _Inner_ConstArray
58 {
59 struct _Inner MI_CONST* MI_CONST* data;
60 MI_Uint32 size;
61 }
62 Inner_ConstArray;
63
64 mike 1.1 typedef struct _Inner_ArrayRef
65 {
66 Inner_Array value;
67 MI_Boolean exists;
68 MI_Uint8 flags;
69 }
70 Inner_ArrayRef;
71
72 typedef struct _Inner_ConstArrayRef
73 {
74 Inner_ConstArray value;
75 MI_Boolean exists;
76 MI_Uint8 flags;
77 }
78 Inner_ConstArrayRef;
79
80 MI_EXTERN_C MI_CONST MI_ClassDecl Inner_rtti;
81
82
83 /*
84 **==============================================================================
85 mike 1.1 **
86 ** Inner_Class
87 **
88 **==============================================================================
89 */
90
91 #ifdef __cplusplus
92 # include <micxx/micxx.h>
93
94 MI_BEGIN_NAMESPACE
95
96 class Inner_Class : public Instance
97 {
98 public:
99
100 typedef Inner Self;
101
102 Inner_Class() :
103 Instance(&Inner_rtti)
104 {
105 }
106 mike 1.1
107 Inner_Class(
108 const Inner* instanceName,
109 bool keysOnly) :
110 Instance(
111 &Inner_rtti,
112 &instanceName->__instance,
113 keysOnly)
114 {
115 }
116
117 Inner_Class(
118 const MI_ClassDecl* clDecl,
119 const MI_Instance* instance,
120 bool keysOnly) :
121 Instance(clDecl, instance, keysOnly)
122 {
123 }
124
125 Inner_Class(
126 const MI_ClassDecl* clDecl) :
127 mike 1.1 Instance(clDecl)
128 {
129 }
130
131 Inner_Class& operator=(
132 const Inner_Class& x)
133 {
134 CopyRef(x);
135 return *this;
136 }
137
138 Inner_Class(
139 const Inner_Class& x) :
140 Instance(x)
141 {
142 }
143
144 static const MI_ClassDecl* GetClassDecl()
145 {
146 return &Inner_rtti;
147 }
148 mike 1.1
149 //
150 // Inner_Class.Key
151 //
152
153 const Field<Uint32>& Key() const
154 {
155 const size_t n = offsetof(Self, Key);
156 return GetField<Uint32>(n);
157 }
158
159 void Key(const Field<Uint32>& x)
160 {
161 const size_t n = offsetof(Self, Key);
162 GetField<Uint32>(n) = x;
163 }
164
165 const Uint32& Key_value() const
166 {
167 const size_t n = offsetof(Self, Key);
168 return GetField<Uint32>(n).value;
169 mike 1.1 }
170
171 void Key_value(const Uint32& x)
172 {
173 const size_t n = offsetof(Self, Key);
174 GetField<Uint32>(n).Set(x);
175 }
176
177 bool Key_exists() const
178 {
179 const size_t n = offsetof(Self, Key);
180 return GetField<Uint32>(n).exists ? true : false;
181 }
182
183 void Key_clear()
184 {
185 const size_t n = offsetof(Self, Key);
186 GetField<Uint32>(n).Clear();
187 }
188
189 //
190 mike 1.1 // Inner_Class.Str
191 //
192
193 const Field<String>& Str() const
194 {
195 const size_t n = offsetof(Self, Str);
196 return GetField<String>(n);
197 }
198
199 void Str(const Field<String>& x)
200 {
201 const size_t n = offsetof(Self, Str);
202 GetField<String>(n) = x;
203 }
204
205 const String& Str_value() const
206 {
207 const size_t n = offsetof(Self, Str);
208 return GetField<String>(n).value;
209 }
210
211 mike 1.1 void Str_value(const String& x)
212 {
213 const size_t n = offsetof(Self, Str);
214 GetField<String>(n).Set(x);
215 }
216
217 bool Str_exists() const
218 {
219 const size_t n = offsetof(Self, Str);
220 return GetField<String>(n).exists ? true : false;
221 }
222
223 void Str_clear()
224 {
225 const size_t n = offsetof(Self, Str);
226 GetField<String>(n).Clear();
227 }
228 };
229
230 typedef Array<Inner_Class> Inner_ClassA;
231
232 mike 1.1 MI_END_NAMESPACE
233
234 #endif /* __cplusplus */
235
236 #endif /* _Inner_h */
|