 
#ifndef timeoday_DEFINED
#define timeoday_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 timeoday.ch and will be
 * overwritten.  Make changes to timeoday.ch instead.
 */ 
 
#ifndef class_StaticInfoOnly
/* 
 * The following information was copied, as-is, from timeoday.ch.
 */ 
 
/* ********************************************************************** *\
 *         Copyright IBM Corporation 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.
* $
*/

#include <fontdesc.ih>
#include <event.ih>







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

 
 
#ifndef class_StaticInfoOnly
/* 
 * Data structure for timeoday 
 */ 
struct timeoday { 
    union {
	struct basicobject_methods *timeoday_methods;
	struct traced traced;
	struct observable observable;
	struct dataobject dataobject;
    } header;
      char *tod, *format;
      long now;
      long epoch;
      struct event *ev;
      struct fontdesc *myfontdesc;

};

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

#endif /* class_StaticInfoOnly */

#ifndef class_StaticInfoOnly

#ifndef timeoday_PROGRAMMERVERSION
#define timeoday_PROGRAMMERVERSION 1
#endif /* timeoday_PROGRAMMERVERSION */

#ifdef timeoday_VERSION
#undef timeoday_VERSION
#endif /* timeoday_VERSION */
#define timeoday_VERSION ((((timeoday_PROGRAMMERVERSION << 16) ^ (30 << 8) ^ sizeof(struct timeoday)) & 0x7ffff) + 0x80000 + (2 << 20))


#endif /* class_StaticInfoOnly */
#define timeoday_StaticLoadOnlyThisClass()  \
{ extern struct classinfo *timeoday__GetClassInfo(); \
 extern struct classheader *timeoday_classheader_StaticExport; \
  (void) class_EnterInfo(NULL, timeoday_classheader_StaticExport->name, timeoday__GetClassInfo, NULL, timeoday_classheader_StaticExport->namekey); } 
 
#define timeoday_StaticLoad()  \
    { \
    dataobject_StaticLoad(); \
    timeoday_StaticLoadOnlyThisClass();  \
    } 
 
#define timeoday_StaticEntry  {timeoday_StaticLoad()} 
 
#ifndef class_StaticInfoOnly
static struct classheader timeoday_classheader = {
    timeoday_VERSION,
    "timeoday",
    "timeoday",
    (struct basicobject_methods *) &class_RoutineStruct,
};

#define timeoday_CLASSPROCEDURES (timeoday_classheader.classprocedures)
int timeoday_classref_;
#endif /* class_StaticInfoOnly */

#endif /* timeoday_DEFINED */

#if !defined(timeoday_ROUTINESDEFINED) && !defined(dontDefineRoutinesFor_timeoday) && !defined(class_StaticEntriesOnly)
#define timeoday_ROUTINESDEFINED

#define timeoday_Reference(self) \
 (((&(self)->header.traced))->refcount++)
#define timeoday_UnReference(self) \
 ((((&(self)->header.traced))->refcount>0)?((&(self)->header.traced))->refcount--:0)
#define timeoday_ReferenceCount(self) \
 (((&(self)->header.traced))->refcount)
#define timeoday_AddObserver(self,observer) \
    ((* ((void (*)())((self)->header.timeoday_methods->routines[0]))) (self,observer))
#define timeoday_IsObserver(self,observer) \
    ((* ((boolean (*)())((self)->header.timeoday_methods->routines[1]))) (self,observer))
#define timeoday_RemoveObserver(self,observer) \
    ((* ((void (*)())((self)->header.timeoday_methods->routines[2]))) (self,observer))
#define timeoday_NotifyObservers(self,value) \
    ((* ((void (*)())((self)->header.timeoday_methods->routines[3]))) (self,value))
#define timeoday_ObservedChanged(self,changed,value) \
    ((* ((void (*)())((self)->header.timeoday_methods->routines[4]))) (self,changed,value))
#define timeoday_AddRecipient(self,trigger,rcvr,func,rock) \
    ((* ((boolean (*)())((self)->header.timeoday_methods->routines[5]))) (self,trigger,rcvr,func,rock))
#define timeoday_DeleteRecipient(self,trigger,rcvr) \
    ((* ((void (*)())((self)->header.timeoday_methods->routines[6]))) (self,trigger,rcvr))
#define timeoday_PullTrigger(self,trigger) \
    ((* ((void (*)())((self)->header.timeoday_methods->routines[7]))) (self,trigger))
#define timeoday_DisableTrigger(self,trigger) \
    ((* ((void (*)())((self)->header.timeoday_methods->routines[8]))) (self,trigger))
#define timeoday_EnableTrigger(self,trigger) \
    ((* ((void (*)())((self)->header.timeoday_methods->routines[9]))) (self,trigger))
#define timeoday_DisableCount(self,trigger) \
    ((* ((long (*)())((self)->header.timeoday_methods->routines[10]))) (self,trigger))
#define timeoday_Read(self,file,id) \
    ((* ((long (*)())((self)->header.timeoday_methods->routines[11]))) (self,file,id))
#define timeoday_Write(self,file,writeid,level) \
    ((* ((long (*)())((self)->header.timeoday_methods->routines[12]))) (self,file,writeid,level))
