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/undgrad.c

47 lines
1.4 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_undgrad_Source
#define SOM_Module_undgrad_Source
#endif
#define UnderGraduateStudent_Class_Source
#include "undgrad.ih"
#include <stdio.h>
#include <string.h>
SOM_Scope void SOMLINK printStudentInfo(UnderGraduateStudent *somSelf)
{
UnderGraduateStudentData *somThis = UnderGraduateStudentGetData(somSelf);
UnderGraduateStudentMethodDebug("UnderGraduateStudent","printStudentInfo");
UnderGraduateStudent_parent_Student_printStudentInfo(somSelf);
printf(" Grad Date : %s\n", _date);
}
SOM_Scope char* SOMLINK getStudentType(UnderGraduateStudent *somSelf)
{
static char *type = "Undergraduate";
UnderGraduateStudentData *somThis = UnderGraduateStudentGetData(somSelf);
UnderGraduateStudentMethodDebug("UnderGraduateStudent","getStudentType");
return type;
}
SOM_Scope void SOMLINK setUpUnderGraduateStudent(UnderGraduateStudent *somSelf,
char *id, char *name,
char *date)
{
UnderGraduateStudentData *somThis = UnderGraduateStudentGetData(somSelf);
UnderGraduateStudentMethodDebug("UnderGraduateStudent","setUpUnderGraduateStudent");
_setUpStudent(somSelf, id, name);
strcpy(_date, date);
}