/*
 *  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);
}

