 
#ifndef gradeapp_DEFINED
#define gradeapp_DEFINED 1
 
#ifndef class_DEFINED
#include <class.h>
#endif /* class_DEFINED */
/* 
 * This file was generated by the Andrew class system preprocessor.
 * Don't make changes to this file as it is created from gradeapp.ch and will be
 * overwritten.  Make changes to gradeapp.ch instead.
 */ 
 
#ifndef class_StaticInfoOnly
/* 
 * The following information was copied, as-is, from gradeapp.ch.
 */ 
 
/* $Author: rr2b $ */

/*
	$Disclaimer: 
*Permission to use, copy, modify, and distribute this software and its 
*documentation for any purpose is hereby granted without fee, 
*provided that the above copyright notice appear in all copies and that 
*both that copyright notice, this permission notice, and the following 
*disclaimer appear in supporting documentation, and that the names of 
*IBM, Carnegie Mellon University, and other copyright holders, not be 
*used in advertising or publicity pertaining to distribution of the software 
*without specific, written prior permission.
*
*IBM, CARNEGIE MELLON UNIVERSITY, AND THE OTHER COPYRIGHT HOLDERS 
*DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING 
*ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS.  IN NO EVENT 
*SHALL IBM, CARNEGIE MELLON UNIVERSITY, OR ANY OTHER COPYRIGHT HOLDER 
*BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY 
*DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, 
*WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS 
*ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE 
*OF THIS SOFTWARE.
* $
*/


 

/* ************************************************************
 *  Copyright (C) 1989, 1990, 1991
 *  by the Massachusetts Institute of Technology
 *  For full copyright information see:'mit-copyright.h'     *
 *************************************************************/

#include <mit-copyright.h>







/* 
 * End of information copied from gradeapp.ch.
 */ 
 
#endif /* class_StaticInfoOnly *//* 
 * Include the superclass information
 */ 
#define dontDefineRoutinesFor_eosapp
#include "eosapp.ih"
#undef dontDefineRoutinesFor_eosapp

 
 
#ifndef class_StaticInfoOnly
/* 
 * Data structure for gradeapp 
 */ 
struct gradeapp { 
    union {
	struct basicobject_methods *gradeapp_methods;
	struct application application;
	struct eosapp eosapp;
    } header;
};

 
/* 
 * End of data structure for gradeapp.
 */ 
 

#endif /* class_StaticInfoOnly */

#ifndef class_StaticInfoOnly

#ifndef gradeapp_PROGRAMMERVERSION
#define gradeapp_PROGRAMMERVERSION 1
#endif /* gradeapp_PROGRAMMERVERSION */

#ifdef gradeapp_VERSION
#undef gradeapp_VERSION
#endif /* gradeapp_VERSION */
#define gradeapp_VERSION ((((gradeapp_PROGRAMMERVERSION << 16) ^ (7 << 8) ^ sizeof(struct gradeapp)) & 0x7ffff) + 0x80000 + (1 << 20))


#endif /* class_StaticInfoOnly */
#define gradeapp_StaticLoadOnlyThisClass()  \
{ extern struct classinfo *gradeapp__GetClassInfo(); \
 extern struct classheader *gradeapp_classheader_StaticExport; \
  (void) class_EnterInfo(NULL, gradeapp_classheader_StaticExport->name, gradeapp__GetClassInfo, NULL, gradeapp_classheader_StaticExport->namekey); } 
 
#define gradeapp_StaticLoad()  \
    { \
    eosapp_StaticLoad(); \
    gradeapp_StaticLoadOnlyThisClass();  \
    } 
 
#define gradeapp_StaticEntry  {gradeapp_StaticLoad()} 
 
#ifndef class_StaticInfoOnly
static struct classheader gradeapp_classheader = {
    gradeapp_VERSION,
    "gradeapp",
    "gradeapp",
    (struct basicobject_methods *) &class_RoutineStruct,
};

#define gradeapp_CLASSPROCEDURES (gradeapp_classheader.classprocedures)
int gradeapp_classref_;
#endif /* class_StaticInfoOnly */

#endif /* gradeapp_DEFINED */

#if !defined(gradeapp_ROUTINESDEFINED) && !defined(dontDefineRoutinesFor_gradeapp) && !defined(class_StaticEntriesOnly)
#define gradeapp_ROUTINESDEFINED

