 
#ifndef bp_DEFINED
#define bp_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 bp.ch and will be
 * overwritten.  Make changes to bp.ch instead.
 */ 
 
#ifndef class_StaticInfoOnly
/* 
 * The following information was copied, as-is, from bp.ch.
 */ 
 
/* ********************************************************************** *\
 *         Copyright IBM Corporation 1988,1991 - All Rights Reserved      *
 *        For full copyright information see:'andrew/config/COPYRITE'     *
\* ********************************************************************** */
 
/* $Header: /afs/cs.cmu.edu/project/atk-dist/6.2/atk/text/RCS/bp.ch,v 1.3 1991/09/12 19:51:22 bobg R6tape $ */

#if !defined(lint) && !defined(LOCORE) && defined(RCS_HDRS)
static char *rcsid_bp_ch = "$Header: /afs/cs.cmu.edu/project/atk-dist/6.2/atk/text/RCS/bp.ch,v 1.3 1991/09/12 19:51:22 bobg R6tape $ ";
#endif







/* 
 * End of information copied from bp.ch.
 */ 
 
#endif /* class_StaticInfoOnly *//* 
 * Include the superclass information
 */ 
#define dontDefineRoutinesFor_dataobject
#include "dataobj.ih"
#undef dontDefineRoutinesFor_dataobject

 
 
#ifndef class_StaticInfoOnly
/* 
 * Data structure for bp 
 */ 
struct bp { 
    union {
	struct basicobject_methods *bp_methods;
	struct traced traced;
	struct observable observable;
	struct dataobject dataobject;
    } header;
};

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

#endif /* class_StaticInfoOnly */

#ifndef class_StaticInfoOnly

#ifndef bp_PROGRAMMERVERSION
#define bp_PROGRAMMERVERSION 1
#endif /* bp_PROGRAMMERVERSION */

#ifdef bp_VERSION
#undef bp_VERSION
#endif /* bp_VERSION */
#define bp_VERSION ((((bp_PROGRAMMERVERSION << 16) ^ (23 << 8) ^ sizeof(struct bp)) & 0x7ffff) + 0x80000 + (0 << 20))


#endif /* class_StaticInfoOnly */
#define bp_StaticLoadOnlyThisClass()  \
{ extern struct classinfo *bp__GetClassInfo(); \
 extern struct classheader *bp_classheader_StaticExport; \
  (void) class_EnterInfo(NULL, bp_classheader_StaticExport->name, bp__GetClassInfo, NULL, bp_classheader_StaticExport->namekey); } 
 
#define bp_StaticLoad()  \
    { \
    dataobject_StaticLoad(); \
    bp_StaticLoadOnlyThisClass();  \
    } 
 
#define bp_StaticEntry  {bp_StaticLoad()} 
 
#ifndef class_StaticInfoOnly
static struct classheader bp_classheader = {
    bp_VERSION,
    "bp",
    "bp",
    (struct basicobject_methods *) &class_RoutineStruct,
};

#define bp_CLASSPROCEDURES (bp_classheader.classprocedures)
int bp_classref_;
#endif /* class_StaticInfoOnly */

#endif /* bp_DEFINED */

#if !defined(bp_ROUTINESDEFINED) && !defined(dontDefineRoutinesFor_bp) && !defined(class_StaticEntriesOnly)
#define bp_ROUTINESDEFINED

#define bp_Reference(self) \
 (((&(self)->header.traced))->refcount++)
#define bp_UnReference(self) \
 ((((&(self)->header.traced))->refcount>0)?((&(self)->header.traced))->refcount--:0)
#define bp_ReferenceCount(self) \
 (((&(self)->header.traced))->refcount)
#define bp_AddObserver(self,observer) \
    ((* ((void (*)())((self)->header.bp_methods->routines[0]))) (self,observer))
#define bp_IsObserver(self,observer) \
    ((* ((boolean (*)())((self)->header.bp_methods->routines[1]))) (self,observer))
#define bp_RemoveObserver(self,observer) \
    ((* ((void (*)())((self)->header.bp_methods->routines[2]))) (self,observer))
#define bp_NotifyObservers(self,value) \
    ((* ((void (*)())((self)->header.bp_methods->routines[3]))) (self,value))
#define bp_ObservedChanged(self,changed,value) \
    ((* ((void (*)())((self)->header.bp_methods->routines[4]))) (self,changed,value))
