This repository has been archived on 2024-12-16. You can view files and clone it, but cannot push or open issues or pull requests.
CodeBlocksPortable/WATCOM/samples/os2/som/classes/graduate.c

49 lines
1.3 KiB
C

/*
* This file was generated by the SOM Compiler and Emitter Framework.
* Generated using template emitter:
* SOM Emitter emitctm: 2.23.1.9
*/
#ifndef SOM_Module_graduate_Source
#define SOM_Module_graduate_Source
#endif
#define GraduateStudent_Class_Source
#include "graduate.ih"
#include <stdio.h>
#include <string.h>
SOM_Scope void SOMLINK printStudentInfo(GraduateStudent *somSelf)
{
GraduateStudentData *somThis = GraduateStudentGetData(somSelf);
GraduateStudentMethodDebug("GraduateStudent","printStudentInfo");
GraduateStudent_parent_Student_printStudentInfo(somSelf);
printf(" Thesis : %s\n", _thesis);
printf(" Degree : %s\n", _degree);
}
SOM_Scope char* SOMLINK getStudentType(GraduateStudent *somSelf)
{
static char *type = "Graduate";
GraduateStudentMethodDebug("GraduateStudent","getStudentType");
return type;
}
SOM_Scope void SOMLINK setUpGraduateStudent(GraduateStudent *somSelf,
char *id, char *name,
char *thesis, char *degree)
{
GraduateStudentData *somThis = GraduateStudentGetData(somSelf);
GraduateStudentMethodDebug("GraduateStudent","setUpGraduateStudent");
_setUpStudent(somSelf, id, name);
strcpy(_thesis, thesis);
strcpy(_degree, degree);
}