#define timeoday_ReadOtherFormat(self,file,fmt,encoding,description) \
    ((* ((boolean (*)())((self)->header.timeoday_methods->routines[13]))) (self,file,fmt,encoding,description))
#define timeoday_WriteOtherFormat(self,file,writeid,level,usagetype,boundary) \
    ((* ((long (*)())((self)->header.timeoday_methods->routines[14]))) (self,file,writeid,level,usagetype,boundary))
#define timeoday_GetModified(self) \
    ((* ((long (*)())((self)->header.timeoday_methods->routines[15]))) (self))
#define timeoday_SetModified(self) \
    ((* ((void (*)())((self)->header.timeoday_methods->routines[16]))) (self))
#define timeoday_ViewName(self) \
    ((* ((char * (*)())((self)->header.timeoday_methods->routines[17]))) (self))
#define timeoday_SetAttributes(self,attributes) \
    ((* ((void (*)())((self)->header.timeoday_methods->routines[18]))) (self,attributes))
#define timeoday_Put(self,property,type,rock) \
    ((* ((void (*)())((self)->header.timeoday_methods->routines[19]))) (self,property,type,rock))
#define timeoday_Get(self,property,type,rock) \
    ((* ((short (*)())((self)->header.timeoday_methods->routines[20]))) (self,property,type,rock))
#define timeoday_ListCurrentViews(self,array,size) \
    ((* ((int (*)())((self)->header.timeoday_methods->routines[21]))) (self,array,size))
#define timeoday_RestoreModified(self,oldmodified) \
    ((* ((void (*)())((self)->header.timeoday_methods->routines[22]))) (self,oldmodified))
#define timeoday_UniqueID(self) \
 ((long)((&(self)->header.dataobject)))
#define timeoday_GetWriteID(self) \
 ( ((&(self)->header.dataobject))->writeID )
#define timeoday_SetWriteID(self,newValue) \
 ( (((&(self)->header.dataobject))->writeID) = (newValue) )
#define timeoday_GetID(self) \
      ( ((&(self)->header.dataobject))->id )
#define timeoday_SetID(self,newValue) \
      ( (((&(self)->header.dataobject))->id) = (newValue) )
#define timeoday_SetFormat(self,format) \
    ((* ((void (*)())((self)->header.timeoday_methods->routines[23]))) (self,format))
#define timeoday_SetFont(self,f) \
    ((* ((void (*)())((self)->header.timeoday_methods->routines[24]))) (self,f))
#define timeoday_UpdateTime(self) \
    ((* ((void (*)())((self)->header.timeoday_methods->routines[25]))) (self))
#define timeoday_FormatTime(self) \
    ((* ((void (*)())((self)->header.timeoday_methods->routines[26]))) (self))
#define timeoday_WriteDataPart(self,fp) \
    ((* ((void (*)())((self)->header.timeoday_methods->routines[27]))) (self,fp))
#define timeoday_ReadDataPart(self,fp) \
    ((* ((long (*)())((self)->header.timeoday_methods->routines[28]))) (self,fp))
#define timeoday_InitializeDefaults(self) \
    ((* ((boolean (*)())((self)->header.timeoday_methods->routines[29]))) (self))
#define timeoday_GetTod(self) \
 ((self)->tod)
#define timeoday_GetFont(self) \
 ((self)->myfontdesc)
#define timeoday_GetTime(self) \
 ((self)->now)
#define timeoday_GetFormat(self) \
 ((self)->format)
#define timeoday_GetEvent(self) \
 ((self)->ev)
#define timeoday_SetTime(self,thetime) \
 ((self)->now = (thetime))

#define timeoday_NewFromObject(self) \
    ((* ((struct timeoday * (*)())((self)->header.timeoday_methods->info->procs->routines[0]))) (&timeoday_classheader, (self)->header.timeoday_methods->info->versionnumber))
#define timeoday_New() \
    (*((struct timeoday * (*)()) (timeoday_CLASSPROCEDURES->routines[0])))(&timeoday_classheader,timeoday_VERSION)
#define timeoday_Initialize(self) \
    (*((void (*)()) (timeoday_CLASSPROCEDURES->routines[2])))(&timeoday_classheader,self, timeoday_VERSION)

#define timeoday_Destroy(self) \
    ((* ((void (*)()) ((self)->header.timeoday_methods->info->procs->routines[1]))) (&timeoday_classheader, self))
#define timeoday_Finalize(self) \
    (*((void (*)()) (timeoday_CLASSPROCEDURES->routines[3])))(&timeoday_classheader,self)

#define timeoday_InitializeObject(self) \
    (*((boolean (*)()) (timeoday_CLASSPROCEDURES->routines[5])))(&timeoday_classheader,self)
#define timeoday_FinalizeObject(self) \
    (*((void (*)()) (timeoday_CLASSPROCEDURES->routines[6])))(&timeoday_classheader,self)
#define timeoday_InitializeClass() \
    (*((boolean (*)()) (timeoday_CLASSPROCEDURES->routines[7])))(&timeoday_classheader)


#endif /* !defined(timeoday_ROUTINESDEFINED) && !defined(dontDefineRoutinesFor_timeoday ) && !defined(class_StaticEntriesOnly)*/