#define bp_AddRecipient(self,trigger,rcvr,func,rock) \
    ((* ((boolean (*)())((self)->header.bp_methods->routines[5]))) (self,trigger,rcvr,func,rock))
#define bp_DeleteRecipient(self,trigger,rcvr) \
    ((* ((void (*)())((self)->header.bp_methods->routines[6]))) (self,trigger,rcvr))
#define bp_PullTrigger(self,trigger) \
    ((* ((void (*)())((self)->header.bp_methods->routines[7]))) (self,trigger))
#define bp_DisableTrigger(self,trigger) \
    ((* ((void (*)())((self)->header.bp_methods->routines[8]))) (self,trigger))
#define bp_EnableTrigger(self,trigger) \
    ((* ((void (*)())((self)->header.bp_methods->routines[9]))) (self,trigger))
#define bp_DisableCount(self,trigger) \
    ((* ((long (*)())((self)->header.bp_methods->routines[10]))) (self,trigger))
#define bp_Read(self,file,id) \
    ((* ((long (*)())((self)->header.bp_methods->routines[11]))) (self,file,id))
#define bp_Write(self,file,writeid,level) \
    ((* ((long (*)())((self)->header.bp_methods->routines[12]))) (self,file,writeid,level))
#define bp_ReadOtherFormat(self,file,fmt,encoding,description) \
    ((* ((boolean (*)())((self)->header.bp_methods->routines[13]))) (self,file,fmt,encoding,description))
#define bp_WriteOtherFormat(self,file,writeid,level,usagetype,boundary) \
    ((* ((long (*)())((self)->header.bp_methods->routines[14]))) (self,file,writeid,level,usagetype,boundary))
#define bp_GetModified(self) \
    ((* ((long (*)())((self)->header.bp_methods->routines[15]))) (self))
#define bp_SetModified(self) \
    ((* ((void (*)())((self)->header.bp_methods->routines[16]))) (self))
#define bp_ViewName(self) \
    ((* ((char * (*)())((self)->header.bp_methods->routines[17]))) (self))
#define bp_SetAttributes(self,attributes) \
    ((* ((void (*)())((self)->header.bp_methods->routines[18]))) (self,attributes))
#define bp_Put(self,property,type,rock) \
    ((* ((void (*)())((self)->header.bp_methods->routines[19]))) (self,property,type,rock))
#define bp_Get(self,property,type,rock) \
    ((* ((short (*)())((self)->header.bp_methods->routines[20]))) (self,property,type,rock))
#define bp_ListCurrentViews(self,array,size) \
    ((* ((int (*)())((self)->header.bp_methods->routines[21]))) (self,array,size))
#define bp_RestoreModified(self,oldmodified) \
    ((* ((void (*)())((self)->header.bp_methods->routines[22]))) (self,oldmodified))
#define bp_UniqueID(self) \
 ((long)((&(self)->header.dataobject)))
#define bp_GetWriteID(self) \
 ( ((&(self)->header.dataobject))->writeID )
#define bp_SetWriteID(self,newValue) \
 ( (((&(self)->header.dataobject))->writeID) = (newValue) )
#define bp_GetID(self) \
      ( ((&(self)->header.dataobject))->id )
#define bp_SetID(self,newValue) \
      ( (((&(self)->header.dataobject))->id) = (newValue) )

#define bp_NewFromObject(self) \
    ((* ((struct bp * (*)())((self)->header.bp_methods->info->procs->routines[0]))) (&bp_classheader, (self)->header.bp_methods->info->versionnumber))
#define bp_New() \
    (*((struct bp * (*)()) (bp_CLASSPROCEDURES->routines[0])))(&bp_classheader,bp_VERSION)
#define bp_Initialize(self) \
    (*((void (*)()) (bp_CLASSPROCEDURES->routines[2])))(&bp_classheader,self, bp_VERSION)

#define bp_Destroy(self) \
    ((* ((void (*)()) ((self)->header.bp_methods->info->procs->routines[1]))) (&bp_classheader, self))
#define bp_Finalize(self) \
    (*((void (*)()) (bp_CLASSPROCEDURES->routines[3])))(&bp_classheader,self)



#endif /* !defined(bp_ROUTINESDEFINED) && !defined(dontDefineRoutinesFor_bp ) && !defined(class_StaticEntriesOnly)*/

