home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / WPSDEM.ZIP / COMPUTER / MICRO.H < prev    next >
C/C++ Source or Header  |  1992-08-06  |  6KB  |  219 lines

  1.  
  2. /*
  3.  * This file was generated by the SOM Compiler.
  4.  * FileName: micro.h.
  5.  * Generated using:
  6.  *     SOM Precompiler spc: 1.22
  7.  *     SOM Emitter emith: 1.11
  8.  */
  9.  
  10. #ifndef micro_h
  11. #define micro_h
  12.  
  13.  
  14. #include <som.h>
  15.  
  16. /*
  17.  * Define the class name as an object type
  18.  */
  19. #ifndef Microcomputer
  20. #define Microcomputer SOMAny
  21. #endif
  22. #include <somobj.h>
  23.  
  24. #define Microcomputer_MajorVersion 0
  25. #define Microcomputer_MinorVersion 0
  26.  
  27. /*
  28.  * External name shortening if required
  29.  */
  30. #ifdef SOM_USE_SHORT_EXTERNAL_NAMES
  31. #define MicrocomputerNewClass microc
  32. #pragma linkage(microc, system)
  33. #define MicrocomputerClassData microd
  34. #define MicrocomputerCClassData microx
  35. #endif /* SOM_USE_SHORT_EXTERNAL_NAMES */
  36. /*--------------Migration------------*/
  37. #define Microcomputer_classObj MicrocomputerClassData.classObject
  38. #define _Microcomputer Microcomputer_classObj
  39.  
  40. /*
  41.  * New and Renew macros for Microcomputer
  42.  */
  43. #define _MicrocomputerNew() (_somNew(MicrocomputerClassData.classObject))
  44. #define MicrocomputerNew() \
  45.     ( MicrocomputerClassData.classObject \
  46.         ? _MicrocomputerNew() \
  47.         : ( MicrocomputerNewClass(Microcomputer_MajorVersion, Microcomputer_MinorVersion), _MicrocomputerNew() ) )
  48. #define MicrocomputerRenew(buf) \
  49.     ( _somRenew(MicrocomputerClassData.classObject, buf) )
  50.  
  51. /*
  52.  * Override method: somInit
  53.  */
  54. #define Microcomputer_somInit(somSelf) \
  55.     SOMObject_somInit(somSelf)
  56.  
  57. /*
  58.  * Override method: somUninit
  59.  */
  60. #define Microcomputer_somUninit(somSelf) \
  61.     SOMObject_somUninit(somSelf)
  62.  
  63. /*
  64.  * New Method: Add
  65.  */
  66. typedef void    SOMLINK somTP_Microcomputer_Add(Microcomputer *somSelf);
  67. #pragma linkage(somTP_Microcomputer_Add, system)
  68. typedef somTP_Microcomputer_Add *somTD_Microcomputer_Add;
  69. #define somMD_Microcomputer_Add "----"
  70. #define Microcomputer_Add(somSelf) \
  71.     (SOM_Resolve(somSelf, Microcomputer, Add) \
  72.     (somSelf))
  73. #define _Add Microcomputer_Add
  74.  
  75. /*
  76.  * New Method: Sub
  77.  */
  78. typedef void    SOMLINK somTP_Microcomputer_Sub(Microcomputer *somSelf);
  79. #pragma linkage(somTP_Microcomputer_Sub, system)
  80. typedef somTP_Microcomputer_Sub *somTD_Microcomputer_Sub;
  81. #define somMD_Microcomputer_Sub "----"
  82. #define Microcomputer_Sub(somSelf) \
  83.     (SOM_Resolve(somSelf, Microcomputer, Sub) \
  84.     (somSelf))
  85. #define _Sub Microcomputer_Sub
  86.  
  87. /*
  88.  * New Method: Mul
  89.  */
  90. typedef void    SOMLINK somTP_Microcomputer_Mul(Microcomputer *somSelf);
  91. #pragma linkage(somTP_Microcomputer_Mul, system)
  92. typedef somTP_Microcomputer_Mul *somTD_Microcomputer_Mul;
  93. #define somMD_Microcomputer_Mul "----"
  94. #define Microcomputer_Mul(somSelf) \
  95.     (SOM_Resolve(somSelf, Microcomputer, Mul) \
  96.     (somSelf))
  97. #define _Mul Microcomputer_Mul
  98.  
  99. /*
  100.  * New Method: Div
  101.  */
  102. typedef void    SOMLINK somTP_Microcomputer_Div(Microcomputer *somSelf);
  103. #pragma linkage(somTP_Microcomputer_Div, system)
  104. typedef somTP_Microcomputer_Div *somTD_Microcomputer_Div;
  105. #define somMD_Microcomputer_Div "----"
  106. #define Microcomputer_Div(somSelf) \
  107.     (SOM_Resolve(somSelf, Microcomputer, Div) \
  108.     (somSelf))
  109. #define _Div Microcomputer_Div
  110.  
  111. /*
  112.  * New Method: Pop
  113.  */
  114. typedef double    SOMLINK somTP_Microcomputer_Pop(Microcomputer *somSelf);
  115. #pragma linkage(somTP_Microcomputer_Pop, system)
  116. typedef somTP_Microcomputer_Pop *somTD_Microcomputer_Pop;
  117. #define somMD_Microcomputer_Pop "----"
  118. #define Microcomputer_Pop(somSelf) \
  119.     (SOM_Resolve(somSelf, Microcomputer, Pop) \
  120.     (somSelf))
  121. #define _Pop Microcomputer_Pop
  122.  
  123. /*
  124.  * New Method: Push
  125.  */
  126. typedef void    SOMLINK somTP_Microcomputer_Push(Microcomputer *somSelf,
  127.         double Item);
  128. #pragma linkage(somTP_Microcomputer_Push, system)
  129. typedef somTP_Microcomputer_Push *somTD_Microcomputer_Push;
  130. #define somMD_Microcomputer_Push "----"
  131. #define Microcomputer_Push(somSelf,Item) \
  132.     (SOM_Resolve(somSelf, Microcomputer, Push) \
  133.     (somSelf,Item))
  134. #define _Push Microcomputer_Push
  135.  
  136. /*
  137.  * New Method: Store
  138.  */
  139. typedef void    SOMLINK somTP_Microcomputer_Store(Microcomputer *somSelf,
  140.         int Reg);
  141. #pragma linkage(somTP_Microcomputer_Store, system)
  142. typedef somTP_Microcomputer_Store *somTD_Microcomputer_Store;
  143. #define somMD_Microcomputer_Store "----"
  144. #define Microcomputer_Store(somSelf,Reg) \
  145.     (SOM_Resolve(somSelf, Microcomputer, Store) \
  146.     (somSelf,Reg))
  147. #define _Store Microcomputer_Store
  148.  
  149. /*
  150.  * New Method: Fetch
  151.  */
  152. typedef void    SOMLINK somTP_Microcomputer_Fetch(Microcomputer *somSelf,
  153.         int Reg);
  154. #pragma linkage(somTP_Microcomputer_Fetch, system)
  155. typedef somTP_Microcomputer_Fetch *somTD_Microcomputer_Fetch;
  156. #define somMD_Microcomputer_Fetch "----"
  157. #define Microcomputer_Fetch(somSelf,Reg) \
  158.     (SOM_Resolve(somSelf, Microcomputer, Fetch) \
  159.     (somSelf,Reg))
  160. #define _Fetch Microcomputer_Fetch
  161.  
  162. /*
  163.  * New Method: Input
  164.  */
  165. typedef void    SOMLINK somTP_Microcomputer_Input(Microcomputer *somSelf);
  166. #pragma linkage(somTP_Microcomputer_Input, system)
  167. typedef somTP_Microcomputer_Input *somTD_Microcomputer_Input;
  168. #define somMD_Microcomputer_Input "----"
  169. #define Microcomputer_Input(somSelf) \
  170.     (SOM_Resolve(somSelf, Microcomputer, Input) \
  171.     (somSelf))
  172. #define _Input Microcomputer_Input
  173.  
  174. /*
  175.  * New Method: Output
  176.  */
  177. typedef void    SOMLINK somTP_Microcomputer_Output(Microcomputer *somSelf);
  178. #pragma linkage(somTP_Microcomputer_Output, system)
  179. typedef somTP_Microcomputer_Output *somTD_Microcomputer_Output;
  180. #define somMD_Microcomputer_Output "----"
  181. #define Microcomputer_Output(somSelf) \
  182.     (SOM_Resolve(somSelf, Microcomputer, Output) \
  183.     (somSelf))
  184. #define _Output Microcomputer_Output
  185.  
  186. /*
  187.  * Declare the class creation procedure
  188.  */
  189. SOMEXTERN SOMAny * SOMLINK MicrocomputerNewClass(integer4 scemajorVersion,
  190.         integer4 sceminorVersion);
  191. #pragma linkage(MicrocomputerNewClass, system)
  192.  
  193. /*
  194.  * Declare the class data structure
  195.  */
  196. SOMEXTERN struct MicrocomputerClassDataStructure {
  197.     SOMAny *classObject;
  198.     somMToken Add;
  199.     somMToken Sub;
  200.     somMToken Mul;
  201.     somMToken Div;
  202.     somMToken Pop;
  203.     somMToken Push;
  204.     somMToken Store;
  205.     somMToken Fetch;
  206.     somMToken Input;
  207.     somMToken Output;
  208. } MicrocomputerClassData;
  209.  
  210. /*
  211.  * Declare the C specific class data structure
  212.  */
  213. SOMEXTERN struct MicrocomputerCClassDataStructure {
  214.     somMethodTab *parentMtab;
  215.     somDToken instanceDataToken;
  216. } MicrocomputerCClassData;
  217.  
  218. #endif       /* micro_h */
  219.