source: branches/mediafolder/prog_tutorial/old/sommethods.inc

Last change on this file was 2, checked in by stevenhl, 8 years ago

Import sources from cwmm-full.zip dated 2005-03-21

File size: 4.4 KB
Line 
1:h2 res=410
2width=30%
3.somGetClass
4:link reftype=hd res=411
5auto dependent group=2.
6:p.
7:link reftype=hd res=411.Syntax:elink.
8.br
9:link reftype=hd res=413 dependent.Returns:elink.
10.*.br
11.*:link reftype=hd res=314 dependent.Remarks:elink.
12.*.br
13.*:link reftype=hd res=315.Usage:elink.
14.*.br
15.*:link reftype=hd res=416 dependent.Example:elink.
16
17:h2 res=411
18x=30%
19width=70%
20hide
21group=2
22.somGetClass - Syntax
23:xmp.
24/* Get the class object from an object */
25
26theObject /* Object for which the class is requested */
27:p.
28classObject=MFldrCallWPSFunc("somGetClass", theObject);
29:exmp.
30
31
32:h2 res=413
33x=30%
34width=70% height=35%
35group=3
36hide
37.somGetClass - Return value
38:p.
39:hp2.classObject:ehp2. numeric
40:p.
41The return value is numeric. It's a pointer to the class object for the object
42:hp2.theObject:ehp2.
43
44.******************************************************
45
46:h2 res=420
47width=30%
48.somGetClassName
49:link reftype=hd res=421
50auto dependent group=2.
51:p.
52:link reftype=hd res=421.Syntax:elink.
53.br
54:link reftype=hd res=423 dependent.Returns:elink.
55.*.br
56.*:link reftype=hd res=314 dependent.Remarks:elink.
57.*.br
58.*:link reftype=hd res=315.Usage:elink.
59.*.br
60.*:link reftype=hd res=416 dependent.Example:elink.
61
62:h2 res=421
63x=30%
64width=70%
65hide
66group=2
67.somGetClassName - Syntax
68:xmp.
69/* Get the class name an object is an
70 instance of. */
71
72theObject /* Object for which the class name is requested */
73:p.
74className=MFldrCallWPSFunc("somGetClassName", theObject);
75:exmp.
76
77
78:h2 res=423
79x=30%
80width=70% height=35%
81group=3
82hide
83.somGetClassName - Return value
84:p.
85:hp2.className:ehp2. string
86:p.
87The return value is the name of the class the object
88:hp2.theObject:ehp2. is an instance of.
89
90
91.******************************************************
92
93:h2 res=430
94width=30%
95.somGetname
96:link reftype=hd res=431
97auto dependent group=2.
98:p.
99:link reftype=hd res=431.Syntax:elink.
100.br
101:link reftype=hd res=433 dependent.Returns:elink.
102.*.br
103.*:link reftype=hd res=314 dependent.Remarks:elink.
104.*.br
105.*:link reftype=hd res=315.Usage:elink.
106.*.br
107.*:link reftype=hd res=416 dependent.Example:elink.
108
109:h2 res=431
110x=30%
111width=70%
112hide
113group=2
114.somGetname - Syntax
115:xmp.
116/* Get the class name from an class pointer */
117
118theClass /* Class object for which the name is requested */
119:p.
120className=MFldrCallWPSFunc("somGetname", theClass);
121:exmp.
122
123
124:h2 res=433
125x=30%
126width=70% height=35%
127group=3
128hide
129.somGetname - Return value
130:p.
131:hp2.className:ehp2. string
132:p.
133The return value is the name of the class
134:hp2.theClass:ehp2..
135
136
137.******************************************************
138
139:h2 res=440
140width=30%
141.somGetVersionNumbers
142:link reftype=hd res=441
143auto dependent group=2.
144:p.
145:link reftype=hd res=441.Syntax:elink.
146.br
147:link reftype=hd res=443 dependent.Returns:elink.
148.*.br
149.*:link reftype=hd res=314 dependent.Remarks:elink.
150.*.br
151.*:link reftype=hd res=315.Usage:elink.
152.*.br
153.*:link reftype=hd res=416 dependent.Example:elink.
154
155:h2 res=441
156x=30%
157width=70%
158hide
159group=2
160.somGetVersionNumbers - Syntax
161:xmp.
162/* Get the class version from an class pointer */
163
164theClass /* Class object for which version is requested */
165:p.
166classVersion=MFldrCallWPSFunc("somGetVersionNumbers", theClass);
167:exmp.
168
169
170:h2 res=443
171x=30%
172width=70% height=35%
173group=3
174hide
175.somGetVersionNumbers - Return value
176:p.
177:hp2.classVersion:ehp2. string
178:p.
179The return value is the major.minor version of the class for example :hp2.1.3:ehp2..
180
181
182.***************************************************
183:h2 res=710
184width=30%
185.somIsObj
186:link reftype=hd res=711
187auto dependent group=2.
188:p.
189:link reftype=hd res=711.Syntax:elink.
190.br
191:link reftype=hd res=713 dependent.Returns:elink.
192.*.br
193.*:link reftype=hd res=314 dependent.Remarks:elink.
194.*.br
195.*:link reftype=hd res=315.Usage:elink.
196.*.br
197.*:link reftype=hd res=416 dependent.Example:elink.
198
199:h2 res=711
200x=30%
201width=70%
202hide
203group=2
204.somIsObj - Syntax
205:xmp.
206/* Check if an object pointer is valid */
207
208theObject /* Object to be checked */
209:p.
210bValid=MFldrCallWPSFunc("somIsObj", theObject);
211:exmp.
212
213
214:h2 res=713
215x=30%
216width=70% height=35%
217group=3
218hide
219.somIsObj - Return value
220:p.
221:hp2.bValid:ehp2. numeric
222:p.
223The return value is numeric. It's 0 if the parameter isn't an object pointer.
224
225
226
227
228
229
Note: See TracBrowser for help on using the repository browser.