#ifndef _ENTRY_H_ #define _ENTRY_H_ #include #include "SDDAS_types.h" #include "pro_defs.h" #include "cTime.h" class Entry { public : Entry (); ~Entry (); SDDAS_ULONG GetSource (); char *GetVInst (); const char *GetFName (); void SetSource (SDDAS_ULONG); void SetVirtualName (char *); void SetBTime (SDDAS_UINT, SDDAS_UINT, SDDAS_ULONG); void SetETime (SDDAS_UINT, SDDAS_UINT, SDDAS_ULONG); void FillRemoteEntry (SDDAS_INT); void FillEntry (SDDAS_INT); void SetIDFSType (SDDAS_INT); TimeObj *GetBegTime (); TimeObj *GetEndTime (); const FileStatusType &GetStatus (); const FileStatusType &GetOldStatus (); const SDDAS_INT GetIDFSType (); const SDDAS_INT GetRecNo (); const SDDAS_LONG GetSize (); const char GetPreProc (); const char GetPostProc (); const char *GetDate (); const shareFileStatusType GetShareStatus (); Entry *ConvertEntry (); int MakePIDFEntry (const SDDAS_ULONG, shareFileStatusType = GLOBAL); int MakeRemotePIDFEntry(const SDDAS_ULONG, shareFileStatusType = GLOBAL); int MakeSCFEntry (char *filename, shareFileStatusType); void CheckVIDFEntry (); void SetStatus (FileStatusType); const bool FileExists (); private : SDDAS_ULONG _source; // pointer to the hierarchy char _VInst [25]; // virtual instrument name #if 0 char _State [3]; // state flag (reserved) char _ArchLab [4]; // archive index into archive label database #endif TimeObj _BegTm; // begin time TimeObj _EndTm; // end time SDDAS_LONG _Size; // size in bytes of data file(s) char _PreProc; // preprocessing flag char _PostProc; // post processing flag char _Date [9]; // date of archive std::string _FName; // full path of data file FileStatusType _Status; // Online, Offline FileStatusType _OldStatus; // Online, Offline shareFileStatusType _shareStatus; // share type which is only applicable to pidf/scf SDDAS_INT _IDFSType; // the type of file this entry is SDDAS_INT _RecNo; // record number if read from a database char *GetCFGElement (const char *); int Online (const char *); char *MakeFileName (int); void FillEntryCommon(SDDAS_INT, char*); int MakePIDFEntryCommon(const SDDAS_ULONG, shareFileStatusType, char*); }; #endif