 
#ifndef eosapp_DEFINED
#define eosapp_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 eosapp.ch and will be
 * overwritten.  Make changes to eosapp.ch instead.
 */ 
 
#ifndef class_StaticInfoOnly
/* 
 * The following information was copied, as-is, from eosapp.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>

#include "eosapp.h"







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

 
 
#ifndef class_StaticInfoOnly
/* 
 * Data structure for eosapp 
 */ 
struct eosapp { 
    union {
	struct basicobject_methods *eosapp_methods;
	struct application application;
    } header;
  struct eosapp_fileList *files,**fileLink;
  struct buffer *errorBuffer;
  char *defaultObject;

};

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

#endif /* class_StaticInfoOnly */

#ifndef class_StaticInfoOnly

#ifndef eosapp_PROGRAMMERVERSION
#define eosapp_PROGRAMMERVERSION 1
#endif /* eosapp_PROGRAMMERVERSION */

#ifdef eosapp_VERSION
#undef eosapp_VERSION
#endif /* eosapp_VERSION */
#define eosapp_VERSION ((((eosapp_PROGRAMMERVERSION << 16) ^ (7 << 8) ^ sizeof(struct eosapp)) & 0x7ffff) + 0x80000 + (1 << 20))


#endif /* class_StaticInfoOnly */
#define eosapp_StaticLoadOnlyThisClass()  \
{ extern struct classinfo *eosapp__GetClassInfo(); \
 extern struct classheader *eosapp_classheader_StaticExport; \
  (void) class_EnterInfo(NULL, eosapp_classheader_StaticExport->name, eosapp__GetClassInfo, NULL, eosapp_classheader_StaticExport->namekey); } 
 
#define eosapp_StaticLoad()  \
    { \
    application_StaticLoad(); \
    eosapp_StaticLoadOnlyThisClass();  \
    } 
 
#define eosapp_StaticEntry  {eosapp_StaticLoad()} 
 
#ifndef class_StaticInfoOnly
static struct classheader eosapp_classheader = {
    eosapp_VERSION,
    "eosapp",
    "eosapp",
    (struct basicobject_methods *) &class_RoutineStruct,
};

#define eosapp_CLASSPROCEDURES (eosapp_classheader.classprocedures)
int eosapp_classref_;
#endif /* class_StaticInfoOnly */

#endif /* eosapp_DEFINED */

#if !defined(eosapp_ROUTINESDEFINED) && !defined(dontDefineRoutinesFor_eosapp) && !defined(class_StaticEntriesOnly)
#define eosapp_ROUTINESDEFINED

#define eosapp_ParseArgs(self,argc,argv) \
    ((* ((boolean (*)())((self)->header.eosapp_methods->routines[0]))) (self,argc,argv))
#define eosapp_ReadInitFile(self) \
    ((* ((void (*)())((self)->header.eosapp_methods->routines[1]))) (self))
#define eosapp_Start(self) \
    ((* ((boolean (*)())((self)->header.eosapp_methods->routines[2]))) (self))
#define eosapp_Run(self) \
    ((* ((int (*)())((self)->header.eosapp_methods->routines[3]))) (self))
#define eosapp_Stop(self) \
    ((* ((void (*)())((self)->header.eosapp_methods->routines[4]))) (self))
#define eosapp_Fork(self) \
    ((* ((boolean (*)())((self)->header.eosapp_methods->routines[5]))) (self))
#define eosapp_PrintVersionNumber(self) \
    ((* ((void (*)())((self)->header.eosapp_methods->routines[6]))) (self))
#define eosapp_SetFork(self,do) \
 ((&(self)->header.application)->fork=(do))
#define eosapp_GetFork(self) \
 ((&(self)->header.application)->fork)
#define eosapp_SetName(self,str) \
 ((&(self)->header.application)->name=(str))
#define eosapp_GetName(self) \
 ((&(self)->header.application)->name)
#define eosapp_SetForceLoad(self,f) \
 (((&(self)->header.application))->forceload=(f))
#define eosapp_GetForceLoad(self) \
 (((&(self)->header.application))->forceload)
#define eosapp_SetErrorProc(self,p) \
 (((&(self)->header.application))->errorProc=(p))
#define eosapp_GetErrorProc(self) \
 (((&(self)->header.application))->errorProc)
#define eosapp_SetErrorRock(self,r) \
 (((&(self)->header.application))->errorRock=(r))
#define eosapp_GetErrorRock(self) \
 (((&(self)->header.application))->errorRock)
#define eosapp_SetMajorVersion(self,mv) \
 (((&(self)->header.application))->majorversion=(mv))
#define eosapp_GetMajorVersion(self) \
 (((&(self)->header.application))->majorversion)
#define eosapp_SetMinorVersion(self,mv) \
 (((&(self)->header.application))->minorversion=(mv))
#define eosapp_GetMinorVersion(self) \
 (((&(self)->header.application))->minorversion)
#define eosapp_SetPrintVersionFlag(self,TorF) \
 (((&(self)->header.application))->printversioninfo=(TorF))
#define eosapp_GetPrintVersionFlag(self) \
 (((&(self)->header.application))->printversioninfo)
#define eosapp_SetIconic(self,val) \
 (((&(self)->header.application))->iconic=(val))
#define eosapp_GetIconic(self) \
 (((&(self)->header.application))->iconic)

#define eosapp_NewFromObject(self) \
    ((* ((struct eosapp * (*)())((self)->header.eosapp_methods->info->procs->routines[0]))) (&eosapp_classheader, (self)->header.eosapp_methods->info->versionnumber))
#define eosapp_New() \
    (*((struct eosapp * (*)()) (eosapp_CLASSPROCEDURES->routines[0])))(&eosapp_classheader,eosapp_VERSION)
#define eosapp_Initialize(self) \
    (*((void (*)()) (eosapp_CLASSPROCEDURES->routines[2])))(&eosapp_classheader,self, eosapp_VERSION)

#define eosapp_Destroy(self) \
    ((* ((void (*)()) ((self)->header.eosapp_methods->info->procs->routines[1]))) (&eosapp_classheader, self))
#define eosapp_Finalize(self) \
    (*((void (*)()) (eosapp_CLASSPROCEDURES->routines[3])))(&eosapp_classheader,self)

#define eosapp_InitializeObject(self) \
    (*((boolean (*)()) (eosapp_CLASSPROCEDURES->routines[5])))(&eosapp_classheader,self)


#endif /* !defined(eosapp_ROUTINESDEFINED) && !defined(dontDefineRoutinesFor_eosapp ) && !defined(class_StaticEntriesOnly)*/

