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

/* $ACIS$ */

 


/*---------------------------------------------------------------------------*/
/*	MODULE: helpa.ch						     */
/*		Subclass of application, front-end for help.  Parses switches*/
/*		and creates a new help object.  Sets up a resident service   */
/*		on a socket to listen for new help connections.	             */
/*---------------------------------------------------------------------------*/







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

 
 
#ifndef class_StaticInfoOnly
/* 
 * Data structure for helpapp 
 */ 
struct helpapp { 
    union {
	struct basicobject_methods *helpapp_methods;
	struct application application;
    } header;
      short helpPort;
      struct im *im;
      struct frame *frame;
      struct help *helpobj;

};

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

#endif /* class_StaticInfoOnly */

#ifndef class_StaticInfoOnly

#ifndef helpapp_PROGRAMMERVERSION
#define helpapp_PROGRAMMERVERSION 1
#endif /* helpapp_PROGRAMMERVERSION */

#ifdef helpapp_VERSION
#undef helpapp_VERSION
#endif /* helpapp_VERSION */
#define helpapp_VERSION ((((helpapp_PROGRAMMERVERSION << 16) ^ (7 << 8) ^ sizeof(struct helpapp)) & 0x7ffff) + 0x80000 + (1 << 20))


#endif /* class_StaticInfoOnly */
#define helpapp_StaticLoadOnlyThisClass()  \
{ extern struct classinfo *helpapp__GetClassInfo(); \
 extern struct classheader *helpa_classheader_StaticExport; \
  (void) class_EnterInfo(NULL, helpa_classheader_StaticExport->name, helpapp__GetClassInfo, NULL, helpa_classheader_StaticExport->namekey); } 
 
#define helpapp_StaticLoad()  \
    { \
    application_StaticLoad(); \
    helpapp_StaticLoadOnlyThisClass();  \
    } 
 
#define helpapp_StaticEntry  {helpapp_StaticLoad()} 
 
#define helpa_StaticEntry  {helpapp_StaticLoad()} 
 
#ifndef class_StaticInfoOnly
static struct classheader helpapp_classheader = {
    helpapp_VERSION,
    "helpapp",
    "helpa",
    (struct basicobject_methods *) &class_RoutineStruct,
};

#define helpapp_CLASSPROCEDURES (helpapp_classheader.classprocedures)
int helpa_classref_;
#endif /* class_StaticInfoOnly */

#endif /* helpapp_DEFINED */

#if !defined(helpapp_ROUTINESDEFINED) && !defined(dontDefineRoutinesFor_helpapp) && !defined(class_StaticEntriesOnly)
#define helpapp_ROUTINESDEFINED

#define helpapp_ParseArgs(self,argc,argv) \
    ((* ((boolean (*)())((self)->header.helpapp_methods->routines[0]))) (self,argc,argv))
#define helpapp_ReadInitFile(self) \
    ((* ((void (*)())((self)->header.helpapp_methods->routines[1]))) (self))
#define helpapp_Start(self) \
    ((* ((boolean (*)())((self)->header.helpapp_methods->routines[2]))) (self))
#define helpapp_Run(self) \
    ((* ((int (*)())((self)->header.helpapp_methods->routines[3]))) (self))
#define helpapp_Stop(self) \
    ((* ((void (*)())((self)->header.helpapp_methods->routines[4]))) (self))
#define helpapp_Fork(self) \
    ((* ((boolean (*)())((self)->header.helpapp_methods->routines[5]))) (self))
#define helpapp_PrintVersionNumber(self) \
    ((* ((void (*)())((self)->header.helpapp_methods->routines[6]))) (self))
#define helpapp_SetFork(self,do) \
 ((&(self)->header.application)->fork=(do))
#define helpapp_GetFork(self) \
 ((&(self)->header.application)->fork)
#define helpapp_SetName(self,str) \
 ((&(self)->header.application)->name=(str))
#define helpapp_GetName(self) \
 ((&(self)->header.application)->name)
#define helpapp_SetForceLoad(self,f) \
 (((&(self)->header.application))->forceload=(f))
#define helpapp_GetForceLoad(self) \
 (((&(self)->header.application))->forceload)
#define helpapp_SetErrorProc(self,p) \
 (((&(self)->header.application))->errorProc=(p))
#define helpapp_GetErrorProc(self) \
 (((&(self)->header.application))->errorProc)
#define helpapp_SetErrorRock(self,r) \
 (((&(self)->header.application))->errorRock=(r))
#define helpapp_GetErrorRock(self) \
 (((&(self)->header.application))->errorRock)
#define helpapp_SetMajorVersion(self,mv) \
 (((&(self)->header.application))->majorversion=(mv))
#define helpapp_GetMajorVersion(self) \
 (((&(self)->header.application))->majorversion)
#define helpapp_SetMinorVersion(self,mv) \
 (((&(self)->header.application))->minorversion=(mv))
#define helpapp_GetMinorVersion(self) \
 (((&(self)->header.application))->minorversion)
#define helpapp_SetPrintVersionFlag(self,TorF) \
 (((&(self)->header.application))->printversioninfo=(TorF))
#define helpapp_GetPrintVersionFlag(self) \
 (((&(self)->header.application))->printversioninfo)
#define helpapp_SetIconic(self,val) \
 (((&(self)->header.application))->iconic=(val))
#define helpapp_GetIconic(self) \
 (((&(self)->header.application))->iconic)

#define helpapp_NewFromObject(self) \
    ((* ((struct helpapp * (*)())((self)->header.helpapp_methods->info->procs->routines[0]))) (&helpapp_classheader, (self)->header.helpapp_methods->info->versionnumber))
#define helpapp_New() \
    (*((struct helpapp * (*)()) (helpapp_CLASSPROCEDURES->routines[0])))(&helpapp_classheader,helpapp_VERSION)
#define helpapp_Initialize(self) \
    (*((void (*)()) (helpapp_CLASSPROCEDURES->routines[2])))(&helpapp_classheader,self, helpapp_VERSION)

#define helpapp_Destroy(self) \
    ((* ((void (*)()) ((self)->header.helpapp_methods->info->procs->routines[1]))) (&helpapp_classheader, self))
#define helpapp_Finalize(self) \
    (*((void (*)()) (helpapp_CLASSPROCEDURES->routines[3])))(&helpapp_classheader,self)

#define helpapp_InitializeObject(self) \
    (*((boolean (*)()) (helpapp_CLASSPROCEDURES->routines[5])))(&helpapp_classheader,self)


#endif /* !defined(helpapp_ROUTINESDEFINED) && !defined(dontDefineRoutinesFor_helpapp ) && !defined(class_StaticEntriesOnly)*/

