home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / WPSDEM.ZIP / CMBSTDNT / GRADUATE.C < prev    next >
Text File  |  1992-04-16  |  1KB  |  45 lines

  1.  
  2. /*
  3.  * This file was generated by the SOM Compiler.
  4.  * FileName: graduate.c.
  5.  * Generated using:
  6.  *     SOM Precompiler spc: 1.22
  7.  *     SOM Emitter emitc: 1.24
  8.  */
  9.  
  10. #define GraduateStudent_Class_Source
  11. #include "graduate.ih"
  12.  
  13. SOM_Scope void   SOMLINK printStudentInfo(GraduateStudent *somSelf)
  14. {
  15.     GraduateStudentData *somThis = GraduateStudentGetData(somSelf);
  16.     GraduateStudentMethodDebug("GraduateStudent","printStudentInfo");
  17.  
  18.     parent_printStudentInfo(somSelf);
  19.     printf( "             Thesis   : %s\n", _thesis );
  20.     printf( "             Degree   : %s\n", _degree );
  21. }
  22.  
  23. SOM_Scope char *  SOMLINK getStudentType(GraduateStudent *somSelf)
  24. {
  25.     static char *type = "Graduate";
  26.     GraduateStudentData *somThis = GraduateStudentGetData(somSelf);
  27.     GraduateStudentMethodDebug("GraduateStudent","getStudentType");
  28.  
  29.     return type;
  30. }
  31.  
  32. SOM_Scope void   SOMLINK setUpGraduateStudent(GraduateStudent *somSelf,
  33.                 char *id,
  34.                 char *name,
  35.                 char *thesis,
  36.                 char *degree)
  37. {
  38.     GraduateStudentData *somThis = GraduateStudentGetData(somSelf);
  39.     GraduateStudentMethodDebug("GraduateStudent","setUpGraduateStudent");
  40.  
  41.     _setUpStudent( somSelf, id, name );   // call base class initializer first
  42.     strcpy( _thesis, thesis );
  43.     strcpy( _degree, degree );
  44. }
  45.