#ifndef _TIMEH_T_ #define _TIMEH_T_ #include "SDDAS_types.h" typedef enum {NICE_FMT, FILENAME, COLON_SEP, WITH_MSEC} FormatType; /* we define our own int type since this is dependent on the database being used */ #ifndef SwRI_DB typedef SDDAS_UINT dbINT; typedef SDDAS_ULONG dbLONG; #else typedef SDDAS_INT dbINT; typedef SDDAS_LONG dbLONG; #endif class TimeObj { public : TimeObj (); TimeObj (dbINT, dbINT, dbLONG); TimeObj & operator = (const TimeObj &); int CompareWith (const TimeObj *); void SetTime (dbINT, dbINT, dbLONG); void SetYear (dbINT); void SetDay (dbINT); void SetMSec (dbLONG); const dbINT GetYear (); const dbINT GetDay (); const dbLONG GetMSec (); char *GetTimeStr (FormatType); private : dbINT _yr; dbINT _day; dbLONG _msec; }; #endif