home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / tolkit45.zip / os2tk45 / som / include / fmib.xh < prev    next >
Text File  |  1999-02-22  |  41KB  |  1,255 lines

  1.  
  2. /*
  3.  * This file was generated by the SOM Compiler.
  4.  * FileName: fmib.xh.
  5.  * Generated using:
  6.  *     SOM Precompiler somipc: 2.29.1.17
  7.  *     SOM Emitter emitxh: 2.47
  8.  */
  9.  
  10. /*
  11.  *    COMPONENT_NAME: somp
  12.  * 
  13.  *    ORIGINS: 27
  14.  * 
  15.  * 
  16.  *     25H7912  (C)  COPYRIGHT International Business Machines Corp. 1992,1994,1996
  17.  *    All Rights Reserved
  18.  *    Licensed Materials - Property of IBM
  19.  *    US Government Users Restricted Rights - Use, duplication or
  20.  *    disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
  21.  * 
  22.  */
  23.  
  24.  
  25. #ifndef SOM_SOMPBinaryFileMedia_xh
  26. #define SOM_SOMPBinaryFileMedia_xh
  27.  
  28. class SOMPBinaryFileMedia;
  29.  
  30. /*
  31.  *  The SOMPBinaryFileMedia class provides an interface to the file
  32.  *  system which writes numbers in binary.
  33.  */
  34.  
  35. #define SOMPBinaryFileMedia_MajorVersion 2
  36. #define SOMPBinaryFileMedia_MinorVersion 1
  37.  
  38. /* C++ SOM defs */
  39. #include <somcls.xh>
  40. #include <somcm.xh>
  41.  
  42. /* C++ parent defs */
  43. #ifndef SOM_SOMPAsciiMediaInterface_xh
  44. #include <fmi.xh>
  45. #endif
  46.  
  47. #ifndef SOMPBinaryFileMedia_API
  48. #define SOMPBinaryFileMedia_API
  49. /*
  50.  * -- The Class API
  51.  */
  52.  
  53. /*
  54.  * Start of bindings for IDL types
  55.  */
  56.  
  57. class SOMClass;
  58. class SOMObject;
  59.  
  60. /*
  61.  * End of bindings for IDL types.
  62.  */
  63.  
  64. /* A procedure to create the SOMPBinaryFileMedia Class */
  65. SOMEXTERN SOMClass * SOMLINK SOMPBinaryFileMediaNewClass(
  66.         integer4 majorVersion,
  67.         integer4 minorVersion);
  68.  
  69. /* The API to the SOMPBinaryFileMedia class object, and the methods it introduces. */
  70. SOMEXTERN struct SOMPBinaryFileMediaClassDataStructure {
  71.     SOMClass *classObject;
  72. } SOMDLINK SOMPBinaryFileMediaClassData;
  73. #define _SOMPBinaryFileMedia SOMPBinaryFileMediaClassData.classObject
  74.  
  75. /* The API to parentMtabs for SOMPBinaryFileMedia, and the instance data it introduces. */
  76. SOMEXTERN struct SOMPBinaryFileMediaCClassDataStructure {
  77.     somMethodTabs parentMtab;
  78.     somDToken              instanceDataToken;
  79. } SOMDLINK SOMPBinaryFileMediaCClassData;
  80.  
  81. /*
  82.  * -- Typedefs for SOMPBinaryFileMedia Method Procedures
  83.  */
  84. SOMEXTERN {
  85.  
  86. /*
  87.  * -- Typedefs for Reintroduced Wrapper Methods
  88.  */
  89. typedef void   SOMLINK somTP_SOMPBinaryFileMedia_sompInitSpecific(SOMPBinaryFileMedia *somSelf, Environment *ev, 
  90.         SOMPAsciiMediaInterface_mediaInfoType* mediaInfo);
  91. typedef somTP_SOMPBinaryFileMedia_sompInitSpecific *somTD_SOMPBinaryFileMedia_sompInitSpecific;
  92. typedef void   SOMLINK somTP_SOMPBinaryFileMedia_sompStat(SOMPBinaryFileMedia *somSelf, Environment *ev, 
  93.         SOMPStatDef_sompstat* fileStats);
  94. typedef somTP_SOMPBinaryFileMedia_sompStat *somTD_SOMPBinaryFileMedia_sompStat;
  95. typedef unsigned long   SOMLINK somTP_SOMPBinaryFileMedia_sompQueryBlockSize(SOMPBinaryFileMedia *somSelf, Environment *ev);
  96. typedef somTP_SOMPBinaryFileMedia_sompQueryBlockSize *somTD_SOMPBinaryFileMedia_sompQueryBlockSize;
  97. typedef string   SOMLINK somTP_SOMPBinaryFileMedia_sompGetMediaName(SOMPBinaryFileMedia *somSelf, Environment *ev, 
  98.         string toBuffer);
  99. typedef somTP_SOMPBinaryFileMedia_sompGetMediaName *somTD_SOMPBinaryFileMedia_sompGetMediaName;
  100. typedef void   SOMLINK somTP_SOMPBinaryFileMedia_sompInitReadWrite(SOMPBinaryFileMedia *somSelf, Environment *ev, 
  101.         string mediaInfo);
  102. typedef somTP_SOMPBinaryFileMedia_sompInitReadWrite *somTD_SOMPBinaryFileMedia_sompInitReadWrite;
  103. typedef void   SOMLINK somTP_SOMPBinaryFileMedia_sompInitReadOnly(SOMPBinaryFileMedia *somSelf, Environment *ev, 
  104.         string mediaInfo);
  105. typedef somTP_SOMPBinaryFileMedia_sompInitReadOnly *somTD_SOMPBinaryFileMedia_sompInitReadOnly;
  106. typedef void   SOMLINK somTP_SOMPBinaryFileMedia_sompOpen(SOMPBinaryFileMedia *somSelf, Environment *ev);
  107. typedef somTP_SOMPBinaryFileMedia_sompOpen *somTD_SOMPBinaryFileMedia_sompOpen;
  108. typedef void   SOMLINK somTP_SOMPBinaryFileMedia_sompClose(SOMPBinaryFileMedia *somSelf, Environment *ev);
  109. typedef somTP_SOMPBinaryFileMedia_sompClose *somTD_SOMPBinaryFileMedia_sompClose;
  110. typedef void   SOMLINK somTP_SOMPBinaryFileMedia_sompSeekPosition(SOMPBinaryFileMedia *somSelf, Environment *ev, 
  111.         long offset);
  112. typedef somTP_SOMPBinaryFileMedia_sompSeekPosition *somTD_SOMPBinaryFileMedia_sompSeekPosition;
  113. typedef void   SOMLINK somTP_SOMPBinaryFileMedia_sompSeekPositionRel(SOMPBinaryFileMedia *somSelf, Environment *ev, 
  114.         long offset);
  115. typedef somTP_SOMPBinaryFileMedia_sompSeekPositionRel *somTD_SOMPBinaryFileMedia_sompSeekPositionRel;
  116. typedef long   SOMLINK somTP_SOMPBinaryFileMedia_sompGetOffset(SOMPBinaryFileMedia *somSelf, Environment *ev);
  117. typedef somTP_SOMPBinaryFileMedia_sompGetOffset *somTD_SOMPBinaryFileMedia_sompGetOffset;
  118. typedef void   SOMLINK somTP_SOMPBinaryFileMedia_sompReadBytes(SOMPBinaryFileMedia *somSelf, Environment *ev, 
  119.         string byteStream, 
  120.         long length);
  121. typedef somTP_SOMPBinaryFileMedia_sompReadBytes *somTD_SOMPBinaryFileMedia_sompReadBytes;
  122. typedef void   SOMLINK somTP_SOMPBinaryFileMedia_sompWriteBytes(SOMPBinaryFileMedia *somSelf, Environment *ev, 
  123.         string byteStream, 
  124.         long length);
  125. typedef somTP_SOMPBinaryFileMedia_sompWriteBytes *somTD_SOMPBinaryFileMedia_sompWriteBytes;
  126. typedef void   SOMLINK somTP_SOMPBinaryFileMedia_somInit(SOMPBinaryFileMedia *somSelf);
  127. typedef somTP_SOMPBinaryFileMedia_somInit *somTD_SOMPBinaryFileMedia_somInit;
  128. typedef void   SOMLINK somTP_SOMPBinaryFileMedia_somUninit(SOMPBinaryFileMedia *somSelf);
  129. typedef somTP_SOMPBinaryFileMedia_somUninit *somTD_SOMPBinaryFileMedia_somUninit;
  130. typedef void   SOMLINK somTP_SOMPBinaryFileMedia_sompWriteOctet(SOMPBinaryFileMedia *somSelf, Environment *ev, 
  131.         octet i1);
  132. typedef somTP_SOMPBinaryFileMedia_sompWriteOctet *somTD_SOMPBinaryFileMedia_sompWriteOctet;
  133. typedef void   SOMLINK somTP_SOMPBinaryFileMedia_sompWriteShort(SOMPBinaryFileMedia *somSelf, Environment *ev, 
  134.         short i2);
  135. typedef somTP_SOMPBinaryFileMedia_sompWriteShort *somTD_SOMPBinaryFileMedia_sompWriteShort;
  136. typedef void   SOMLINK somTP_SOMPBinaryFileMedia_sompWriteUnsignedShort(SOMPBinaryFileMedia *somSelf, Environment *ev, 
  137.         unsigned short u2);
  138. typedef somTP_SOMPBinaryFileMedia_sompWriteUnsignedShort *somTD_SOMPBinaryFileMedia_sompWriteUnsignedShort;
  139. typedef void   SOMLINK somTP_SOMPBinaryFileMedia_sompWriteLong(SOMPBinaryFileMedia *somSelf, Environment *ev, 
  140.         long i4);
  141. typedef somTP_SOMPBinaryFileMedia_sompWriteLong *somTD_SOMPBinaryFileMedia_sompWriteLong;
  142. typedef void   SOMLINK somTP_SOMPBinaryFileMedia_sompWriteUnsignedLong(SOMPBinaryFileMedia *somSelf, Environment *ev, 
  143.         unsigned long u4);
  144. typedef somTP_SOMPBinaryFileMedia_sompWriteUnsignedLong *somTD_SOMPBinaryFileMedia_sompWriteUnsignedLong;
  145. typedef void   SOMLINK somTP_SOMPBinaryFileMedia_sompWriteDouble(SOMPBinaryFileMedia *somSelf, Environment *ev, 
  146.         double f8);
  147. typedef somTP_SOMPBinaryFileMedia_sompWriteDouble *somTD_SOMPBinaryFileMedia_sompWriteDouble;
  148. typedef void   SOMLINK somTP_SOMPBinaryFileMedia_sompWriteFloat(SOMPBinaryFileMedia *somSelf, Environment *ev, 
  149.         float f4);
  150. typedef somTP_SOMPBinaryFileMedia_sompWriteFloat *somTD_SOMPBinaryFileMedia_sompWriteFloat;
  151. typedef void   SOMLINK somTP_SOMPBinaryFileMedia_sompWriteCharacter(SOMPBinaryFileMedia *somSelf, Environment *ev, 
  152.         char c);
  153. typedef somTP_SOMPBinaryFileMedia_sompWriteCharacter *somTD_SOMPBinaryFileMedia_sompWriteCharacter;
  154. typedef void   SOMLINK somTP_SOMPBinaryFileMedia_sompWriteSomobject(SOMPBinaryFileMedia *somSelf, Environment *ev, 
  155.         SOMObject* so, 
  156.         SOMObject* parentObject);
  157. typedef somTP_SOMPBinaryFileMedia_sompWriteSomobject *somTD_SOMPBinaryFileMedia_sompWriteSomobject;
  158. typedef void   SOMLINK somTP_SOMPBinaryFileMedia_sompWriteString(SOMPBinaryFileMedia *somSelf, Environment *ev, 
  159.         string wstring);
  160. typedef somTP_SOMPBinaryFileMedia_sompWriteString *somTD_SOMPBinaryFileMedia_sompWriteString;
  161. typedef void   SOMLINK somTP_SOMPBinaryFileMedia_sompReadOctet(SOMPBinaryFileMedia *somSelf, Environment *ev, 
  162.         octet* i1);
  163. typedef somTP_SOMPBinaryFileMedia_sompReadOctet *somTD_SOMPBinaryFileMedia_sompReadOctet;
  164. typedef void   SOMLINK somTP_SOMPBinaryFileMedia_sompReadShort(SOMPBinaryFileMedia *somSelf, Environment *ev, 
  165.         short* i2);
  166. typedef somTP_SOMPBinaryFileMedia_sompReadShort *somTD_SOMPBinaryFileMedia_sompReadShort;
  167. typedef void   SOMLINK somTP_SOMPBinaryFileMedia_sompReadUnsignedShort(SOMPBinaryFileMedia *somSelf, Environment *ev, 
  168.         unsigned short* u2);
  169. typedef somTP_SOMPBinaryFileMedia_sompReadUnsignedShort *somTD_SOMPBinaryFileMedia_sompReadUnsignedShort;
  170. typedef void   SOMLINK somTP_SOMPBinaryFileMedia_sompReadLong(SOMPBinaryFileMedia *somSelf, Environment *ev, 
  171.         long* i4);
  172. typedef somTP_SOMPBinaryFileMedia_sompReadLong *somTD_SOMPBinaryFileMedia_sompReadLong;
  173. typedef void   SOMLINK somTP_SOMPBinaryFileMedia_sompReadUnsignedLong(SOMPBinaryFileMedia *somSelf, Environment *ev, 
  174.         unsigned long* i4);
  175. typedef somTP_SOMPBinaryFileMedia_sompReadUnsignedLong *somTD_SOMPBinaryFileMedia_sompReadUnsignedLong;
  176. typedef void   SOMLINK somTP_SOMPBinaryFileMedia_sompReadDouble(SOMPBinaryFileMedia *somSelf, Environment *ev, 
  177.         double* f8);
  178. typedef somTP_SOMPBinaryFileMedia_sompReadDouble *somTD_SOMPBinaryFileMedia_sompReadDouble;
  179. typedef void   SOMLINK somTP_SOMPBinaryFileMedia_sompReadFloat(SOMPBinaryFileMedia *somSelf, Environment *ev, 
  180.         float* f4);
  181. typedef somTP_SOMPBinaryFileMedia_sompReadFloat *somTD_SOMPBinaryFileMedia_sompReadFloat;
  182. typedef void   SOMLINK somTP_SOMPBinaryFileMedia_sompReadCharacter(SOMPBinaryFileMedia *somSelf, Environment *ev, 
  183.         char* c);
  184. typedef somTP_SOMPBinaryFileMedia_sompReadCharacter *somTD_SOMPBinaryFileMedia_sompReadCharacter;
  185. typedef void   SOMLINK somTP_SOMPBinaryFileMedia_sompReadSomobject(SOMPBinaryFileMedia *somSelf, Environment *ev, 
  186.         SOMObject** so);
  187. typedef somTP_SOMPBinaryFileMedia_sompReadSomobject *somTD_SOMPBinaryFileMedia_sompReadSomobject;
  188. typedef void   SOMLINK somTP_SOMPBinaryFileMedia_sompReadString(SOMPBinaryFileMedia *somSelf, Environment *ev, 
  189.         string* rstring);
  190. typedef somTP_SOMPBinaryFileMedia_sompReadString *somTD_SOMPBinaryFileMedia_sompReadString;
  191. typedef void   SOMLINK somTP_SOMPBinaryFileMedia_sompReadStringToBuffer(SOMPBinaryFileMedia *somSelf, Environment *ev, 
  192.         string buffer, 
  193.         long bufsize);
  194. typedef somTP_SOMPBinaryFileMedia_sompReadStringToBuffer *somTD_SOMPBinaryFileMedia_sompReadStringToBuffer;
  195. typedef void   SOMLINK somTP_SOMPBinaryFileMedia_sompWriteLine(SOMPBinaryFileMedia *somSelf, Environment *ev, 
  196.         string buffer);
  197. typedef somTP_SOMPBinaryFileMedia_sompWriteLine *somTD_SOMPBinaryFileMedia_sompWriteLine;
  198. typedef void   SOMLINK somTP_SOMPBinaryFileMedia_sompReadLine(SOMPBinaryFileMedia *somSelf, Environment *ev, 
  199.         string buffer, 
  200.         long bufsize);
  201. typedef somTP_SOMPBinaryFileMedia_sompReadLine *somTD_SOMPBinaryFileMedia_sompReadLine;
  202. typedef void   SOMLINK somTP_SOMPBinaryFileMedia_sompWriteTypeCode(SOMPBinaryFileMedia *somSelf, Environment *ev, 
  203.         TypeCode tc);
  204. typedef somTP_SOMPBinaryFileMedia_sompWriteTypeCode *somTD_SOMPBinaryFileMedia_sompWriteTypeCode;
  205. typedef void   SOMLINK somTP_SOMPBinaryFileMedia_sompReadTypeCode(SOMPBinaryFileMedia *somSelf, Environment *ev, 
  206.         TypeCode* tc);
  207. typedef somTP_SOMPBinaryFileMedia_sompReadTypeCode *somTD_SOMPBinaryFileMedia_sompReadTypeCode;
  208. typedef void   SOMLINK somTP_SOMPBinaryFileMedia_somDefaultInit(SOMPBinaryFileMedia *somSelf, 
  209.         som3InitCtrl* ctrl);
  210. typedef somTP_SOMPBinaryFileMedia_somDefaultInit *somTD_SOMPBinaryFileMedia_somDefaultInit;
  211. typedef void   SOMLINK somTP_SOMPBinaryFileMedia_somDestruct(SOMPBinaryFileMedia *somSelf, 
  212.         octet doFree, 
  213.         som3DestructCtrl* ctrl);
  214. typedef somTP_SOMPBinaryFileMedia_somDestruct *somTD_SOMPBinaryFileMedia_somDestruct;
  215. typedef void   SOMLINK somTP_SOMPBinaryFileMedia_somDefaultCopyInit(SOMPBinaryFileMedia *somSelf, 
  216.         som3InitCtrl* ctrl, 
  217.         SOMObject* fromObj);
  218. typedef somTP_SOMPBinaryFileMedia_somDefaultCopyInit *somTD_SOMPBinaryFileMedia_somDefaultCopyInit;
  219. typedef SOMPBinaryFileMedia*   SOMLINK somTP_SOMPBinaryFileMedia_somDefaultAssign(SOMPBinaryFileMedia *somSelf, 
  220.         som3AssignCtrl* ctrl, 
  221.         SOMObject* fromObj);
  222. typedef somTP_SOMPBinaryFileMedia_somDefaultAssign *somTD_SOMPBinaryFileMedia_somDefaultAssign;
  223. typedef void   SOMLINK somTP_SOMPBinaryFileMedia_somDefaultConstCopyInit(SOMPBinaryFileMedia *somSelf, 
  224.         som3InitCtrl* ctrl, 
  225.         SOMObject* fromObj);
  226. typedef somTP_SOMPBinaryFileMedia_somDefaultConstCopyInit *somTD_SOMPBinaryFileMedia_somDefaultConstCopyInit;
  227. typedef void   SOMLINK somTP_SOMPBinaryFileMedia_somDefaultVCopyInit(SOMPBinaryFileMedia *somSelf, 
  228.         som3InitCtrl* ctrl, 
  229.         SOMObject* fromObj);
  230. typedef somTP_SOMPBinaryFileMedia_somDefaultVCopyInit *somTD_SOMPBinaryFileMedia_somDefaultVCopyInit;
  231. typedef void   SOMLINK somTP_SOMPBinaryFileMedia_somDefaultConstVCopyInit(SOMPBinaryFileMedia *somSelf, 
  232.         som3InitCtrl* ctrl, 
  233.         SOMObject* fromObj);
  234. typedef somTP_SOMPBinaryFileMedia_somDefaultConstVCopyInit *somTD_SOMPBinaryFileMedia_somDefaultConstVCopyInit;
  235. typedef SOMPBinaryFileMedia*   SOMLINK somTP_SOMPBinaryFileMedia_somDefaultConstAssign(SOMPBinaryFileMedia *somSelf, 
  236.         som3AssignCtrl* ctrl, 
  237.         SOMObject* fromObj);
  238. typedef somTP_SOMPBinaryFileMedia_somDefaultConstAssign *somTD_SOMPBinaryFileMedia_somDefaultConstAssign;
  239. typedef SOMPBinaryFileMedia*   SOMLINK somTP_SOMPBinaryFileMedia_somDefaultVAssign(SOMPBinaryFileMedia *somSelf, 
  240.         som3AssignCtrl* ctrl, 
  241.         SOMObject* fromObj);
  242. typedef somTP_SOMPBinaryFileMedia_somDefaultVAssign *somTD_SOMPBinaryFileMedia_somDefaultVAssign;
  243. typedef SOMPBinaryFileMedia*   SOMLINK somTP_SOMPBinaryFileMedia_somDefaultConstVAssign(SOMPBinaryFileMedia *somSelf, 
  244.         som3AssignCtrl* ctrl, 
  245.         SOMObject* fromObj);
  246. typedef somTP_SOMPBinaryFileMedia_somDefaultConstVAssign *somTD_SOMPBinaryFileMedia_somDefaultConstVAssign;
  247. typedef void   SOMLINK somTP_SOMPBinaryFileMedia_somFree(SOMPBinaryFileMedia *somSelf);
  248. typedef somTP_SOMPBinaryFileMedia_somFree *somTD_SOMPBinaryFileMedia_somFree;
  249. typedef SOMClass*   SOMLINK somTP_SOMPBinaryFileMedia_somGetClass(SOMPBinaryFileMedia *somSelf);
  250. typedef somTP_SOMPBinaryFileMedia_somGetClass *somTD_SOMPBinaryFileMedia_somGetClass;
  251. typedef string   SOMLINK somTP_SOMPBinaryFileMedia_somGetClassName(SOMPBinaryFileMedia *somSelf);
  252. typedef somTP_SOMPBinaryFileMedia_somGetClassName *somTD_SOMPBinaryFileMedia_somGetClassName;
  253. typedef long   SOMLINK somTP_SOMPBinaryFileMedia_somGetSize(SOMPBinaryFileMedia *somSelf);
  254. typedef somTP_SOMPBinaryFileMedia_somGetSize *somTD_SOMPBinaryFileMedia_somGetSize;
  255. typedef boolean   SOMLINK somTP_SOMPBinaryFileMedia_somIsA(SOMPBinaryFileMedia *somSelf, 
  256.         SOMClass* aClassObj);
  257. typedef somTP_SOMPBinaryFileMedia_somIsA *somTD_SOMPBinaryFileMedia_somIsA;
  258. typedef boolean   SOMLINK somTP_SOMPBinaryFileMedia_somIsInstanceOf(SOMPBinaryFileMedia *somSelf, 
  259.         SOMClass* aClassObj);
  260. typedef somTP_SOMPBinaryFileMedia_somIsInstanceOf *somTD_SOMPBinaryFileMedia_somIsInstanceOf;
  261. typedef boolean   SOMLINK somTP_SOMPBinaryFileMedia_somRespondsTo(SOMPBinaryFileMedia *somSelf, 
  262.         somId mId);
  263. typedef somTP_SOMPBinaryFileMedia_somRespondsTo *somTD_SOMPBinaryFileMedia_somRespondsTo;
  264. typedef boolean   SOMLINK somTP_SOMPBinaryFileMedia_somDispatch(SOMPBinaryFileMedia *somSelf, 
  265.         somToken* retValue, 
  266.         somId methodId, 
  267.         va_list ap);
  268. typedef somTP_SOMPBinaryFileMedia_somDispatch *somTD_SOMPBinaryFileMedia_somDispatch;
  269. typedef boolean   SOMLINK somTP_SOMPBinaryFileMedia_somClassDispatch(SOMPBinaryFileMedia *somSelf, 
  270.         SOMClass* clsObj, 
  271.         somToken* retValue, 
  272.         somId methodId, 
  273.         va_list ap);
  274. typedef somTP_SOMPBinaryFileMedia_somClassDispatch *somTD_SOMPBinaryFileMedia_somClassDispatch;
  275. typedef boolean   SOMLINK somTP_SOMPBinaryFileMedia_somCastObj(SOMPBinaryFileMedia *somSelf, 
  276.         SOMClass* cls);
  277. typedef somTP_SOMPBinaryFileMedia_somCastObj *somTD_SOMPBinaryFileMedia_somCastObj;
  278. typedef boolean   SOMLINK somTP_SOMPBinaryFileMedia_somResetObj(SOMPBinaryFileMedia *somSelf);
  279. typedef somTP_SOMPBinaryFileMedia_somResetObj *somTD_SOMPBinaryFileMedia_somResetObj;
  280. typedef void   SOMLINK somTP_SOMPBinaryFileMedia_somDispatchV(SOMPBinaryFileMedia *somSelf, 
  281.         somId methodId, 
  282.         somId descriptor, 
  283.         va_list ap);
  284. typedef somTP_SOMPBinaryFileMedia_somDispatchV *somTD_SOMPBinaryFileMedia_somDispatchV;
  285. typedef long   SOMLINK somTP_SOMPBinaryFileMedia_somDispatchL(SOMPBinaryFileMedia *somSelf, 
  286.         somId methodId, 
  287.         somId descriptor, 
  288.         va_list ap);
  289. typedef somTP_SOMPBinaryFileMedia_somDispatchL *somTD_SOMPBinaryFileMedia_somDispatchL;
  290. typedef void*   SOMLINK somTP_SOMPBinaryFileMedia_somDispatchA(SOMPBinaryFileMedia *somSelf, 
  291.         somId methodId, 
  292.         somId descriptor, 
  293.         va_list ap);
  294. typedef somTP_SOMPBinaryFileMedia_somDispatchA *somTD_SOMPBinaryFileMedia_somDispatchA;
  295. typedef double   SOMLINK somTP_SOMPBinaryFileMedia_somDispatchD(SOMPBinaryFileMedia *somSelf, 
  296.         somId methodId, 
  297.         somId descriptor, 
  298.         va_list ap);
  299. typedef somTP_SOMPBinaryFileMedia_somDispatchD *somTD_SOMPBinaryFileMedia_somDispatchD;
  300. typedef SOMObject*   SOMLINK somTP_SOMPBinaryFileMedia_somPrintSelf(SOMPBinaryFileMedia *somSelf);
  301. typedef somTP_SOMPBinaryFileMedia_somPrintSelf *somTD_SOMPBinaryFileMedia_somPrintSelf;
  302. typedef void   SOMLINK somTP_SOMPBinaryFileMedia_somDumpSelf(SOMPBinaryFileMedia *somSelf, 
  303.         long level);
  304. typedef somTP_SOMPBinaryFileMedia_somDumpSelf *somTD_SOMPBinaryFileMedia_somDumpSelf;
  305. typedef void   SOMLINK somTP_SOMPBinaryFileMedia_somDumpSelfInt(SOMPBinaryFileMedia *somSelf, 
  306.         long level);
  307. typedef somTP_SOMPBinaryFileMedia_somDumpSelfInt *somTD_SOMPBinaryFileMedia_somDumpSelfInt;
  308. }
  309.  
  310. #endif /* SOMPBinaryFileMedia_API */
  311.  
  312.  
  313. /*
  314.  * -- This emitter treats Method Tokens as Thunks by default.
  315.  * -- Use the sc modifier "nothunks" to change this default
  316.  */
  317. #undef somresolve_
  318. #define somresolve_(obj,mToken) ((somMethodProc*)((void)obj, mToken))
  319.  
  320. /*
  321.  * -- The C++ Wrapper Class for SOMPBinaryFileMedia
  322.  */
  323. class SOMPBinaryFileMedia : public SOMPAsciiMediaInterface
  324. {
  325. /*
  326.  *  The SOMPBinaryFileMedia class provides an interface to the file
  327.  *  system which writes numbers in binary.
  328.  */
  329. public:
  330.  
  331. // SOMPBinaryFileMedia::new creates the class object if necessary, and then uses somNewNoInit
  332. // to allocate memory and create the object. Initialization is in ctors.
  333. void *operator new(size_t)
  334. {
  335.    if (!_SOMPBinaryFileMedia) SOMPBinaryFileMediaNewClass(SOMPBinaryFileMedia_MajorVersion,SOMPBinaryFileMedia_MinorVersion);
  336.    return (void*)
  337.       SOM_Resolve(_SOMPBinaryFileMedia,SOMClass,somNewNoInit)
  338.          ((SOMClass *)((void*)_SOMPBinaryFileMedia));
  339. }
  340.  
  341. // SOMPBinaryFileMedia::delete uses somDestruct.
  342. void operator delete(void * obj)
  343. {
  344.    if (obj && *(void**)obj) {
  345.       SOM_Resolve(obj,SOMObject,somFree)
  346.          ((SOMObject*)obj);
  347.    }
  348. }
  349.  
  350. SOMPBinaryFileMedia& operator=(SOMPBinaryFileMedia& fromObj)
  351. {
  352.    this->somDefaultAssign(0,(SOMObject*)((void*)&fromObj));
  353.    return *this;
  354. }
  355.  
  356. SOMPBinaryFileMedia()
  357. {
  358.    if (*(void**)this != 
  359.        ((somParentMtabStructPtr)
  360.         (SOMPBinaryFileMediaCClassData.parentMtab))->mtab)
  361.       return;
  362.    ((SOMObject*)((void*)this))->somDefaultInit(0);
  363. }
  364.  
  365. SOMPBinaryFileMedia(SOMPBinaryFileMedia* fromObj)
  366. {
  367.    if (*(void**)this != 
  368.        ((somParentMtabStructPtr)
  369.         (SOMPBinaryFileMediaCClassData.parentMtab))->mtab)
  370.       return;
  371.    ((SOMObject*)((void*)this))->somDefaultCopyInit(0,((SOMObject*)((void*)fromObj)));
  372. }
  373.  
  374. #ifdef __IBMCPP__
  375. #pragma info(nocnv,nopar)
  376. #endif
  377. SOMPBinaryFileMedia(const SOMPBinaryFileMedia* fromObj)
  378. {
  379.    if (*(void**)this != 
  380.        ((somParentMtabStructPtr)
  381.         (SOMPBinaryFileMediaCClassData.parentMtab))->mtab)
  382.       return;
  383.    ((SOMObject*)((void*)this))->somDefaultConstCopyInit(0,((SOMObject*)((void*)fromObj)));
  384. }
  385. #ifdef __IBMCPP__
  386. #pragma info(restore)
  387. #endif
  388.  
  389.  
  390. /*
  391.  * Reintroduce inherited methods
  392.  */
  393.  
  394. /* method: sompInitSpecific */
  395. void   sompInitSpecific(Environment *ev, 
  396.         SOMPAsciiMediaInterface_mediaInfoType* mediaInfo)
  397. {
  398. /*
  399.  *  Initialize MediaInterface with specific permissions and/or flags.
  400.  */
  401.    SOM_ResolveD(this,SOMPBinaryFileMedia,SOMPAsciiMediaInterface,sompInitSpecific)
  402.     (this, ev,mediaInfo);
  403. }
  404.  
  405.  
  406. /* method: sompStat */
  407. void   sompStat(Environment *ev, 
  408.         SOMPStatDef_sompstat* fileStats)
  409. {
  410. /*
  411.  *  Fills the stat structure for the file associated with this object.
  412.  */
  413.    SOM_ResolveD(this,SOMPBinaryFileMedia,SOMPAsciiMediaInterface,sompStat)
  414.     (this, ev,fileStats);
  415. }
  416.  
  417.  
  418. /* method: sompQueryBlockSize */
  419. unsigned long   sompQueryBlockSize(Environment *ev)
  420. {
  421. /*
  422.  *  This method returns an optimal block size for I/O operations. This
  423.  *  method would likely be called prior to allocating a buffer to be used
  424.  *  for reading/writing.
  425.  */
  426.    return SOM_ResolveD(this,SOMPBinaryFileMedia,SOMPAsciiMediaInterface,sompQueryBlockSize)
  427.     (this, ev);
  428. }
  429.  
  430.  
  431. /* method: sompGetMediaName */
  432. string   sompGetMediaName(Environment *ev, 
  433.         string toBuffer)
  434. {
  435. /*
  436.  *  Puts the name of the file for the fmi object into toBuffer and returns
  437.  *  the address of the buffer.  The buffer must be allocated (and freed)
  438.  *  by the client.
  439.  */
  440.    return SOM_ResolveD(this,SOMPBinaryFileMedia,SOMPAsciiMediaInterface,sompGetMediaName)
  441.     (this, ev,toBuffer);
  442. }
  443.  
  444.  
  445. /* method: sompInitReadWrite */
  446. void   sompInitReadWrite(Environment *ev, 
  447.         string mediaInfo)
  448. {
  449.    SOM_ResolveD(this,SOMPBinaryFileMedia,SOMPFileMediaAbstract,sompInitReadWrite)
  450.     (this, ev,mediaInfo);
  451. }
  452.  
  453.  
  454. /* method: sompInitReadOnly */
  455. void   sompInitReadOnly(Environment *ev, 
  456.         string mediaInfo)
  457. {
  458.    SOM_ResolveD(this,SOMPBinaryFileMedia,SOMPFileMediaAbstract,sompInitReadOnly)
  459.     (this, ev,mediaInfo);
  460. }
  461.  
  462.  
  463. /* method: sompOpen */
  464. void   sompOpen(Environment *ev)
  465. {
  466.    SOM_ResolveD(this,SOMPBinaryFileMedia,SOMPMediaInterfaceAbstract,sompOpen)
  467.     (this, ev);
  468. }
  469.  
  470.  
  471. /* method: sompClose */
  472. void   sompClose(Environment *ev)
  473. {
  474.    SOM_ResolveD(this,SOMPBinaryFileMedia,SOMPMediaInterfaceAbstract,sompClose)
  475.     (this, ev);
  476. }
  477.  
  478.  
  479. /* method: sompSeekPosition */
  480. void   sompSeekPosition(Environment *ev, 
  481.         long offset)
  482. {
  483.    SOM_ResolveD(this,SOMPBinaryFileMedia,SOMPFileMediaAbstract,sompSeekPosition)
  484.     (this, ev,offset);
  485. }
  486.  
  487.  
  488. /* method: sompSeekPositionRel */
  489. void   sompSeekPositionRel(Environment *ev, 
  490.         long offset)
  491. {
  492.    SOM_ResolveD(this,SOMPBinaryFileMedia,SOMPFileMediaAbstract,sompSeekPositionRel)
  493.     (this, ev,offset);
  494. }
  495.  
  496.  
  497. /* method: sompGetOffset */
  498. long   sompGetOffset(Environment *ev)
  499. {
  500.    return SOM_ResolveD(this,SOMPBinaryFileMedia,SOMPFileMediaAbstract,sompGetOffset)
  501.     (this, ev);
  502. }
  503.  
  504.  
  505. /* method: sompReadBytes */
  506. void   sompReadBytes(Environment *ev, 
  507.         string byteStream, 
  508.         long length)
  509. {
  510.    SOM_ResolveD(this,SOMPBinaryFileMedia,SOMPFileMediaAbstract,sompReadBytes)
  511.     (this, ev,byteStream,length);
  512. }
  513.  
  514.  
  515. /* method: sompWriteBytes */
  516. void   sompWriteBytes(Environment *ev, 
  517.         string byteStream, 
  518.         long length)
  519. {
  520.    SOM_ResolveD(this,SOMPBinaryFileMedia,SOMPFileMediaAbstract,sompWriteBytes)
  521.     (this, ev,byteStream,length);
  522. }
  523.  
  524.  
  525. /* method: somInit */
  526. void   somInit()
  527. {
  528.    SOM_ResolveD(this,SOMPBinaryFileMedia,SOMObject,somInit)
  529.     (this);
  530. }
  531.  
  532.  
  533. /* method: somUninit */
  534. void   somUninit()
  535. {
  536.    SOM_ResolveD(this,SOMPBinaryFileMedia,SOMObject,somUninit)
  537.     (this);
  538. }
  539.  
  540.  
  541. /* method: sompWriteOctet */
  542. void   sompWriteOctet(Environment *ev, 
  543.         octet i1)
  544. {
  545.    SOM_ResolveD(this,SOMPBinaryFileMedia,SOMPFileMediaAbstract,sompWriteOctet)
  546.     (this, ev,i1);
  547. }
  548.  
  549.  
  550. /* method: sompWriteShort */
  551. void   sompWriteShort(Environment *ev, 
  552.         short i2)
  553. {
  554.    SOM_ResolveD(this,SOMPBinaryFileMedia,SOMPFileMediaAbstract,sompWriteShort)
  555.     (this, ev,i2);
  556. }
  557.  
  558.  
  559. /* method: sompWriteUnsignedShort */
  560. void   sompWriteUnsignedShort(Environment *ev, 
  561.         unsigned short u2)
  562. {
  563.    SOM_ResolveD(this,SOMPBinaryFileMedia,SOMPFileMediaAbstract,sompWriteUnsignedShort)
  564.     (this, ev,u2);
  565. }
  566.  
  567.  
  568. /* method: sompWriteLong */
  569. void   sompWriteLong(Environment *ev, 
  570.         long i4)
  571. {
  572.    SOM_ResolveD(this,SOMPBinaryFileMedia,SOMPFileMediaAbstract,sompWriteLong)
  573.     (this, ev,i4);
  574. }
  575.  
  576.  
  577. /* method: sompWriteUnsignedLong */
  578. void   sompWriteUnsignedLong(Environment *ev, 
  579.         unsigned long u4)
  580. {
  581.    SOM_ResolveD(this,SOMPBinaryFileMedia,SOMPFileMediaAbstract,sompWriteUnsignedLong)
  582.     (this, ev,u4);
  583. }
  584.  
  585.  
  586. /* method: sompWriteDouble */
  587. void   sompWriteDouble(Environment *ev, 
  588.         double f8)
  589. {
  590.    SOM_ResolveD(this,SOMPBinaryFileMedia,SOMPFileMediaAbstract,sompWriteDouble)
  591.     (this, ev,f8);
  592. }
  593.  
  594.  
  595. /* method: sompWriteFloat */
  596. void   sompWriteFloat(Environment *ev, 
  597.         float f4)
  598. {
  599.    SOM_ResolveD(this,SOMPBinaryFileMedia,SOMPFileMediaAbstract,sompWriteFloat)
  600.     (this, ev,f4);
  601. }
  602.  
  603.  
  604. /* method: sompWriteCharacter */
  605. void   sompWriteCharacter(Environment *ev, 
  606.         char c)
  607. {
  608.    SOM_ResolveD(this,SOMPBinaryFileMedia,SOMPFileMediaAbstract,sompWriteCharacter)
  609.     (this, ev,c);
  610. }
  611.  
  612.  
  613. /* method: sompWriteSomobject */
  614. void   sompWriteSomobject(Environment *ev, 
  615.         SOMObject* so, 
  616.         SOMObject* parentObject)
  617. {
  618.    SOM_ResolveD(this,SOMPBinaryFileMedia,SOMPFileMediaAbstract,sompWriteSomobject)
  619.     (this, ev,so,parentObject);
  620. }
  621.  
  622.  
  623. /* method: sompWriteString */
  624. void   sompWriteString(Environment *ev, 
  625.         string wstring)
  626. {
  627.    SOM_ResolveD(this,SOMPBinaryFileMedia,SOMPFileMediaAbstract,sompWriteString)
  628.     (this, ev,wstring);
  629. }
  630.  
  631.  
  632. /* method: sompReadOctet */
  633. void   sompReadOctet(Environment *ev, 
  634.         octet* i1)
  635. {
  636.    SOM_ResolveD(this,SOMPBinaryFileMedia,SOMPFileMediaAbstract,sompReadOctet)
  637.     (this, ev,i1);
  638. }
  639.  
  640.  
  641. /* method: sompReadShort */
  642. void   sompReadShort(Environment *ev, 
  643.         short* i2)
  644. {
  645.    SOM_ResolveD(this,SOMPBinaryFileMedia,SOMPFileMediaAbstract,sompReadShort)
  646.     (this, ev,i2);
  647. }
  648.  
  649.  
  650. /* method: sompReadUnsignedShort */
  651. void   sompReadUnsignedShort(Environment *ev, 
  652.         unsigned short* u2)
  653. {
  654.    SOM_ResolveD(this,SOMPBinaryFileMedia,SOMPFileMediaAbstract,sompReadUnsignedShort)
  655.     (this, ev,u2);
  656. }
  657.  
  658.  
  659. /* method: sompReadLong */
  660. void   sompReadLong(Environment *ev, 
  661.         long* i4)
  662. {
  663.    SOM_ResolveD(this,SOMPBinaryFileMedia,SOMPFileMediaAbstract,sompReadLong)
  664.     (this, ev,i4);
  665. }
  666.  
  667.  
  668. /* method: sompReadUnsignedLong */
  669. void   sompReadUnsignedLong(Environment *ev, 
  670.         unsigned long* i4)
  671. {
  672.    SOM_ResolveD(this,SOMPBinaryFileMedia,SOMPFileMediaAbstract,sompReadUnsignedLong)
  673.     (this, ev,i4);
  674. }
  675.  
  676.  
  677. /* method: sompReadDouble */
  678. void   sompReadDouble(Environment *ev, 
  679.         double* f8)
  680. {
  681.    SOM_ResolveD(this,SOMPBinaryFileMedia,SOMPFileMediaAbstract,sompReadDouble)
  682.     (this, ev,f8);
  683. }
  684.  
  685.  
  686. /* method: sompReadFloat */
  687. void   sompReadFloat(Environment *ev, 
  688.         float* f4)
  689. {
  690.    SOM_ResolveD(this,SOMPBinaryFileMedia,SOMPFileMediaAbstract,sompReadFloat)
  691.     (this, ev,f4);
  692. }
  693.  
  694.  
  695. /* method: sompReadCharacter */
  696. void   sompReadCharacter(Environment *ev, 
  697.         char* c)
  698. {
  699.    SOM_ResolveD(this,SOMPBinaryFileMedia,SOMPFileMediaAbstract,sompReadCharacter)
  700.     (this, ev,c);
  701. }
  702.  
  703.  
  704. /* method: sompReadSomobject */
  705. void   sompReadSomobject(Environment *ev, 
  706.         SOMObject** so)
  707. {
  708.    SOM_ResolveD(this,SOMPBinaryFileMedia,SOMPFileMediaAbstract,sompReadSomobject)
  709.     (this, ev,so);
  710. }
  711.  
  712.  
  713. /* method: sompReadString */
  714. void   sompReadString(Environment *ev, 
  715.         string* rstring)
  716. {
  717.    SOM_ResolveD(this,SOMPBinaryFileMedia,SOMPFileMediaAbstract,sompReadString)
  718.     (this, ev,rstring);
  719. }
  720.  
  721.  
  722. /* method: sompReadStringToBuffer */
  723. void   sompReadStringToBuffer(Environment *ev, 
  724.         string buffer, 
  725.         long bufsize)
  726. {
  727.    SOM_ResolveD(this,SOMPBinaryFileMedia,SOMPFileMediaAbstract,sompReadStringToBuffer)
  728.     (this, ev,buffer,bufsize);
  729. }
  730.  
  731.  
  732. /* method: sompWriteLine */
  733. void   sompWriteLine(Environment *ev, 
  734.         string buffer)
  735. {
  736.    SOM_ResolveD(this,SOMPBinaryFileMedia,SOMPFileMediaAbstract,sompWriteLine)
  737.     (this, ev,buffer);
  738. }
  739.  
  740.  
  741. /* method: sompReadLine */
  742. void   sompReadLine(Environment *ev, 
  743.         string buffer, 
  744.         long bufsize)
  745. {
  746.    SOM_ResolveD(this,SOMPBinaryFileMedia,SOMPFileMediaAbstract,sompReadLine)
  747.     (this, ev,buffer,bufsize);
  748. }
  749.  
  750.  
  751. /* method: sompWriteTypeCode */
  752. void   sompWriteTypeCode(Environment *ev, 
  753.         TypeCode tc)
  754. {
  755.    SOM_ResolveD(this,SOMPBinaryFileMedia,SOMPFileMediaAbstract,sompWriteTypeCode)
  756.     (this, ev,tc);
  757. }
  758.  
  759.  
  760. /* method: sompReadTypeCode */
  761. void   sompReadTypeCode(Environment *ev, 
  762.         TypeCode* tc)
  763. {
  764.    SOM_ResolveD(this,SOMPBinaryFileMedia,SOMPFileMediaAbstract,sompReadTypeCode)
  765.     (this, ev,tc);
  766. }
  767.  
  768.  
  769. /* initializer method: somDefaultInit */
  770. void   somDefaultInit(som3InitCtrl* ctrl)
  771. {
  772. /*
  773.  *  A default initializer for a SOM object. Passing a null ctrl
  774.  *  indicates to the receiver that its class is the class of the
  775.  *  object being initialized, whereby the initializer will determine
  776.  *  an appropriate control structure.
  777.  */
  778.    SOM_ResolveD(this,SOMPBinaryFileMedia,SOMObject,somDefaultInit)
  779.     (this,ctrl);
  780. }
  781.  
  782.  
  783. /* method: somDestruct */
  784. void   somDestruct(octet doFree, 
  785.         som3DestructCtrl* ctrl)
  786. {
  787. /*
  788.  *  The default destructor for a SOM object. A nonzero <doFree>
  789.  *  indicates that the object storage should be freed by the
  790.  *  object's class (via somDeallocate) after uninitialization.
  791.  *  As with somDefaultInit, a null ctrl can be passed.
  792.  */
  793.    SOM_ResolveD(this,SOMPBinaryFileMedia,SOMObject,somDestruct)
  794.     (this,doFree,ctrl);
  795. }
  796.  
  797.  
  798. /* initializer method: somDefaultCopyInit */
  799. void   somDefaultCopyInit(som3InitCtrl* ctrl, 
  800.         SOMObject* fromObj)
  801. {
  802. /*
  803.  *  A default copy constructor. Use this to make copies of objects for
  804.  *  calling methods with "by-value" argument semantics.
  805.  */
  806.    SOM_ResolveD(this,SOMPBinaryFileMedia,SOMObject,somDefaultCopyInit)
  807.     (this,ctrl,fromObj);
  808. }
  809.  
  810.  
  811. /* method: somDefaultAssign */
  812. SOMPBinaryFileMedia*  somDefaultAssign(som3AssignCtrl* ctrl, 
  813.         SOMObject* fromObj)
  814. {
  815. /*
  816.  *  A default assignment operator. Use this to "assign" the state of one
  817.  *  object to another.
  818.  */
  819.    return SOM_ResolveD(this,SOMPBinaryFileMedia,SOMObject,somDefaultAssign)
  820.     (this,ctrl,fromObj);
  821. }
  822.  
  823.  
  824. /* initializer method: somDefaultConstCopyInit */
  825. void   somDefaultConstCopyInit(som3InitCtrl* ctrl, 
  826.         SOMObject* fromObj)
  827. {
  828. /*
  829.  *  A default copy constructor that uses a const fromObj.
  830.  */
  831.    SOM_ResolveD(this,SOMPBinaryFileMedia,SOMObject,somDefaultConstCopyInit)
  832.     (this,ctrl,fromObj);
  833. }
  834.  
  835.  
  836. /* initializer method: somDefaultVCopyInit */
  837. void   somDefaultVCopyInit(som3InitCtrl* ctrl, 
  838.         SOMObject* fromObj)
  839. {
  840. /*
  841.  *  A default copy constructor that uses a volatile fromObj.
  842.  */
  843.    SOM_ResolveD(this,SOMPBinaryFileMedia,SOMObject,somDefaultVCopyInit)
  844.     (this,ctrl,fromObj);
  845. }
  846.  
  847.  
  848. /* initializer method: somDefaultConstVCopyInit */
  849. void   somDefaultConstVCopyInit(som3InitCtrl* ctrl, 
  850.         SOMObject* fromObj)
  851. {
  852. /*
  853.  *  A default copy constructor that uses a const volatile fromObj.
  854.  */
  855.    SOM_ResolveD(this,SOMPBinaryFileMedia,SOMObject,somDefaultConstVCopyInit)
  856.     (this,ctrl,fromObj);
  857. }
  858.  
  859.  
  860. /* method: somDefaultConstAssign */
  861. SOMPBinaryFileMedia*  somDefaultConstAssign(som3AssignCtrl* ctrl, 
  862.         SOMObject* fromObj)
  863. {
  864. /*
  865.  *  A default assignment operator that uses a const fromObj.
  866.  */
  867.    return SOM_ResolveD(this,SOMPBinaryFileMedia,SOMObject,somDefaultConstAssign)
  868.     (this,ctrl,fromObj);
  869. }
  870.  
  871.  
  872. /* method: somDefaultVAssign */
  873. SOMPBinaryFileMedia*  somDefaultVAssign(som3AssignCtrl* ctrl, 
  874.         SOMObject* fromObj)
  875. {
  876. /*
  877.  *  A default assignment operator that uses a volatile fromObj.
  878.  */
  879.    return SOM_ResolveD(this,SOMPBinaryFileMedia,SOMObject,somDefaultVAssign)
  880.     (this,ctrl,fromObj);
  881. }
  882.  
  883.  
  884. /* method: somDefaultConstVAssign */
  885. SOMPBinaryFileMedia*  somDefaultConstVAssign(som3AssignCtrl* ctrl, 
  886.         SOMObject* fromObj)
  887. {
  888. /*
  889.  *  A default assignment operator that uses a const volatile fromObj.
  890.  */
  891.    return SOM_ResolveD(this,SOMPBinaryFileMedia,SOMObject,somDefaultConstVAssign)
  892.     (this,ctrl,fromObj);
  893. }
  894.  
  895.  
  896. /* method: somFree */
  897. void   somFree()
  898. {
  899. /*
  900.  *  Use as directed by framework implementations.
  901.  */
  902.    SOM_ResolveD(this,SOMPBinaryFileMedia,SOMObject,somFree)
  903.     (this);
  904. }
  905.  
  906.  
  907. /* method: somGetClass */
  908. SOMClass*   somGetClass()
  909. {
  910. /*
  911.  *  Return the receiver's class.
  912.  */
  913.    return SOM_ResolveD(this,SOMPBinaryFileMedia,SOMObject,somGetClass)
  914.     (this);
  915. }
  916.  
  917.  
  918. /* method: somGetClassName */
  919. string   somGetClassName()
  920. {
  921. /*
  922.  *  Return the name of the receiver's class.
  923.  */
  924.    return SOM_ResolveD(this,SOMPBinaryFileMedia,SOMObject,somGetClassName)
  925.     (this);
  926. }
  927.  
  928.  
  929. /* method: somGetSize */
  930. long   somGetSize()
  931. {
  932. /*
  933.  *  Return the size of the receiver.
  934.  */
  935.    return SOM_ResolveD(this,SOMPBinaryFileMedia,SOMObject,somGetSize)
  936.     (this);
  937. }
  938.  
  939.  
  940. /* method: somIsA */
  941. boolean   somIsA(SOMClass* aClassObj)
  942. {
  943. /*
  944.  *  Returns 1 (true) if the receiver responds to methods
  945.  *  introduced by <aClassObj>, and 0 (false) otherwise.
  946.  */
  947.    return SOM_ResolveD(this,SOMPBinaryFileMedia,SOMObject,somIsA)
  948.     (this,aClassObj);
  949. }
  950.  
  951.  
  952. /* method: somIsInstanceOf */
  953. boolean   somIsInstanceOf(SOMClass* aClassObj)
  954. {
  955. /*
  956.  *  Returns 1 (true) if the receiver is an instance of
  957.  *  <aClassObj> and 0 (false) otherwise.
  958.  */
  959.    return SOM_ResolveD(this,SOMPBinaryFileMedia,SOMObject,somIsInstanceOf)
  960.     (this,aClassObj);
  961. }
  962.  
  963.  
  964. /* method: somRespondsTo */
  965. boolean   somRespondsTo(somId mId)
  966. {
  967. /*
  968.  *  Returns 1 (true) if the indicated method can be invoked
  969.  *  on the receiver and 0 (false) otherwise.
  970.  */
  971.    return SOM_ResolveD(this,SOMPBinaryFileMedia,SOMObject,somRespondsTo)
  972.     (this,mId);
  973. }
  974.  
  975.  
  976. /* va_list method: somDispatch */
  977.  
  978. /*
  979.  *  This method provides a generic, class-specific dispatch mechanism.
  980.  *  It accepts as input <retValue> a pointer to the memory area to be
  981.  *  loaded with the result of dispatching the method indicated by
  982.  *  <methodId> using the arguments in <ap>. <ap> contains the object
  983.  *  on which the method is to be invoked as the first argument.
  984.  */
  985. /* the va_list invocation form */
  986. boolean   SOMPBinaryFileMedia_somDispatch(somToken* retValue, 
  987.         somId methodId, 
  988.         va_list ap)
  989. {return SOM_ResolveD(this,SOMPBinaryFileMedia,SOMObject,somDispatch)
  990.     (this,retValue,methodId,ap);
  991. }
  992.  
  993. /* the varargs invocation form */
  994. boolean   somDispatch(somToken* retValue, 
  995.         somId methodId, 
  996.         ...)
  997. {
  998. /*
  999.  *  This method provides a generic, class-specific dispatch mechanism.
  1000.  *  It accepts as input <retValue> a pointer to the memory area to be
  1001.  *  loaded with the result of dispatching the method indicated by
  1002.  *  <methodId> using the arguments in <ap>. <ap> contains the object
  1003.  *  on which the method is to be invoked as the first argument.
  1004.  */
  1005.    va_list ap;
  1006.    va_start(ap, methodId);
  1007.    boolean __somResult = 
  1008.       SOM_ResolveD(this,SOMPBinaryFileMedia,SOMObject,somDispatch)
  1009.     (this,retValue,methodId,ap);
  1010.    va_end(ap);
  1011.    return __somResult;
  1012. }
  1013.  
  1014.  
  1015. /* va_list method: somClassDispatch */
  1016.  
  1017. /*
  1018.  *  Like somDispatch, but method resolution for static methods is done
  1019.  *  according to the clsObj instance method table.
  1020.  */
  1021. /* the va_list invocation form */
  1022. boolean   SOMPBinaryFileMedia_somClassDispatch(SOMClass* clsObj, 
  1023.         somToken* retValue, 
  1024.         somId methodId, 
  1025.         va_list ap)
  1026. {return SOM_ResolveD(this,SOMPBinaryFileMedia,SOMObject,somClassDispatch)
  1027.     (this,clsObj,retValue,methodId,ap);
  1028. }
  1029.  
  1030. /* the varargs invocation form */
  1031. boolean   somClassDispatch(SOMClass* clsObj, 
  1032.         somToken* retValue, 
  1033.         somId methodId, 
  1034.         ...)
  1035. {
  1036. /*
  1037.  *  Like somDispatch, but method resolution for static methods is done
  1038.  *  according to the clsObj instance method table.
  1039.  */
  1040.    va_list ap;
  1041.    va_start(ap, methodId);
  1042.    boolean __somResult = 
  1043.       SOM_ResolveD(this,SOMPBinaryFileMedia,SOMObject,somClassDispatch)
  1044.     (this,clsObj,retValue,methodId,ap);
  1045.    va_end(ap);
  1046.    return __somResult;
  1047. }
  1048.  
  1049.  
  1050. /* method: somCastObj */
  1051. boolean   somCastObj(SOMClass* cls)
  1052. {
  1053. /*
  1054.  *  cast the receiving object to cls (which must be an ancestor of the
  1055.  *  objects true class. Returns true on success.
  1056.  */
  1057.    return SOM_ResolveD(this,SOMPBinaryFileMedia,SOMObject,somCastObj)
  1058.     (this,cls);
  1059. }
  1060.  
  1061.  
  1062. /* method: somResetObj */
  1063. boolean   somResetObj()
  1064. {
  1065. /*
  1066.  *  reset an object to its true class. Returns true always.
  1067.  */
  1068.    return SOM_ResolveD(this,SOMPBinaryFileMedia,SOMObject,somResetObj)
  1069.     (this);
  1070. }
  1071.  
  1072.  
  1073. /* va_list method: somDispatchV */
  1074.  
  1075. /*
  1076.  *  Obsolete. Use somDispatch instead.
  1077.  */
  1078. /* the va_list invocation form */
  1079. void   SOMPBinaryFileMedia_somDispatchV(somId methodId, 
  1080.         somId descriptor, 
  1081.         va_list ap)
  1082. {   SOM_ResolveD(this,SOMPBinaryFileMedia,SOMObject,somDispatchV)
  1083.     (this,methodId,descriptor,ap);
  1084. }
  1085.  
  1086. /* the varargs invocation form */
  1087. void   somDispatchV(somId methodId, 
  1088.         somId descriptor, 
  1089.         ...)
  1090. {
  1091. /*
  1092.  *  Obsolete. Use somDispatch instead.
  1093.  */
  1094.    va_list ap;
  1095.    va_start(ap, descriptor);
  1096.    SOM_ResolveD(this,SOMPBinaryFileMedia,SOMObject,somDispatchV)
  1097.     (this,methodId,descriptor,ap);
  1098.    va_end(ap);
  1099. }
  1100.  
  1101.  
  1102. /* va_list method: somDispatchL */
  1103.  
  1104. /*
  1105.  *  Obsolete. Use somDispatch instead.
  1106.  */
  1107. /* the va_list invocation form */
  1108. long   SOMPBinaryFileMedia_somDispatchL(somId methodId, 
  1109.         somId descriptor, 
  1110.         va_list ap)
  1111. {return SOM_ResolveD(this,SOMPBinaryFileMedia,SOMObject,somDispatchL)
  1112.     (this,methodId,descriptor,ap);
  1113. }
  1114.  
  1115. /* the varargs invocation form */
  1116. long   somDispatchL(somId methodId, 
  1117.         somId descriptor, 
  1118.         ...)
  1119. {
  1120. /*
  1121.  *  Obsolete. Use somDispatch instead.
  1122.  */
  1123.    va_list ap;
  1124.    va_start(ap, descriptor);
  1125.    long __somResult = 
  1126.       SOM_ResolveD(this,SOMPBinaryFileMedia,SOMObject,somDispatchL)
  1127.     (this,methodId,descriptor,ap);
  1128.    va_end(ap);
  1129.    return __somResult;
  1130. }
  1131.  
  1132.  
  1133. /* va_list method: somDispatchA */
  1134.  
  1135. /*
  1136.  *  Obsolete. Use somDispatch instead.
  1137.  */
  1138. /* the va_list invocation form */
  1139. void*   SOMPBinaryFileMedia_somDispatchA(somId methodId, 
  1140.         somId descriptor, 
  1141.         va_list ap)
  1142. {return SOM_ResolveD(this,SOMPBinaryFileMedia,SOMObject,somDispatchA)
  1143.     (this,methodId,descriptor,ap);
  1144. }
  1145.  
  1146. /* the varargs invocation form */
  1147. void*   somDispatchA(somId methodId, 
  1148.         somId descriptor, 
  1149.         ...)
  1150. {
  1151. /*
  1152.  *  Obsolete. Use somDispatch instead.
  1153.  */
  1154.    va_list ap;
  1155.    va_start(ap, descriptor);
  1156.    void* __somResult = 
  1157.       SOM_ResolveD(this,SOMPBinaryFileMedia,SOMObject,somDispatchA)
  1158.     (this,methodId,descriptor,ap);
  1159.    va_end(ap);
  1160.    return __somResult;
  1161. }
  1162.  
  1163.  
  1164. /* va_list method: somDispatchD */
  1165.  
  1166. /*
  1167.  *  Obsolete. Use somDispatch instead.
  1168.  */
  1169. /* the va_list invocation form */
  1170. double   SOMPBinaryFileMedia_somDispatchD(somId methodId, 
  1171.         somId descriptor, 
  1172.         va_list ap)
  1173. {return SOM_ResolveD(this,SOMPBinaryFileMedia,SOMObject,somDispatchD)
  1174.     (this,methodId,descriptor,ap);
  1175. }
  1176.  
  1177. /* the varargs invocation form */
  1178. double   somDispatchD(somId methodId, 
  1179.         somId descriptor, 
  1180.         ...)
  1181. {
  1182. /*
  1183.  *  Obsolete. Use somDispatch instead.
  1184.  */
  1185.    va_list ap;
  1186.    va_start(ap, descriptor);
  1187.    double __somResult = 
  1188.       SOM_ResolveD(this,SOMPBinaryFileMedia,SOMObject,somDispatchD)
  1189.     (this,methodId,descriptor,ap);
  1190.    va_end(ap);
  1191.    return __somResult;
  1192. }
  1193.  
  1194.  
  1195. /* method: somPrintSelf */
  1196. SOMObject*   somPrintSelf()
  1197. {
  1198. /*
  1199.  *  Uses <SOMOutCharRoutine> to write a brief string with identifying
  1200.  *  information about this object.  The default implementation just gives
  1201.  *  the object's class name and its address in memory.
  1202.  *  <self> is returned.
  1203.  */
  1204.    return SOM_ResolveD(this,SOMPBinaryFileMedia,SOMObject,somPrintSelf)
  1205.     (this);
  1206. }
  1207.  
  1208.  
  1209. /* method: somDumpSelf */
  1210. void   somDumpSelf(long level)
  1211. {
  1212. /*
  1213.  *  Uses <SOMOutCharRoutine> to write a detailed description of this object
  1214.  *  and its current state.
  1215.  * 
  1216.  *  <level> indicates the nesting level for describing compound objects
  1217.  *  it must be greater than or equal to zero.  All lines in the
  1218.  *  description will be preceeded by <2*level> spaces.
  1219.  * 
  1220.  *  This routine only actually writes the data that concerns the object
  1221.  *  as a whole, such as class, and uses <somDumpSelfInt> to describe
  1222.  *  the object's current state.  This approach allows readable
  1223.  *  descriptions of compound objects to be constructed.
  1224.  * 
  1225.  *  Generally it is not necessary to override this method, if it is
  1226.  *  overriden it generally must be completely replaced.
  1227.  */
  1228.    SOM_ResolveD(this,SOMPBinaryFileMedia,SOMObject,somDumpSelf)
  1229.     (this,level);
  1230. }
  1231.  
  1232.  
  1233. /* method: somDumpSelfInt */
  1234. void   somDumpSelfInt(long level)
  1235. {
  1236. /*
  1237.  *  Uses <SOMOutCharRoutine> to write in the current state of this object.
  1238.  *  Generally this method will need to be overridden.  When overriding
  1239.  *  it, begin by calling the parent class form of this method and then
  1240.  *  write in a description of your class's instance data. This will
  1241.  *  result in a description of all the object's instance data going
  1242.  *  from its root ancestor class to its specific class.
  1243.  */
  1244.    SOM_ResolveD(this,SOMPBinaryFileMedia,SOMObject,somDumpSelfInt)
  1245.     (this,level);
  1246. }
  1247.  
  1248.  
  1249.  
  1250. };   /* SOMPBinaryFileMedia */
  1251.  
  1252.  
  1253.  
  1254. #endif       /* SOM_SOMPBinaryFileMedia_xh */
  1255.