source: trunk/Lucide/SOURCE/plugins/ludoc/luinode.xih @ 47

Last change on this file since 47 was 2, checked in by Eugene Romanenko, 16 years ago

First import

File size: 12.7 KB
Line 
1
2/*
3 * This file was generated by the SOM Compiler.
4 * FileName: luinode.xih.
5 * Generated using:
6 *     SOM Precompiler somipc: 2.29.1.17
7 *     SOM Emitter emitxih: 2.47
8 */
9
10/*
11 * -- By default, for classes declared using IDL,
12 * -- this emitter doesn't define redispatch/apply stubs.
13 * -- Instead, it requests that the SOM kernel produce them.
14 * -- To override this default, use the "notc" modifier.
15 */
16
17#ifndef SOM_LuIndexNode_xih
18#define SOM_LuIndexNode_xih
19
20#include <somcls.xh>
21#include <somcm.xh>
22
23#ifndef SOM_LuIndexNode_xh
24#include <luinode.xh>
25#endif
26
27/*
28 * Set the scope of methods functions
29 */
30#ifndef SOM_Scope
31#define SOM_Scope static
32#endif
33
34#define LuIndexNode_MaxNoMethods 5
35
36/*
37 * -- Instance Data
38 */
39typedef struct {
40        void* data;
41} LuIndexNodeData;
42
43/*
44 * -- Getdata Macro
45 */
46
47/*
48 * -- This emitter treats Data Tokens as Thunks by default.
49 * -- Use the sc modifier "nothunks" to override this default.
50 */
51typedef LuIndexNodeData* (SOMLINK * somTD_LuIndexNode_DataThunk)(void*);
52#define LuIndexNodeGetData(somSelf) \
53   (((somTD_LuIndexNode_DataThunk)(LuIndexNodeCClassData.instanceDataToken))(somSelf))
54
55/*
56 * -- Instance Data Access Macros for use in Method Procedures
57 */
58#ifdef VARIABLE_MACROS
59  #define _data (somThis->data)
60#endif
61
62
63/*
64 * -- Primary Implementation File Support
65 */
66#if (defined(LuIndexNode_Class_Source) || defined(SOM_Module_luinode_Source))
67
68/*
69 * Trace/Debug macro
70 */
71#ifndef LuIndexNodeMethodDebug
72   #define LuIndexNodeMethodDebug(c,m) SOMMethodDebug(c,m)
73#endif
74
75/*
76 * -- Method Macros for use in Method Procedures
77 */
78#ifdef METHOD_MACROS
79  #define _somDefaultInit somSelf->somDefaultInit
80  #define _somDestruct somSelf->somDestruct
81  #define _somDefaultCopyInit somSelf->somDefaultCopyInit
82  #define _somDefaultAssign somSelf->somDefaultAssign
83  #define _somDefaultConstCopyInit somSelf->somDefaultConstCopyInit
84  #define _somDefaultVCopyInit somSelf->somDefaultVCopyInit
85  #define _somDefaultConstVCopyInit somSelf->somDefaultConstVCopyInit
86  #define _somDefaultConstAssign somSelf->somDefaultConstAssign
87  #define _somDefaultVAssign somSelf->somDefaultVAssign
88  #define _somDefaultConstVAssign somSelf->somDefaultConstVAssign
89  #define _somInit somSelf->somInit
90  #define _somFree somSelf->somFree
91  #define _somUninit somSelf->somUninit
92  #define _somGetClass somSelf->somGetClass
93  #define _somGetClassName somSelf->somGetClassName
94  #define _somGetSize somSelf->somGetSize
95  #define _somIsA somSelf->somIsA
96  #define _somIsInstanceOf somSelf->somIsInstanceOf
97  #define _somRespondsTo somSelf->somRespondsTo
98  #define _somDispatch somSelf->somDispatch
99  #define _somClassDispatch somSelf->somClassDispatch
100  #define _somCastObj somSelf->somCastObj
101  #define _somResetObj somSelf->somResetObj
102  #define _somDispatchV somSelf->somDispatchV
103  #define _somDispatchL somSelf->somDispatchL
104  #define _somDispatchA somSelf->somDispatchA
105  #define _somDispatchD somSelf->somDispatchD
106  #define _somPrintSelf somSelf->somPrintSelf
107  #define _somDumpSelf somSelf->somDumpSelf
108  #define _somDumpSelfInt somSelf->somDumpSelfInt
109  #define _LuIndexNodeInit somSelf->LuIndexNodeInit
110  #define _addChild somSelf->addChild
111  #define _getFirstChild somSelf->getFirstChild
112  #define _getNextChild somSelf->getNextChild
113  #define _getLink somSelf->getLink
114  #define _somDestruct somSelf->somDestruct
115#endif
116
117
118/*
119 * -- The LuIndexNode ClassData Structure
120 */
121SOMEXTERN struct LuIndexNodeClassDataStructure SOMDLINK LuIndexNodeClassData = {(SOMClass *) NULL};
122
123/*
124 * -- The auxiliary LuIndexNode ClassData structure
125 */
126SOMEXTERN struct LuIndexNodeCClassDataStructure SOMDLINK LuIndexNodeCClassData = {(somMethodTabs) NULL};
127
128
129/*
130 * New Method: LuIndexNodeInit
131 */
132SOM_Scope void  SOMLINK LuIndexNodeInit(LuIndexNode *somSelf, Environment *ev,
133                somInitCtrl* ctrl,
134                LuLink* link);
135#ifndef somMN_LuIndexNodeInit_defined
136#define somMN_LuIndexNodeInit_defined
137static char *somMN_LuIndexNodeInit = "LuIndexNodeInit";
138static somId somId_LuIndexNodeInit = &somMN_LuIndexNodeInit;
139#endif  /* somMN_LuIndexNodeInit_defined */
140#ifndef somDS_LuIndexNodeInit_defined
141#define somDS_LuIndexNodeInit_defined
142static char *somDS_LuIndexNodeInit = "::LuIndexNode::LuIndexNodeInit";
143static somId somDI_LuIndexNodeInit = &somDS_LuIndexNodeInit;
144#endif  /* somDS_LuIndexNodeInit_defined */
145#define LuIndexNodeInit_somApRdDefault
146
147/*
148 * New Method: addChild
149 */
150SOM_Scope void  SOMLINK addChild(LuIndexNode *somSelf, Environment *ev,
151                LuIndexNode* node);
152#ifndef somMN_addChild_defined
153#define somMN_addChild_defined
154static char *somMN_addChild = "addChild";
155static somId somId_addChild = &somMN_addChild;
156#endif  /* somMN_addChild_defined */
157#ifndef somDS_addChild_defined
158#define somDS_addChild_defined
159static char *somDS_addChild = "::LuIndexNode::addChild";
160static somId somDI_addChild = &somDS_addChild;
161#endif  /* somDS_addChild_defined */
162#define addChild_somApRdDefault
163
164/*
165 * New Method: getFirstChild
166 */
167SOM_Scope LuIndexNode*  SOMLINK getFirstChild(LuIndexNode *somSelf, Environment *ev);
168#ifndef somMN_getFirstChild_defined
169#define somMN_getFirstChild_defined
170static char *somMN_getFirstChild = "getFirstChild";
171static somId somId_getFirstChild = &somMN_getFirstChild;
172#endif  /* somMN_getFirstChild_defined */
173#ifndef somDS_getFirstChild_defined
174#define somDS_getFirstChild_defined
175static char *somDS_getFirstChild = "::LuIndexNode::getFirstChild";
176static somId somDI_getFirstChild = &somDS_getFirstChild;
177#endif  /* somDS_getFirstChild_defined */
178#define getFirstChild_somApRdDefault
179
180/*
181 * New Method: getNextChild
182 */
183SOM_Scope LuIndexNode*  SOMLINK getNextChild(LuIndexNode *somSelf, Environment *ev);
184#ifndef somMN_getNextChild_defined
185#define somMN_getNextChild_defined
186static char *somMN_getNextChild = "getNextChild";
187static somId somId_getNextChild = &somMN_getNextChild;
188#endif  /* somMN_getNextChild_defined */
189#ifndef somDS_getNextChild_defined
190#define somDS_getNextChild_defined
191static char *somDS_getNextChild = "::LuIndexNode::getNextChild";
192static somId somDI_getNextChild = &somDS_getNextChild;
193#endif  /* somDS_getNextChild_defined */
194#define getNextChild_somApRdDefault
195
196/*
197 * New Method: getLink
198 */
199SOM_Scope LuLink*  SOMLINK getLink(LuIndexNode *somSelf, Environment *ev);
200#ifndef somMN_getLink_defined
201#define somMN_getLink_defined
202static char *somMN_getLink = "getLink";
203static somId somId_getLink = &somMN_getLink;
204#endif  /* somMN_getLink_defined */
205#ifndef somDS_getLink_defined
206#define somDS_getLink_defined
207static char *somDS_getLink = "::LuIndexNode::getLink";
208static somId somDI_getLink = &somDS_getLink;
209#endif  /* somDS_getLink_defined */
210#define getLink_somApRdDefault
211
212/*
213 * Overridden method: somDestruct
214 */
215SOM_Scope void  SOMLINK somDestruct(LuIndexNode *somSelf,
216                octet doFree,
217                som3DestructCtrl* ctrl);
218static char *somMN_LuIndexNodesomDestruct = "SOMObject::somDestruct";
219static somId somId_LuIndexNodesomDestruct = &somMN_LuIndexNodesomDestruct;
220#ifdef somId_somDestruct
221#undef somId_somDestruct
222#else
223#define somId_somDestruct somId_LuIndexNodesomDestruct
224#endif
225
226/*
227 * -- Routines and Structures to create the class object
228 */
229
230
231/*
232 * Declare the Static Methods table.
233 */
234static somStaticMethod_t LuIndexNodeSM[] = {
235    {    &LuIndexNodeClassData.LuIndexNodeInit,
236         &somId_LuIndexNodeInit,
237         &somDI_LuIndexNodeInit,
238         (somMethodProc *) LuIndexNodeInit,
239         (somMethodProc *)((void*)-1),
240#ifdef LuIndexNodeInit_somApRdDefault
241         0},
242#else
243         (somMethodProc *) ((void*) &LuIndexNodeInitStubs) },
244#endif
245    {    &LuIndexNodeClassData.addChild,
246         &somId_addChild,
247         &somDI_addChild,
248         (somMethodProc *) addChild,
249         (somMethodProc *)((void*)-1),
250#ifdef addChild_somApRdDefault
251         0},
252#else
253         (somMethodProc *) ((void*) &addChildStubs) },
254#endif
255    {    &LuIndexNodeClassData.getFirstChild,
256         &somId_getFirstChild,
257         &somDI_getFirstChild,
258         (somMethodProc *) getFirstChild,
259         (somMethodProc *)((void*)-1),
260#ifdef getFirstChild_somApRdDefault
261         0},
262#else
263         (somMethodProc *) ((void*) &getFirstChildStubs) },
264#endif
265    {    &LuIndexNodeClassData.getNextChild,
266         &somId_getNextChild,
267         &somDI_getNextChild,
268         (somMethodProc *) getNextChild,
269         (somMethodProc *)((void*)-1),
270#ifdef getNextChild_somApRdDefault
271         0},
272#else
273         (somMethodProc *) ((void*) &getNextChildStubs) },
274#endif
275    {    &LuIndexNodeClassData.getLink,
276         &somId_getLink,
277         &somDI_getLink,
278         (somMethodProc *) getLink,
279         (somMethodProc *)((void*)-1),
280#ifdef getLink_somApRdDefault
281         0},
282#else
283         (somMethodProc *) ((void*) &getLinkStubs) },
284#endif
285};
286
287
288/*
289 * Declare the Override Methods table.
290 */
291static somOverrideMethod_t LuIndexNodeOM[] = {
292    {    &somId_LuIndexNodesomDestruct,
293         (somMethodProc *) somDestruct  },
294};
295
296
297/*
298 *  class Ids
299 */
300static char * somCN_LuIndexNode = "LuIndexNode";
301static char * somPCN_LuIndexNode_SOMObject = "SOMObject";
302
303static somId somPCLuIndexNode[] = {
304    &somPCN_LuIndexNode_SOMObject,
305};
306
307static somId somINITLuIndexNode[] = {
308    &somMN_LuIndexNodeInit,
309};
310
311static somStaticClassInfo LuIndexNodeSCI = {
312    4, 5, 1, 0, 0, 0, /* layout version 4 */
313    LuIndexNode_MajorVersion, LuIndexNode_MinorVersion,
314    sizeof(LuIndexNodeData), LuIndexNode_MaxNoMethods, 1,
315    &somCN_LuIndexNode,
316    (somId) NULL, 1,
317    somPCLuIndexNode,
318    (somClassDataStructure *) &LuIndexNodeClassData,
319    (somCClassDataStructure *) &LuIndexNodeCClassData,
320    LuIndexNodeSM, LuIndexNodeOM,
321    (char *) NULL,
322    (somNonInternalData_t *) NULL,
323   (somProcMethods_t *) NULL,
324    (somVarargsFuncs_t *) NULL,
325    (somTP_somClassInitFunc *) NULL,
326    4, /* type code alignment */
327    -1, /* use parents as DirectInitClasses */
328    0, /* no explicit DirectInitClasses */
329    0, /* number of general methods */
330    (somMethods_t *) NULL,
331    0, /* no public data offset */
332    0, /* no sci development level check */
333    0, /* number of SelectInheritedMethods */
334    0, /* no SelectInheritedMethods */
335    5, /* number of classdata entries */
336    0, /* no list provided currently */
337    0, /* number of migrated methods */
338    0, /* no migrated method implementations */
339    1, /* number of initializers */
340    somINITLuIndexNode, /* initializers */
341    0, /* not DTS a class */
342    0, /* no dynamically computed info */
343};
344
345
346/*
347 * Class Creation and Initialization
348 */
349
350SOMClass * SOMLINK LuIndexNodeNewClass (integer4 somtmajorVersion,
351                integer4 somtminorVersion)
352{
353    SOMClass *result;
354    if (_LuIndexNode && _LuIndexNode->somCheckVersion(somtmajorVersion, somtminorVersion))
355          return ((SOMClass*)((void*)_LuIndexNode));
356    SOMObjectNewClass(SOMObject_MajorVersion,SOMObject_MinorVersion);   /* static reference */
357    result = (SOMClass*)((void*)somBuildClass(0xFFFFFFFF,&LuIndexNodeSCI, somtmajorVersion, somtminorVersion));
358    return result;
359}
360
361/*
362 * Functions for attributes.
363 */
364
365/*
366 * Macros for initializer/destructor entry/exit
367 */
368#define LuIndexNode_BeginDestructor \
369   if (!ctrl) { \
370      ctrl = &globalCtrl; \
371      memcpy(ctrl,&(((somParentMtabStructPtr)LuIndexNodeCClassData.parentMtab)->destructCtrl),sizeof(somDestructCtrl)); \
372   } \
373   somThis = (LuIndexNodeData*)((char*)somSelf + ctrl->info->dataOffset);\
374   myMask = ctrl->mask;
375#define LuIndexNode_EndDestructor \
376   ctrl->info = (somDestructInfo*)(ctrl->infoSize + (char*)(ctrl->info)); \
377   ctrl->mask += 1; \
378   LuIndexNode_DeInit_SOMObject_somDestruct(somSelf,0,ctrl); \
379   if (doFree) _LuIndexNode->somDeallocate((string)somSelf);
380#define LuIndexNode_BeginInitializer_LuIndexNodeInit \
381   if (!ctrl) { \
382      ctrl = &globalCtrl; \
383      memcpy(ctrl,&(((somParentMtabStructPtr)LuIndexNodeCClassData.parentMtab)->initCtrl),sizeof(somInitCtrl)); \
384   } \
385   myMask = ctrl->mask; \
386   somThis = (LuIndexNodeData*)((char*)somSelf + ctrl->info->dataOffset);\
387   ctrl->info = (somInitInfo*)(ctrl->infoSize + (char*)(ctrl->info)); \
388   ctrl->mask += 1;
389
390/*
391 * Ancestor_Init/DeInit Macros
392 */
393
394/* ...for SOMObject */
395#define LuIndexNode_Init_SOMObject_somDefaultInit(somSelf, ctrl) \
396        if (myMask[0]&1) \
397        /* special case SOMObject */\
398        ctrl->info = (somInitInfo*)(ctrl->infoSize + (char*)(ctrl->info));
399#define LuIndexNode_DeInit_SOMObject_somDestruct(somSelf, doFree, ctrl) \
400        if (myMask[0]&1) \
401        /* special case SOMObject */\
402        ctrl->info = (somDestructInfo*)(ctrl->infoSize + (char*)(ctrl->info));
403
404#endif /* Primary Implementation Support */
405
406#endif       /* SOM_LuIndexNode_xih */
Note: See TracBrowser for help on using the repository browser.