 
#ifndef ezapp_DEFINED
#define ezapp_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 eza.ch and will be
 * overwritten.  Make changes to eza.ch instead.
 */ 
 
#ifndef class_StaticInfoOnly
/* 
 * The following information was copied, as-is, from eza.ch.
 */ 
 
/* ********************************************************************** *\
 *         Copyright IBM Corporation 1988,1991 - All Rights Reserved      *
 *        For full copyright information see:'andrew/config/COPYRITE'     *
\* ********************************************************************** */

/*
	$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.
* $
*/


 


struct ezapp_fileList {
    struct ezapp_fileList *next;
    char *filename;
    char *ObjectName;
    boolean newWindow;
    boolean readOnly;
    int	initLine;	/* new */
};






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

 
 
#ifndef class_StaticInfoOnly
/* 
 * Data structure for ezapp 
 */ 
struct ezapp { 
    union {
	struct basicobject_methods *ezapp_methods;
	struct application application;
    } header;
        struct ezapp_fileList *files,**fileLink;
        boolean initFile;
        boolean haveBufferInWindow;
        struct im *im;
        struct frame *frame;
        struct buffer *buffer;
        struct buffer *errorBuffer;
	char *defaultObject;

};

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

#endif /* class_StaticInfoOnly */

#ifndef class_StaticInfoOnly

#ifndef ezapp_PROGRAMMERVERSION
#define ezapp_PROGRAMMERVERSION 1
#endif /* ezapp_PROGRAMMERVERSION */

#ifdef ezapp_VERSION
#undef ezapp_VERSION
#endif /* ezapp_VERSION */
#define ezapp_VERSION ((((ezapp_PROGRAMMERVERSION << 16) ^ (7 << 8) ^ sizeof(struct ezapp)) & 0x7ffff) + 0x80000 + (1 << 20))


#endif /* class_StaticInfoOnly */
#define ezapp_StaticLoadOnlyThisClass()  \
{ extern struct classinfo *ezapp__GetClassInfo(); \
 extern struct classheader *eza_classheader_StaticExport; \
  (void) class_EnterInfo(NULL, eza_classheader_StaticExport->name, ezapp__GetClassInfo, NULL, eza_classheader_StaticExport->namekey); } 
 
#define ezapp_StaticLoad()  \
    { \
    application_StaticLoad(); \
    ezapp_StaticLoadOnlyThisClass();  \
    } 
 
#define ezapp_StaticEntry  {ezapp_StaticLoad()} 
 
#define eza_StaticEntry  {ezapp_StaticLoad()} 
 
#ifndef class_StaticInfoOnly
static struct classheader ezapp_classheader = {
    ezapp_VERSION,
    "ezapp",
    "eza",
    (struct basicobject_methods *) &class_RoutineStruct,
};

#define ezapp_CLASSPROCEDURES (ezapp_classheader.classprocedures)
int eza_classref_;
#endif /* class_StaticInfoOnly */

#endif /* ezapp_DEFINED */

#if !defined(ezapp_ROUTINESDEFINED) && !defined(dontDefineRoutinesFor_ezapp) && !defined(class_StaticEntriesOnly)
#define ezapp_ROUTINESDEFINED

#define ezapp_ParseArgs(self,argc,argv) \
    ((* ((boolean (*)())((self)->header.ezapp_methods->routines[0]))) (self,argc,argv))
#define ezapp_ReadInitFile(self) \
    ((* ((void (*)())((self)->header.ezapp_methods->routines[1]))) (self))
#define ezapp_Start(self) \
    ((* ((boolean (*)())((self)->header.ezapp_methods->routines[2]))) (self))
#define ezapp_Run(self) \
    ((* ((int (*)())((self)->header.ezapp_methods->routines[3]))) (self))
#define ezapp_Stop(self) \
    ((* ((void (*)())((self)->header.ezapp_methods->routines[4]))) (self))
#define ezapp_Fork(self) \
    ((* ((boolean (*)())((self)->header.ezapp_methods->routines[5]))) (self))
#define ezapp_PrintVersionNumber(self) \
    ((* ((void (*)())((self)->header.ezapp_methods->routines[6]))) (self))
#define ezapp_SetFork(self,do) \
 ((&(self)->header.application)->fork=(do))
#define ezapp_GetFork(self) \
 ((&(self)->header.application)->fork)
#define ezapp_SetName(self,str) \
 ((&(self)->header.application)->name=(str))
#define ezapp_GetName(self) \
 ((&(self)->header.application)->name)
#define ezapp_SetForceLoad(self,f) \
 (((&(self)->header.application))->forceload=(f))
#define ezapp_GetForceLoad(self) \
 (((&(self)->header.application))->forceload)
#define ezapp_SetErrorProc(self,p) \
 (((&(self)->header.application))->errorProc=(p))
#define ezapp_GetErrorProc(self) \
 (((&(self)->header.application))->errorProc)
#define ezapp_SetErrorRock(self,r) \
 (((&(self)->header.application))->errorRock=(r))
#define ezapp_GetErrorRock(self) \
 (((&(self)->header.application))->errorRock)
#define ezapp_SetMajorVersion(self,mv) \
 (((&(self)->header.application))->majorversion=(mv))
#define ezapp_GetMajorVersion(self) \
 (((&(self)->header.application))->majorversion)
#define ezapp_SetMinorVersion(self,mv) \
 (((&(self)->header.application))->minorversion=(mv))
#define ezapp_GetMinorVersion(self) \
 (((&(self)->header.application))->minorversion)
#define ezapp_SetPrintVersionFlag(self,TorF) \
 (((&(self)->header.application))->printversioninfo=(TorF))
#define ezapp_GetPrintVersionFlag(self) \
 (((&(self)->header.application))->printversioninfo)
#define ezapp_SetIconic(self,val) \
 (((&(self)->header.application))->iconic=(val))
#define ezapp_GetIconic(self) \
 (((&(self)->header.application))->iconic)

#define ezapp_NewFromObject(self) \
    ((* ((struct ezapp * (*)())((self)->header.ezapp_methods->info->procs->routines[0]))) (&ezapp_classheader, (self)->header.ezapp_methods->info->versionnumber))
#define ezapp_New() \
    (*((struct ezapp * (*)()) (ezapp_CLASSPROCEDURES->routines[0])))(&ezapp_classheader,ezapp_VERSION)
#define ezapp_Initialize(self) \
    (*((void (*)()) (ezapp_CLASSPROCEDURES->routines[2])))(&ezapp_classheader,self, ezapp_VERSION)

#define ezapp_Destroy(self) \
    ((* ((void (*)()) ((self)->header.ezapp_methods->info->procs->routines[1]))) (&ezapp_classheader, self))
#define ezapp_Finalize(self) \
    (*((void (*)()) (ezapp_CLASSPROCEDURES->routines[3])))(&ezapp_classheader,self)

#define ezapp_InitializeClass() \
    (*((boolean (*)()) (ezapp_CLASSPROCEDURES->routines[5])))(&ezapp_classheader)


#endif /* !defined(ezapp_ROUTINESDEFINED) && !defined(dontDefineRoutinesFor_ezapp ) && !defined(class_StaticEntriesOnly)*/

