 
#ifndef updateq_DEFINED
#define updateq_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 updateq.ch and will be
 * overwritten.  Make changes to updateq.ch instead.
 */ 
 
#ifndef class_StaticInfoOnly
/* 
 * The following information was copied, as-is, from updateq.ch.
 */ 
 
/* ********************************************************************** *\
 *         Copyright IBM Corporation 1988,1989 - 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 fp_queue {
  procedure fp;
  struct fp_queue * next;
};







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

 
 
#ifndef class_StaticInfoOnly
/* 
 * Data structure for updateq 
 */ 
struct updateq { 
    union {
	struct basicobject_methods *updateq_methods;
	struct traced traced;
	struct observable observable;
	struct dataobject dataobject;
    } header;
 struct view * view;
 struct fp_queue * queue;

};

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

#endif /* class_StaticInfoOnly */

#ifndef class_StaticInfoOnly

#ifndef updateq_PROGRAMMERVERSION
#define updateq_PROGRAMMERVERSION 1
#endif /* updateq_PROGRAMMERVERSION */

#ifdef updateq_VERSION
#undef updateq_VERSION
#endif /* updateq_VERSION */
#define updateq_VERSION ((((updateq_PROGRAMMERVERSION << 16) ^ (27 << 8) ^ sizeof(struct updateq)) & 0x7ffff) + 0x80000 + (0 << 20))


#endif /* class_StaticInfoOnly */
#define updateq_StaticLoadOnlyThisClass()  \
{ extern struct classinfo *updateq__GetClassInfo(); \
 extern struct classheader *updateq_classheader_StaticExport; \
  (void) class_EnterInfo(NULL, updateq_classheader_StaticExport->name, updateq__GetClassInfo, NULL, updateq_classheader_StaticExport->namekey); } 
 
#define updateq_StaticLoad()  \
    { \
    dataobject_StaticLoad(); \
    updateq_StaticLoadOnlyThisClass();  \
    } 
 
#define updateq_StaticEntry  {updateq_StaticLoad()} 
 
#ifndef class_StaticInfoOnly
static struct classheader updateq_classheader = {
    updateq_VERSION,
    "updateq",
    "updateq",
    (struct basicobject_methods *) &class_RoutineStruct,
};

#define updateq_CLASSPROCEDURES (updateq_classheader.classprocedures)
int updateq_classref_;
#endif /* class_StaticInfoOnly */

#endif /* updateq_DEFINED */

#if !defined(updateq_ROUTINESDEFINED) && !defined(dontDefineRoutinesFor_updateq) && !defined(class_StaticEntriesOnly)
#define updateq_ROUTINESDEFINED

#define updateq_Reference(self) \
 (((&(self)->header.traced))->refcount++)
#define updateq_UnReference(self) \
 ((((&(self)->header.traced))->refcount>0)?((&(self)->header.traced))->refcount--:0)
#define updateq_ReferenceCount(self) \
 (((&(self)->header.traced))->refcount)
#define updateq_AddObserver(self,observer) \
    ((* ((void (*)())((self)->header.updateq_methods->routines[0]))) (self,observer))
#define updateq_IsObserver(self,observer) \
    ((* ((boolean (*)())((self)->header.updateq_methods->routines[1]))) (self,observer))
#define updateq_RemoveObserver(self,observer) \
    ((* ((void (*)())((self)->header.updateq_methods->routines[2]))) (self,observer))
#define updateq_NotifyObservers(self,value) \
    ((* ((void (*)())((self)->header.updateq_methods->routines[3]))) (self,value))
#define updateq_ObservedChanged(self,changed,value) \
    ((* ((void (*)())((self)->header.updateq_methods->routines[4]))) (self,changed,value))
#define updateq_AddRecipient(self,trigger,rcvr,func,rock) \
    ((* ((boolean (*)())((self)->header.updateq_methods->routines[5]))) (self,trigger,rcvr,func,rock))
#define updateq_DeleteRecipient(self,trigger,rcvr) \
    ((* ((void (*)())((self)->header.updateq_methods->routines[6]))) (self,trigger,rcvr))
#define updateq_PullTrigger(self,trigger) \
    ((* ((void (*)())((self)->header.updateq_methods->routines[7]))) (self,trigger))
#define updateq_DisableTrigger(self,trigger) \
    ((* ((void (*)())((self)->header.updateq_methods->routines[8]))) (self,trigger))
