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

/*****************************************\

  Chart Programming Guide --  Example #1

\*****************************************/






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

 
 
#ifndef class_StaticInfoOnly
/* 
 * Data structure for chartx1app 
 */ 
struct chartx1app { 
    union {
	struct basicobject_methods *chartx1app_methods;
	struct application application;
    } header;
    struct chart			   *chart_data_object;
    struct chartv			   *chart_view_object;
    struct im				   *im;
    struct frame			   *frame;
  
};

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

#endif /* class_StaticInfoOnly */

#ifndef class_StaticInfoOnly

#ifndef chartx1app_PROGRAMMERVERSION
#define chartx1app_PROGRAMMERVERSION 1
#endif /* chartx1app_PROGRAMMERVERSION */

#ifdef chartx1app_VERSION
#undef chartx1app_VERSION
#endif /* chartx1app_VERSION */
#define chartx1app_VERSION ((((chartx1app_PROGRAMMERVERSION << 16) ^ (7 << 8) ^ sizeof(struct chartx1app)) & 0x7ffff) + 0x80000 + (0 << 20))


#endif /* class_StaticInfoOnly */
#define chartx1app_StaticLoadOnlyThisClass()  \
{ extern struct classinfo *chartx1app__GetClassInfo(); \
 extern struct classheader *chartx1a_classheader_StaticExport; \
  (void) class_EnterInfo(NULL, chartx1a_classheader_StaticExport->name, chartx1app__GetClassInfo, NULL, chartx1a_classheader_StaticExport->namekey); } 
 
#define chartx1app_StaticLoad()  \
    { \
    application_StaticLoad(); \
    chartx1app_StaticLoadOnlyThisClass();  \
    } 
 
#define chartx1app_StaticEntry  {chartx1app_StaticLoad()} 
 
#define chartx1a_StaticEntry  {chartx1app_StaticLoad()} 
 
#ifndef class_StaticInfoOnly
static struct classheader chartx1app_classheader = {
    chartx1app_VERSION,
    "chartx1app",
    "chartx1a",
    (struct basicobject_methods *) &class_RoutineStruct,
};

#define chartx1app_CLASSPROCEDURES (chartx1app_classheader.classprocedures)
int chartx1a_classref_;
#endif /* class_StaticInfoOnly */

#endif /* chartx1app_DEFINED */

#if !defined(chartx1app_ROUTINESDEFINED) && !defined(dontDefineRoutinesFor_chartx1app) && !defined(class_StaticEntriesOnly)
#define chartx1app_ROUTINESDEFINED

#define chartx1app_ParseArgs(self,argc,argv) \
    ((* ((boolean (*)())((self)->header.chartx1app_methods->routines[0]))) (self,argc,argv))
#define chartx1app_ReadInitFile(self) \
    ((* ((void (*)())((self)->header.chartx1app_methods->routines[1]))) (self))
#define chartx1app_Start(self) \
    ((* ((boolean (*)())((self)->header.chartx1app_methods->routines[2]))) (self))
#define chartx1app_Run(self) \
    ((* ((int (*)())((self)->header.chartx1app_methods->routines[3]))) (self))
#define chartx1app_Stop(self) \
    ((* ((void (*)())((self)->header.chartx1app_methods->routines[4]))) (self))
#define chartx1app_Fork(self) \
    ((* ((boolean (*)())((self)->header.chartx1app_methods->routines[5]))) (self))
#define chartx1app_PrintVersionNumber(self) \
    ((* ((void (*)())((self)->header.chartx1app_methods->routines[6]))) (self))
#define chartx1app_SetFork(self,do) \
 ((&(self)->header.application)->fork=(do))
#define chartx1app_GetFork(self) \
 ((&(self)->header.application)->fork)
#define chartx1app_SetName(self,str) \
 ((&(self)->header.application)->name=(str))
#define chartx1app_GetName(self) \
 ((&(self)->header.application)->name)
#define chartx1app_SetForceLoad(self,f) \
 (((&(self)->header.application))->forceload=(f))
#define chartx1app_GetForceLoad(self) \
 (((&(self)->header.application))->forceload)
#define chartx1app_SetErrorProc(self,p) \
 (((&(self)->header.application))->errorProc=(p))
#define chartx1app_GetErrorProc(self) \
 (((&(self)->header.application))->errorProc)
#define chartx1app_SetErrorRock(self,r) \
 (((&(self)->header.application))->errorRock=(r))
#define chartx1app_GetErrorRock(self) \
 (((&(self)->header.application))->errorRock)
#define chartx1app_SetMajorVersion(self,mv) \
 (((&(self)->header.application))->majorversion=(mv))
#define chartx1app_GetMajorVersion(self) \
 (((&(self)->header.application))->majorversion)
#define chartx1app_SetMinorVersion(self,mv) \
 (((&(self)->header.application))->minorversion=(mv))
#define chartx1app_GetMinorVersion(self) \
 (((&(self)->header.application))->minorversion)
#define chartx1app_SetPrintVersionFlag(self,TorF) \
 (((&(self)->header.application))->printversioninfo=(TorF))
#define chartx1app_GetPrintVersionFlag(self) \
 (((&(self)->header.application))->printversioninfo)
#define chartx1app_SetIconic(self,val) \
 (((&(self)->header.application))->iconic=(val))
#define chartx1app_GetIconic(self) \
 (((&(self)->header.application))->iconic)

#define chartx1app_NewFromObject(self) \
    ((* ((struct chartx1app * (*)())((self)->header.chartx1app_methods->info->procs->routines[0]))) (&chartx1app_classheader, (self)->header.chartx1app_methods->info->versionnumber))
#define chartx1app_New() \
    (*((struct chartx1app * (*)()) (chartx1app_CLASSPROCEDURES->routines[0])))(&chartx1app_classheader,chartx1app_VERSION)
#define chartx1app_Initialize(self) \
    (*((void (*)()) (chartx1app_CLASSPROCEDURES->routines[2])))(&chartx1app_classheader,self, chartx1app_VERSION)

#define chartx1app_Destroy(self) \
    ((* ((void (*)()) ((self)->header.chartx1app_methods->info->procs->routines[1]))) (&chartx1app_classheader, self))
#define chartx1app_Finalize(self) \
    (*((void (*)()) (chartx1app_CLASSPROCEDURES->routines[3])))(&chartx1app_classheader,self)



#endif /* !defined(chartx1app_ROUTINESDEFINED) && !defined(dontDefineRoutinesFor_chartx1app ) && !defined(class_StaticEntriesOnly)*/

