home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / WPSDEM.ZIP / CMBSTDNT / UNDRGRAD.H < prev    next >
C/C++ Source or Header  |  1992-08-21  |  3KB  |  102 lines

  1.  
  2. /*
  3.  * This file was generated by the SOM Compiler.
  4.  * FileName: .\UNDRGRAD.h.
  5.  * Generated using:
  6.  *     SOM Precompiler spc: 1.22
  7.  *     SOM Emitter emith: 1.11
  8.  */
  9.  
  10. #ifndef UNDRGRAD_h
  11. #define UNDRGRAD_h
  12.  
  13.  
  14. #include <som.h>
  15.  
  16. /*
  17.  * Define the class name as an object type
  18.  */
  19. #ifndef UnderGraduateStudent
  20. #define UnderGraduateStudent SOMAny
  21. #endif
  22. #include <STUDENT.h>
  23.  
  24. #define UnderGraduateStudent_MajorVersion 1
  25. #define UnderGraduateStudent_MinorVersion 1
  26.  
  27. /*
  28.  * External name shortening if required
  29.  */
  30. #ifdef SOM_USE_SHORT_EXTERNAL_NAMES
  31. #define UnderGraduateStudentNewClass c
  32. #pragma linkage(c, system)
  33. #define UnderGraduateStudentClassData d
  34. #define UnderGraduateStudentCClassData x
  35. #endif /* SOM_USE_SHORT_EXTERNAL_NAMES */
  36. /*--------------Migration------------*/
  37. #define UnderGraduateStudent_classObj UnderGraduateStudentClassData.classObject
  38. #define _UnderGraduateStudent UnderGraduateStudent_classObj
  39.  
  40. /*
  41.  * New and Renew macros for UnderGraduateStudent
  42.  */
  43. #define _UnderGraduateStudentNew() (_somNew(UnderGraduateStudentClassData.classObject))
  44. #define UnderGraduateStudentNew() \
  45.     ( UnderGraduateStudentClassData.classObject \
  46.         ? _UnderGraduateStudentNew() \
  47.         : ( UnderGraduateStudentNewClass(UnderGraduateStudent_MajorVersion, UnderGraduateStudent_MinorVersion), _UnderGraduateStudentNew() ) )
  48. #define UnderGraduateStudentRenew(buf) \
  49.     ( _somRenew(UnderGraduateStudentClassData.classObject, buf) )
  50.  
  51. /*
  52.  * Override method: printStudentInfo
  53.  */
  54. #define UnderGraduateStudent_printStudentInfo(somSelf) \
  55.     Student_printStudentInfo(somSelf)
  56.  
  57. /*
  58.  * Override method: getStudentType
  59.  */
  60. #define UnderGraduateStudent_getStudentType(somSelf) \
  61.     Student_getStudentType(somSelf)
  62.  
  63. /*
  64.  * New Method: setUpUnderGraduateStudent
  65.  */
  66. typedef void    SOMLINK somTP_UnderGraduateStudent_setUpUnderGraduateStudent(UnderGraduateStudent *somSelf,
  67.         char *id,
  68.         char *name,
  69.         char *date);
  70. #pragma linkage(somTP_UnderGraduateStudent_setUpUnderGraduateStudent, system)
  71. typedef somTP_UnderGraduateStudent_setUpUnderGraduateStudent *somTD_UnderGraduateStudent_setUpUnderGraduateStudent;
  72. #define somMD_UnderGraduateStudent_setUpUnderGraduateStudent "----"
  73. #define UnderGraduateStudent_setUpUnderGraduateStudent(somSelf,id,name,date) \
  74.     (SOM_Resolve(somSelf, UnderGraduateStudent, setUpUnderGraduateStudent) \
  75.     (somSelf,id,name,date))
  76. #define _setUpUnderGraduateStudent UnderGraduateStudent_setUpUnderGraduateStudent
  77.  
  78. /*
  79.  * Declare the class creation procedure
  80.  */
  81. SOMEXTERN SOMAny * SOMLINK UnderGraduateStudentNewClass(integer4 scemajorVersion,
  82.         integer4 sceminorVersion);
  83. #pragma linkage(UnderGraduateStudentNewClass, system)
  84.  
  85. /*
  86.  * Declare the class data structure
  87.  */
  88. SOMEXTERN struct UnderGraduateStudentClassDataStructure {
  89.     SOMAny *classObject;
  90.     somMToken setUpUnderGraduateStudent;
  91. } UnderGraduateStudentClassData;
  92.  
  93. /*
  94.  * Declare the C specific class data structure
  95.  */
  96. SOMEXTERN struct UnderGraduateStudentCClassDataStructure {
  97.     somMethodTab *parentMtab;
  98.     somDToken instanceDataToken;
  99. } UnderGraduateStudentCClassData;
  100.  
  101. #endif       /* UNDRGRAD_h */
  102.