#define updateq_EnableTrigger(self,trigger) \
    ((* ((void (*)())((self)->header.updateq_methods->routines[9]))) (self,trigger))
#define updateq_DisableCount(self,trigger) \
    ((* ((long (*)())((self)->header.updateq_methods->routines[10]))) (self,trigger))
#define updateq_Read(self,file,id) \
    ((* ((long (*)())((self)->header.updateq_methods->routines[11]))) (self,file,id))
#define updateq_Write(self,file,writeid,level) \
    ((* ((long (*)())((self)->header.updateq_methods->routines[12]))) (self,file,writeid,level))
#define updateq_ReadOtherFormat(self,file,fmt,encoding,description) \
    ((* ((boolean (*)())((self)->header.updateq_methods->routines[13]))) (self,file,fmt,encoding,description))
#define updateq_WriteOtherFormat(self,file,writeid,level,usagetype,boundary) \
    ((* ((long (*)())((self)->header.updateq_methods->routines[14]))) (self,file,writeid,level,usagetype,boundary))
#define updateq_GetModified(self) \
    ((* ((long (*)())((self)->header.updateq_methods->routines[15]))) (self))
#define updateq_SetModified(self) \
    ((* ((void (*)())((self)->header.updateq_methods->routines[16]))) (self))
#define updateq_ViewName(self) \
    ((* ((char * (*)())((self)->header.updateq_methods->routines[17]))) (self))
#define updateq_SetAttributes(self,attributes) \
    ((* ((void (*)())((self)->header.updateq_methods->routines[18]))) (self,attributes))
#define updateq_Put(self,property,type,rock) \
    ((* ((void (*)())((self)->header.updateq_methods->routines[19]))) (self,property,type,rock))
#define updateq_Get(self,property,type,rock) \
    ((* ((short (*)())((self)->header.updateq_methods->routines[20]))) (self,property,type,rock))
#define updateq_ListCurrentViews(self,array,size) \
    ((* ((int (*)())((self)->header.updateq_methods->routines[21]))) (self,array,size))
#define updateq_RestoreModified(self,oldmodified) \
    ((* ((void (*)())((self)->header.updateq_methods->routines[22]))) (self,oldmodified))
#define updateq_UniqueID(self) \
 ((long)((&(self)->header.dataobject)))
#define updateq_GetWriteID(self) \
 ( ((&(self)->header.dataobject))->writeID )
#define updateq_SetWriteID(self,newValue) \
 ( (((&(self)->header.dataobject))->writeID) = (newValue) )
#define updateq_GetID(self) \
      ( ((&(self)->header.dataobject))->id )
#define updateq_SetID(self,newValue) \
      ( (((&(self)->header.dataobject))->id) = (newValue) )
#define updateq_SetView(self,view) \
    ((* ((void (*)())((self)->header.updateq_methods->routines[23]))) (self,view))
#define updateq_EnqueueUpdateFunction(self,fp) \
    ((* ((void (*)())((self)->header.updateq_methods->routines[24]))) (self,fp))
#define updateq_ExecuteUpdateQueue(self) \
    ((* ((void (*)())((self)->header.updateq_methods->routines[25]))) (self))
#define updateq_ClearUpdateQueue(self) \
    ((* ((void (*)())((self)->header.updateq_methods->routines[26]))) (self))

#define updateq_NewFromObject(self) \
    ((* ((struct updateq * (*)())((self)->header.updateq_methods->info->procs->routines[0]))) (&updateq_classheader, (self)->header.updateq_methods->info->versionnumber))
#define updateq_New() \
    (*((struct updateq * (*)()) (updateq_CLASSPROCEDURES->routines[0])))(&updateq_classheader,updateq_VERSION)
#define updateq_Initialize(self) \
    (*((void (*)()) (updateq_CLASSPROCEDURES->routines[2])))(&updateq_classheader,self, updateq_VERSION)

#define updateq_Destroy(self) \
    ((* ((void (*)()) ((self)->header.updateq_methods->info->procs->routines[1]))) (&updateq_classheader, self))
#define updateq_Finalize(self) \
    (*((void (*)()) (updateq_CLASSPROCEDURES->routines[3])))(&updateq_classheader,self)



#endif /* !defined(updateq_ROUTINESDEFINED) && !defined(dontDefineRoutinesFor_updateq ) && !defined(class_StaticEntriesOnly)*/