#define gradeapp_ParseArgs(self,argc,argv) \
    ((* ((boolean (*)())((self)->header.gradeapp_methods->routines[0]))) (self,argc,argv))
#define gradeapp_ReadInitFile(self) \
    ((* ((void (*)())((self)->header.gradeapp_methods->routines[1]))) (self))
#define gradeapp_Start(self) \
    ((* ((boolean (*)())((self)->header.gradeapp_methods->routines[2]))) (self))
#define gradeapp_Run(self) \
    ((* ((int (*)())((self)->header.gradeapp_methods->routines[3]))) (self))
#define gradeapp_Stop(self) \
    ((* ((void (*)())((self)->header.gradeapp_methods->routines[4]))) (self))
#define gradeapp_Fork(self) \
    ((* ((boolean (*)())((self)->header.gradeapp_methods->routines[5]))) (self))
#define gradeapp_PrintVersionNumber(self) \
    ((* ((void (*)())((self)->header.gradeapp_methods->routines[6]))) (self))
#define gradeapp_SetFork(self,do) \
 ((&(self)->header.application)->fork=(do))
#define gradeapp_GetFork(self) \
 ((&(self)->header.application)->fork)
#define gradeapp_SetName(self,str) \
 ((&(self)->header.application)->name=(str))
#define gradeapp_GetName(self) \
 ((&(self)->header.application)->name)
#define gradeapp_SetForceLoad(self,f) \
 (((&(self)->header.application))->forceload=(f))
#define gradeapp_GetForceLoad(self) \
 (((&(self)->header.application))->forceload)
#define gradeapp_SetErrorProc(self,p) \
 (((&(self)->header.application))->errorProc=(p))
#define gradeapp_GetErrorProc(self) \
 (((&(self)->header.application))->errorProc)
#define gradeapp_SetErrorRock(self,r) \
 (((&(self)->header.application))->errorRock=(r))
#define gradeapp_GetErrorRock(self) \
 (((&(self)->header.application))->errorRock)
#define gradeapp_SetMajorVersion(self,mv) \
 (((&(self)->header.application))->majorversion=(mv))
#define gradeapp_GetMajorVersion(self) \
 (((&(self)->header.application))->majorversion)
#define gradeapp_SetMinorVersion(self,mv) \
 (((&(self)->header.application))->minorversion=(mv))
#define gradeapp_GetMinorVersion(self) \
 (((&(self)->header.application))->minorversion)
#define gradeapp_SetPrintVersionFlag(self,TorF) \
 (((&(self)->header.application))->printversioninfo=(TorF))
#define gradeapp_GetPrintVersionFlag(self) \
 (((&(self)->header.application))->printversioninfo)
#define gradeapp_SetIconic(self,val) \
 (((&(self)->header.application))->iconic=(val))
#define gradeapp_GetIconic(self) \
 (((&(self)->header.application))->iconic)

#define gradeapp_NewFromObject(self) \
    ((* ((struct gradeapp * (*)())((self)->header.gradeapp_methods->info->procs->routines[0]))) (&gradeapp_classheader, (self)->header.gradeapp_methods->info->versionnumber))
#define gradeapp_New() \
    (*((struct gradeapp * (*)()) (gradeapp_CLASSPROCEDURES->routines[0])))(&gradeapp_classheader,gradeapp_VERSION)
#define gradeapp_Initialize(self) \
    (*((void (*)()) (gradeapp_CLASSPROCEDURES->routines[2])))(&gradeapp_classheader,self, gradeapp_VERSION)

#define gradeapp_Destroy(self) \
    ((* ((void (*)()) ((self)->header.gradeapp_methods->info->procs->routines[1]))) (&gradeapp_classheader, self))
#define gradeapp_Finalize(self) \
    (*((void (*)()) (gradeapp_CLASSPROCEDURES->routines[3])))(&gradeapp_classheader,self)

#define gradeapp_InitializeObject(self) \
    (*((boolean (*)()) (gradeapp_CLASSPROCEDURES->routines[5])))(&gradeapp_classheader,self)


#endif /* !defined(gradeapp_ROUTINESDEFINED) && !defined(dontDefineRoutinesFor_gradeapp ) && !defined(class_StaticEntriesOnly)*/

