-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdatacls.xh
More file actions
7729 lines (6704 loc) · 240 KB
/
datacls.xh
File metadata and controls
7729 lines (6704 loc) · 240 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/*
* This file was generated by the SOM Compiler.
* FileName: datacls.xh.
* Generated using:
* SOM Precompiler somipc: 2.29.1.17
* SOM Emitter emitxh: 2.47
*/
#ifndef SOM_KeyObject_xh
#define SOM_KeyObject_xh
class KeyObject;
#define KeyObject_MajorVersion 2
#define KeyObject_MinorVersion 1
/* C++ SOM defs */
#include <somcls.xh>
#include <somcm.xh>
/* C++ parent defs */
#ifndef SOM_somf_TCollectibleLong_xh
#include <tclong.xh>
#endif
#ifndef KeyObject_API
#define KeyObject_API
/*
* -- The Class API
*/
/*
* Start of bindings for IDL types
*/
class SOMClass;
class SOMObject;
class THAssoc;
class somf_TAssoc;
class WPObject;
class WPFolder;
class WPImageFile;
class M_WPObject;
class M_RMDeviceCollection;
/*
* End of bindings for IDL types.
*/
/*
* Passthru lines: File: "C.xh", "after"
*/
#include <thash.xh>
#include <tclong.xh>
#include <thashitr.xh>
/* A procedure to create the KeyObject Class */
SOMEXTERN SOMClass * SOMLINK KeyObjectNewClass(
integer4 majorVersion,
integer4 minorVersion);
/* The API to the KeyObject class object, and the methods it introduces. */
SOMEXTERN struct KeyObjectClassDataStructure {
SOMClass *classObject;
} SOMDLINK KeyObjectClassData;
#define _KeyObject KeyObjectClassData.classObject
/* The API to parentMtabs for KeyObject, and the instance data it introduces. */
SOMEXTERN struct KeyObjectCClassDataStructure {
somMethodTabs parentMtab;
somDToken instanceDataToken;
} SOMDLINK KeyObjectCClassData;
/*
* -- Typedefs for KeyObject Method Procedures
*/
SOMEXTERN {
/*
* -- Typedefs for Reintroduced Wrapper Methods
*/
typedef somf_TCollectibleLong* SOMLINK somTP_KeyObject_somfTCollectibleLongInit(KeyObject *somSelf, Environment *ev,
long v);
typedef somTP_KeyObject_somfTCollectibleLongInit *somTD_KeyObject_somfTCollectibleLongInit;
typedef long SOMLINK somTP_KeyObject_somfGetValue(KeyObject *somSelf, Environment *ev);
typedef somTP_KeyObject_somfGetValue *somTD_KeyObject_somfGetValue;
typedef void SOMLINK somTP_KeyObject_somfSetValue(KeyObject *somSelf, Environment *ev,
long v);
typedef somTP_KeyObject_somfSetValue *somTD_KeyObject_somfSetValue;
typedef void SOMLINK somTP_KeyObject_somInit(KeyObject *somSelf);
typedef somTP_KeyObject_somInit *somTD_KeyObject_somInit;
typedef boolean SOMLINK somTP_KeyObject_somfIsEqual(KeyObject *somSelf, Environment *ev,
somf_MCollectible* obj);
typedef somTP_KeyObject_somfIsEqual *somTD_KeyObject_somfIsEqual;
typedef long SOMLINK somTP_KeyObject_somfHash(KeyObject *somSelf, Environment *ev);
typedef somTP_KeyObject_somfHash *somTD_KeyObject_somfHash;
typedef somf_MCollectible* SOMLINK somTP_KeyObject_somfClone(KeyObject *somSelf, Environment *ev);
typedef somTP_KeyObject_somfClone *somTD_KeyObject_somfClone;
typedef somf_MCollectible* SOMLINK somTP_KeyObject_somfClonePointer(KeyObject *somSelf, Environment *ev,
somf_MCollectible* clonee);
typedef somTP_KeyObject_somfClonePointer *somTD_KeyObject_somfClonePointer;
typedef boolean SOMLINK somTP_KeyObject_somfIsSame(KeyObject *somSelf, Environment *ev,
somf_MCollectible* obj);
typedef somTP_KeyObject_somfIsSame *somTD_KeyObject_somfIsSame;
typedef boolean SOMLINK somTP_KeyObject_somfIsNotEqual(KeyObject *somSelf, Environment *ev,
somf_MCollectible* obj);
typedef somTP_KeyObject_somfIsNotEqual *somTD_KeyObject_somfIsNotEqual;
typedef void SOMLINK somTP_KeyObject_somDefaultInit(KeyObject *somSelf,
som3InitCtrl* ctrl);
typedef somTP_KeyObject_somDefaultInit *somTD_KeyObject_somDefaultInit;
typedef void SOMLINK somTP_KeyObject_somDestruct(KeyObject *somSelf,
octet doFree,
som3DestructCtrl* ctrl);
typedef somTP_KeyObject_somDestruct *somTD_KeyObject_somDestruct;
typedef void SOMLINK somTP_KeyObject_somDefaultCopyInit(KeyObject *somSelf,
som3InitCtrl* ctrl,
SOMObject* fromObj);
typedef somTP_KeyObject_somDefaultCopyInit *somTD_KeyObject_somDefaultCopyInit;
typedef KeyObject* SOMLINK somTP_KeyObject_somDefaultAssign(KeyObject *somSelf,
som3AssignCtrl* ctrl,
SOMObject* fromObj);
typedef somTP_KeyObject_somDefaultAssign *somTD_KeyObject_somDefaultAssign;
typedef void SOMLINK somTP_KeyObject_somDefaultConstCopyInit(KeyObject *somSelf,
som3InitCtrl* ctrl,
SOMObject* fromObj);
typedef somTP_KeyObject_somDefaultConstCopyInit *somTD_KeyObject_somDefaultConstCopyInit;
typedef void SOMLINK somTP_KeyObject_somDefaultVCopyInit(KeyObject *somSelf,
som3InitCtrl* ctrl,
SOMObject* fromObj);
typedef somTP_KeyObject_somDefaultVCopyInit *somTD_KeyObject_somDefaultVCopyInit;
typedef void SOMLINK somTP_KeyObject_somDefaultConstVCopyInit(KeyObject *somSelf,
som3InitCtrl* ctrl,
SOMObject* fromObj);
typedef somTP_KeyObject_somDefaultConstVCopyInit *somTD_KeyObject_somDefaultConstVCopyInit;
typedef KeyObject* SOMLINK somTP_KeyObject_somDefaultConstAssign(KeyObject *somSelf,
som3AssignCtrl* ctrl,
SOMObject* fromObj);
typedef somTP_KeyObject_somDefaultConstAssign *somTD_KeyObject_somDefaultConstAssign;
typedef KeyObject* SOMLINK somTP_KeyObject_somDefaultVAssign(KeyObject *somSelf,
som3AssignCtrl* ctrl,
SOMObject* fromObj);
typedef somTP_KeyObject_somDefaultVAssign *somTD_KeyObject_somDefaultVAssign;
typedef KeyObject* SOMLINK somTP_KeyObject_somDefaultConstVAssign(KeyObject *somSelf,
som3AssignCtrl* ctrl,
SOMObject* fromObj);
typedef somTP_KeyObject_somDefaultConstVAssign *somTD_KeyObject_somDefaultConstVAssign;
typedef void SOMLINK somTP_KeyObject_somFree(KeyObject *somSelf);
typedef somTP_KeyObject_somFree *somTD_KeyObject_somFree;
typedef void SOMLINK somTP_KeyObject_somUninit(KeyObject *somSelf);
typedef somTP_KeyObject_somUninit *somTD_KeyObject_somUninit;
typedef SOMClass* SOMLINK somTP_KeyObject_somGetClass(KeyObject *somSelf);
typedef somTP_KeyObject_somGetClass *somTD_KeyObject_somGetClass;
typedef string SOMLINK somTP_KeyObject_somGetClassName(KeyObject *somSelf);
typedef somTP_KeyObject_somGetClassName *somTD_KeyObject_somGetClassName;
typedef long SOMLINK somTP_KeyObject_somGetSize(KeyObject *somSelf);
typedef somTP_KeyObject_somGetSize *somTD_KeyObject_somGetSize;
typedef boolean SOMLINK somTP_KeyObject_somIsA(KeyObject *somSelf,
SOMClass* aClassObj);
typedef somTP_KeyObject_somIsA *somTD_KeyObject_somIsA;
typedef boolean SOMLINK somTP_KeyObject_somIsInstanceOf(KeyObject *somSelf,
SOMClass* aClassObj);
typedef somTP_KeyObject_somIsInstanceOf *somTD_KeyObject_somIsInstanceOf;
typedef boolean SOMLINK somTP_KeyObject_somRespondsTo(KeyObject *somSelf,
somId mId);
typedef somTP_KeyObject_somRespondsTo *somTD_KeyObject_somRespondsTo;
typedef boolean SOMLINK somTP_KeyObject_somDispatch(KeyObject *somSelf,
somToken* retValue,
somId methodId,
va_list ap);
typedef somTP_KeyObject_somDispatch *somTD_KeyObject_somDispatch;
typedef boolean SOMLINK somTP_KeyObject_somClassDispatch(KeyObject *somSelf,
SOMClass* clsObj,
somToken* retValue,
somId methodId,
va_list ap);
typedef somTP_KeyObject_somClassDispatch *somTD_KeyObject_somClassDispatch;
typedef boolean SOMLINK somTP_KeyObject_somCastObj(KeyObject *somSelf,
SOMClass* cls);
typedef somTP_KeyObject_somCastObj *somTD_KeyObject_somCastObj;
typedef boolean SOMLINK somTP_KeyObject_somResetObj(KeyObject *somSelf);
typedef somTP_KeyObject_somResetObj *somTD_KeyObject_somResetObj;
typedef void SOMLINK somTP_KeyObject_somDispatchV(KeyObject *somSelf,
somId methodId,
somId descriptor,
va_list ap);
typedef somTP_KeyObject_somDispatchV *somTD_KeyObject_somDispatchV;
typedef long SOMLINK somTP_KeyObject_somDispatchL(KeyObject *somSelf,
somId methodId,
somId descriptor,
va_list ap);
typedef somTP_KeyObject_somDispatchL *somTD_KeyObject_somDispatchL;
typedef void* SOMLINK somTP_KeyObject_somDispatchA(KeyObject *somSelf,
somId methodId,
somId descriptor,
va_list ap);
typedef somTP_KeyObject_somDispatchA *somTD_KeyObject_somDispatchA;
typedef double SOMLINK somTP_KeyObject_somDispatchD(KeyObject *somSelf,
somId methodId,
somId descriptor,
va_list ap);
typedef somTP_KeyObject_somDispatchD *somTD_KeyObject_somDispatchD;
typedef SOMObject* SOMLINK somTP_KeyObject_somPrintSelf(KeyObject *somSelf);
typedef somTP_KeyObject_somPrintSelf *somTD_KeyObject_somPrintSelf;
typedef void SOMLINK somTP_KeyObject_somDumpSelf(KeyObject *somSelf,
long level);
typedef somTP_KeyObject_somDumpSelf *somTD_KeyObject_somDumpSelf;
typedef void SOMLINK somTP_KeyObject_somDumpSelfInt(KeyObject *somSelf,
long level);
typedef somTP_KeyObject_somDumpSelfInt *somTD_KeyObject_somDumpSelfInt;
}
#endif /* KeyObject_API */
/*
* -- This emitter treats Method Tokens as Thunks by default.
* -- Use the sc modifier "nothunks" to change this default
*/
#undef somresolve_
#define somresolve_(obj,mToken) ((somMethodProc*)((void)obj, mToken))
/*
* -- The C++ Wrapper Class for KeyObject
*/
class KeyObject : public somf_TCollectibleLong
{
public:
// KeyObject::new creates the class object if necessary, and then uses somNewNoInit
// to allocate memory and create the object. Initialization is in ctors.
void *operator new(size_t)
{
if (!_KeyObject) KeyObjectNewClass(KeyObject_MajorVersion,KeyObject_MinorVersion);
return (void*)
SOM_Resolve(_KeyObject,SOMClass,somNewNoInit)
((SOMClass *)((void*)_KeyObject));
}
// KeyObject::delete uses somDestruct.
void operator delete(void * obj)
{
if (obj && *(void**)obj) {
SOM_Resolve(obj,SOMObject,somFree)
((SOMObject*)obj);
}
}
KeyObject& operator=(KeyObject& fromObj)
{
this->somDefaultAssign(0,(SOMObject*)((void*)&fromObj));
return *this;
}
KeyObject()
{
if (*(void**)this !=
((somParentMtabStructPtr)
(KeyObjectCClassData.parentMtab))->mtab)
return;
((SOMObject*)((void*)this))->somDefaultInit(0);
}
KeyObject(KeyObject* fromObj)
{
if (*(void**)this !=
((somParentMtabStructPtr)
(KeyObjectCClassData.parentMtab))->mtab)
return;
((SOMObject*)((void*)this))->somDefaultCopyInit(0,((SOMObject*)((void*)fromObj)));
}
#ifdef __IBMCPP__
#pragma info(nocnv,nopar)
#endif
KeyObject(const KeyObject* fromObj)
{
if (*(void**)this !=
((somParentMtabStructPtr)
(KeyObjectCClassData.parentMtab))->mtab)
return;
((SOMObject*)((void*)this))->somDefaultConstCopyInit(0,((SOMObject*)((void*)fromObj)));
}
#ifdef __IBMCPP__
#pragma info(restore)
#endif
/*
* Reintroduce inherited methods
*/
/* method: somfTCollectibleLongInit */
somf_TCollectibleLong* somfTCollectibleLongInit(Environment *ev,
long v)
{
/*
* Initializes the new set.
*/
return SOM_ResolveD(this,KeyObject,somf_TCollectibleLong,somfTCollectibleLongInit)
(this, ev,v);
}
/* method: somfGetValue */
long somfGetValue(Environment *ev)
{
/*
* Determine the value of the long.
*/
return SOM_ResolveD(this,KeyObject,somf_TCollectibleLong,somfGetValue)
(this, ev);
}
/* method: somfSetValue */
void somfSetValue(Environment *ev,
long v)
{
/*
* Set the value of the long in the TCollectibleLong
*/
SOM_ResolveD(this,KeyObject,somf_TCollectibleLong,somfSetValue)
(this, ev,v);
}
/* method: somInit */
void somInit()
{
SOM_ResolveD(this,KeyObject,SOMObject,somInit)
(this);
}
/* method: somfIsEqual */
boolean somfIsEqual(Environment *ev,
somf_MCollectible* obj)
{
return SOM_ResolveD(this,KeyObject,somf_MCollectible,somfIsEqual)
(this, ev,obj);
}
/* method: somfHash */
long somfHash(Environment *ev)
{
return SOM_ResolveD(this,KeyObject,somf_MCollectible,somfHash)
(this, ev);
}
/* method: somfClone */
somf_MCollectible* somfClone(Environment *ev)
{
/*
* somfClone provides a general function for creating a new instance of this.
*/
return SOM_ResolveD(this,KeyObject,somf_MCollectible,somfClone)
(this, ev);
}
/* method: somfClonePointer */
somf_MCollectible* somfClonePointer(Environment *ev,
somf_MCollectible* clonee)
{
/*
* somfClonePointer returns a pointer to a Clone
*/
return SOM_ResolveD(this,KeyObject,somf_MCollectible,somfClonePointer)
(this, ev,clonee);
}
/* method: somfIsSame */
boolean somfIsSame(Environment *ev,
somf_MCollectible* obj)
{
/*
* The default function for somfIsSame is a pointer comparison
*/
return SOM_ResolveD(this,KeyObject,somf_MCollectible,somfIsSame)
(this, ev,obj);
}
/* method: somfIsNotEqual */
boolean somfIsNotEqual(Environment *ev,
somf_MCollectible* obj)
{
/*
* somfIsNotEqual returns TRUE if obj is NOT isomorphic to this. It uses
* somfIsEqual, so overriding somfIsEqual will handle the logic of somfIsNotEqual too.
*/
return SOM_ResolveD(this,KeyObject,somf_MCollectible,somfIsNotEqual)
(this, ev,obj);
}
/* initializer method: somDefaultInit */
void somDefaultInit(som3InitCtrl* ctrl)
{
/*
* A default initializer for a SOM object. Passing a null ctrl
* indicates to the receiver that its class is the class of the
* object being initialized, whereby the initializer will determine
* an appropriate control structure.
*/
SOM_ResolveD(this,KeyObject,SOMObject,somDefaultInit)
(this,ctrl);
}
/* method: somDestruct */
void somDestruct(octet doFree,
som3DestructCtrl* ctrl)
{
/*
* The default destructor for a SOM object. A nonzero <doFree>
* indicates that the object storage should be freed by the
* object's class (via somDeallocate) after uninitialization.
* As with somDefaultInit, a null ctrl can be passed.
*/
SOM_ResolveD(this,KeyObject,SOMObject,somDestruct)
(this,doFree,ctrl);
}
/* initializer method: somDefaultCopyInit */
void somDefaultCopyInit(som3InitCtrl* ctrl,
SOMObject* fromObj)
{
/*
* A default copy constructor. Use this to make copies of objects for
* calling methods with "by-value" argument semantics.
*/
SOM_ResolveD(this,KeyObject,SOMObject,somDefaultCopyInit)
(this,ctrl,fromObj);
}
/* method: somDefaultAssign */
KeyObject* somDefaultAssign(som3AssignCtrl* ctrl,
SOMObject* fromObj)
{
/*
* A default assignment operator. Use this to "assign" the state of one
* object to another.
*/
return SOM_ResolveD(this,KeyObject,SOMObject,somDefaultAssign)
(this,ctrl,fromObj);
}
/* initializer method: somDefaultConstCopyInit */
void somDefaultConstCopyInit(som3InitCtrl* ctrl,
SOMObject* fromObj)
{
/*
* A default copy constructor that uses a const fromObj.
*/
SOM_ResolveD(this,KeyObject,SOMObject,somDefaultConstCopyInit)
(this,ctrl,fromObj);
}
/* initializer method: somDefaultVCopyInit */
void somDefaultVCopyInit(som3InitCtrl* ctrl,
SOMObject* fromObj)
{
/*
* A default copy constructor that uses a volatile fromObj.
*/
SOM_ResolveD(this,KeyObject,SOMObject,somDefaultVCopyInit)
(this,ctrl,fromObj);
}
/* initializer method: somDefaultConstVCopyInit */
void somDefaultConstVCopyInit(som3InitCtrl* ctrl,
SOMObject* fromObj)
{
/*
* A default copy constructor that uses a const volatile fromObj.
*/
SOM_ResolveD(this,KeyObject,SOMObject,somDefaultConstVCopyInit)
(this,ctrl,fromObj);
}
/* method: somDefaultConstAssign */
KeyObject* somDefaultConstAssign(som3AssignCtrl* ctrl,
SOMObject* fromObj)
{
/*
* A default assignment operator that uses a const fromObj.
*/
return SOM_ResolveD(this,KeyObject,SOMObject,somDefaultConstAssign)
(this,ctrl,fromObj);
}
/* method: somDefaultVAssign */
KeyObject* somDefaultVAssign(som3AssignCtrl* ctrl,
SOMObject* fromObj)
{
/*
* A default assignment operator that uses a volatile fromObj.
*/
return SOM_ResolveD(this,KeyObject,SOMObject,somDefaultVAssign)
(this,ctrl,fromObj);
}
/* method: somDefaultConstVAssign */
KeyObject* somDefaultConstVAssign(som3AssignCtrl* ctrl,
SOMObject* fromObj)
{
/*
* A default assignment operator that uses a const volatile fromObj.
*/
return SOM_ResolveD(this,KeyObject,SOMObject,somDefaultConstVAssign)
(this,ctrl,fromObj);
}
/* method: somFree */
void somFree()
{
/*
* Use as directed by framework implementations.
*/
SOM_ResolveD(this,KeyObject,SOMObject,somFree)
(this);
}
/* method: somUninit */
void somUninit()
{
/*
* Obsolete but still supported. Override somDestruct instead of somUninit.
*/
SOM_ResolveD(this,KeyObject,SOMObject,somUninit)
(this);
}
/* method: somGetClass */
SOMClass* somGetClass()
{
/*
* Return the receiver's class.
*/
return SOM_ResolveD(this,KeyObject,SOMObject,somGetClass)
(this);
}
/* method: somGetClassName */
string somGetClassName()
{
/*
* Return the name of the receiver's class.
*/
return SOM_ResolveD(this,KeyObject,SOMObject,somGetClassName)
(this);
}
/* method: somGetSize */
long somGetSize()
{
/*
* Return the size of the receiver.
*/
return SOM_ResolveD(this,KeyObject,SOMObject,somGetSize)
(this);
}
/* method: somIsA */
boolean somIsA(SOMClass* aClassObj)
{
/*
* Returns 1 (true) if the receiver responds to methods
* introduced by <aClassObj>, and 0 (false) otherwise.
*/
return SOM_ResolveD(this,KeyObject,SOMObject,somIsA)
(this,aClassObj);
}
/* method: somIsInstanceOf */
boolean somIsInstanceOf(SOMClass* aClassObj)
{
/*
* Returns 1 (true) if the receiver is an instance of
* <aClassObj> and 0 (false) otherwise.
*/
return SOM_ResolveD(this,KeyObject,SOMObject,somIsInstanceOf)
(this,aClassObj);
}
/* method: somRespondsTo */
boolean somRespondsTo(somId mId)
{
/*
* Returns 1 (true) if the indicated method can be invoked
* on the receiver and 0 (false) otherwise.
*/
return SOM_ResolveD(this,KeyObject,SOMObject,somRespondsTo)
(this,mId);
}
/* va_list method: somDispatch */
/*
* This method provides a generic, class-specific dispatch mechanism.
* It accepts as input <retValue> a pointer to the memory area to be
* loaded with the result of dispatching the method indicated by
* <methodId> using the arguments in <ap>. <ap> contains the object
* on which the method is to be invoked as the first argument.
*/
/* the va_list invocation form */
boolean KeyObject_somDispatch(somToken* retValue,
somId methodId,
va_list ap)
{return SOM_ResolveD(this,KeyObject,SOMObject,somDispatch)
(this,retValue,methodId,ap);
}
/* the varargs invocation form */
boolean somDispatch(somToken* retValue,
somId methodId,
...)
{
/*
* This method provides a generic, class-specific dispatch mechanism.
* It accepts as input <retValue> a pointer to the memory area to be
* loaded with the result of dispatching the method indicated by
* <methodId> using the arguments in <ap>. <ap> contains the object
* on which the method is to be invoked as the first argument.
*/
va_list ap;
va_start(ap, methodId);
boolean __somResult =
SOM_ResolveD(this,KeyObject,SOMObject,somDispatch)
(this,retValue,methodId,ap);
va_end(ap);
return __somResult;
}
/* va_list method: somClassDispatch */
/*
* Like somDispatch, but method resolution for static methods is done
* according to the clsObj instance method table.
*/
/* the va_list invocation form */
boolean KeyObject_somClassDispatch(SOMClass* clsObj,
somToken* retValue,
somId methodId,
va_list ap)
{return SOM_ResolveD(this,KeyObject,SOMObject,somClassDispatch)
(this,clsObj,retValue,methodId,ap);
}
/* the varargs invocation form */
boolean somClassDispatch(SOMClass* clsObj,
somToken* retValue,
somId methodId,
...)
{
/*
* Like somDispatch, but method resolution for static methods is done
* according to the clsObj instance method table.
*/
va_list ap;
va_start(ap, methodId);
boolean __somResult =
SOM_ResolveD(this,KeyObject,SOMObject,somClassDispatch)
(this,clsObj,retValue,methodId,ap);
va_end(ap);
return __somResult;
}
/* method: somCastObj */
boolean somCastObj(SOMClass* cls)
{
/*
* cast the receiving object to cls (which must be an ancestor of the
* objects true class. Returns true on success.
*/
return SOM_ResolveD(this,KeyObject,SOMObject,somCastObj)
(this,cls);
}
/* method: somResetObj */
boolean somResetObj()
{
/*
* reset an object to its true class. Returns true always.
*/
return SOM_ResolveD(this,KeyObject,SOMObject,somResetObj)
(this);
}
/* va_list method: somDispatchV */
/*
* Obsolete. Use somDispatch instead.
*/
/* the va_list invocation form */
void KeyObject_somDispatchV(somId methodId,
somId descriptor,
va_list ap)
{ SOM_ResolveD(this,KeyObject,SOMObject,somDispatchV)
(this,methodId,descriptor,ap);
}
/* the varargs invocation form */
void somDispatchV(somId methodId,
somId descriptor,
...)
{
/*
* Obsolete. Use somDispatch instead.
*/
va_list ap;
va_start(ap, descriptor);
SOM_ResolveD(this,KeyObject,SOMObject,somDispatchV)
(this,methodId,descriptor,ap);
va_end(ap);
}
/* va_list method: somDispatchL */
/*
* Obsolete. Use somDispatch instead.
*/
/* the va_list invocation form */
long KeyObject_somDispatchL(somId methodId,
somId descriptor,
va_list ap)
{return SOM_ResolveD(this,KeyObject,SOMObject,somDispatchL)
(this,methodId,descriptor,ap);
}
/* the varargs invocation form */
long somDispatchL(somId methodId,
somId descriptor,
...)
{
/*
* Obsolete. Use somDispatch instead.
*/
va_list ap;
va_start(ap, descriptor);
long __somResult =
SOM_ResolveD(this,KeyObject,SOMObject,somDispatchL)
(this,methodId,descriptor,ap);
va_end(ap);
return __somResult;
}
/* va_list method: somDispatchA */
/*
* Obsolete. Use somDispatch instead.
*/
/* the va_list invocation form */
void* KeyObject_somDispatchA(somId methodId,
somId descriptor,
va_list ap)
{return SOM_ResolveD(this,KeyObject,SOMObject,somDispatchA)
(this,methodId,descriptor,ap);
}
/* the varargs invocation form */
void* somDispatchA(somId methodId,
somId descriptor,
...)
{
/*
* Obsolete. Use somDispatch instead.
*/
va_list ap;
va_start(ap, descriptor);
void* __somResult =
SOM_ResolveD(this,KeyObject,SOMObject,somDispatchA)
(this,methodId,descriptor,ap);
va_end(ap);
return __somResult;
}
/* va_list method: somDispatchD */
/*
* Obsolete. Use somDispatch instead.
*/
/* the va_list invocation form */
double KeyObject_somDispatchD(somId methodId,
somId descriptor,
va_list ap)
{return SOM_ResolveD(this,KeyObject,SOMObject,somDispatchD)
(this,methodId,descriptor,ap);
}
/* the varargs invocation form */
double somDispatchD(somId methodId,
somId descriptor,
...)
{
/*
* Obsolete. Use somDispatch instead.
*/
va_list ap;
va_start(ap, descriptor);
double __somResult =
SOM_ResolveD(this,KeyObject,SOMObject,somDispatchD)
(this,methodId,descriptor,ap);
va_end(ap);
return __somResult;
}
/* method: somPrintSelf */
SOMObject* somPrintSelf()
{
/*
* Uses <SOMOutCharRoutine> to write a brief string with identifying
* information about this object. The default implementation just gives
* the object's class name and its address in memory.
* <self> is returned.
*/
return SOM_ResolveD(this,KeyObject,SOMObject,somPrintSelf)
(this);
}
/* method: somDumpSelf */
void somDumpSelf(long level)
{
/*
* Uses <SOMOutCharRoutine> to write a detailed description of this object
* and its current state.
*
* <level> indicates the nesting level for describing compound objects
* it must be greater than or equal to zero. All lines in the
* description will be preceeded by <2*level> spaces.
*
* This routine only actually writes the data that concerns the object
* as a whole, such as class, and uses <somDumpSelfInt> to describe
* the object's current state. This approach allows readable
* descriptions of compound objects to be constructed.
*
* Generally it is not necessary to override this method, if it is
* overriden it generally must be completely replaced.
*/
SOM_ResolveD(this,KeyObject,SOMObject,somDumpSelf)
(this,level);
}
/* method: somDumpSelfInt */
void somDumpSelfInt(long level)
{
/*
* Uses <SOMOutCharRoutine> to write in the current state of this object.
* Generally this method will need to be overridden. When overriding
* it, begin by calling the parent class form of this method and then
* write in a description of your class's instance data. This will
* result in a description of all the object's instance data going
* from its root ancestor class to its specific class.
*/
SOM_ResolveD(this,KeyObject,SOMObject,somDumpSelfInt)
(this,level);
}
}; /* KeyObject */
#endif /* SOM_KeyObject_xh */
#ifndef SOM_ProductObject_xh
#define SOM_ProductObject_xh
class ProductObject;
#define ProductObject_MajorVersion 2
#define ProductObject_MinorVersion 1
/* C++ SOM defs */
#include <somcls.xh>
#include <somcm.xh>
/* C++ parent defs */
#ifndef SOM_somf_MCollectible_xh
#include <mcollect.xh>
#endif
#ifndef ProductObject_API
#define ProductObject_API
/*
* -- The Class API
*/
/*
* Start of bindings for IDL types
*/
/*
* End of bindings for IDL types.
*/
/* A procedure to create the ProductObject Class */
SOMEXTERN SOMClass * SOMLINK ProductObjectNewClass(
integer4 majorVersion,
integer4 minorVersion);
/* The API to the ProductObject class object, and the methods it introduces. */
SOMEXTERN struct ProductObjectClassDataStructure {
SOMClass *classObject;
somMToken _get_productName;
somMToken _set_productName;
} SOMDLINK ProductObjectClassData;
#define _ProductObject ProductObjectClassData.classObject
/* The API to parentMtabs for ProductObject, and the instance data it introduces. */
SOMEXTERN struct ProductObjectCClassDataStructure {
somMethodTabs parentMtab;
somDToken instanceDataToken;
} SOMDLINK ProductObjectCClassData;
/*
* -- Typedefs for ProductObject Method Procedures
*/
SOMEXTERN {
typedef string SOMLINK somTP_ProductObject__get_productName(ProductObject *somSelf, Environment *ev);
typedef somTP_ProductObject__get_productName *somTD_ProductObject__get_productName;
typedef void SOMLINK somTP_ProductObject__set_productName(ProductObject *somSelf, Environment *ev,
string productName);
typedef somTP_ProductObject__set_productName *somTD_ProductObject__set_productName;
/*
* -- Typedefs for Reintroduced Wrapper Methods
*/
typedef somf_MCollectible* SOMLINK somTP_ProductObject_somfClone(ProductObject *somSelf, Environment *ev);
typedef somTP_ProductObject_somfClone *somTD_ProductObject_somfClone;
typedef somf_MCollectible* SOMLINK somTP_ProductObject_somfClonePointer(ProductObject *somSelf, Environment *ev,
somf_MCollectible* clonee);
typedef somTP_ProductObject_somfClonePointer *somTD_ProductObject_somfClonePointer;
typedef long SOMLINK somTP_ProductObject_somfHash(ProductObject *somSelf, Environment *ev);
typedef somTP_ProductObject_somfHash *somTD_ProductObject_somfHash;
typedef boolean SOMLINK somTP_ProductObject_somfIsEqual(ProductObject *somSelf, Environment *ev,
somf_MCollectible* obj);
typedef somTP_ProductObject_somfIsEqual *somTD_ProductObject_somfIsEqual;
typedef boolean SOMLINK somTP_ProductObject_somfIsSame(ProductObject *somSelf, Environment *ev,
somf_MCollectible* obj);
typedef somTP_ProductObject_somfIsSame *somTD_ProductObject_somfIsSame;
typedef boolean SOMLINK somTP_ProductObject_somfIsNotEqual(ProductObject *somSelf, Environment *ev,
somf_MCollectible* obj);
typedef somTP_ProductObject_somfIsNotEqual *somTD_ProductObject_somfIsNotEqual;
typedef void SOMLINK somTP_ProductObject_somDefaultInit(ProductObject *somSelf,
som3InitCtrl* ctrl);
typedef somTP_ProductObject_somDefaultInit *somTD_ProductObject_somDefaultInit;
typedef void SOMLINK somTP_ProductObject_somDestruct(ProductObject *somSelf,
octet doFree,
som3DestructCtrl* ctrl);
typedef somTP_ProductObject_somDestruct *somTD_ProductObject_somDestruct;
typedef void SOMLINK somTP_ProductObject_somDefaultCopyInit(ProductObject *somSelf,
som3InitCtrl* ctrl,
SOMObject* fromObj);
typedef somTP_ProductObject_somDefaultCopyInit *somTD_ProductObject_somDefaultCopyInit;
typedef ProductObject* SOMLINK somTP_ProductObject_somDefaultAssign(ProductObject *somSelf,
som3AssignCtrl* ctrl,
SOMObject* fromObj);
typedef somTP_ProductObject_somDefaultAssign *somTD_ProductObject_somDefaultAssign;
typedef void SOMLINK somTP_ProductObject_somDefaultConstCopyInit(ProductObject *somSelf,
som3InitCtrl* ctrl,
SOMObject* fromObj);
typedef somTP_ProductObject_somDefaultConstCopyInit *somTD_ProductObject_somDefaultConstCopyInit;
typedef void SOMLINK somTP_ProductObject_somDefaultVCopyInit(ProductObject *somSelf,