FME Server C++ API 3.0
|
00001 #ifndef _IFMESERVERFILEINFO_H 00002 #define _IFMESERVERFILEINFO_H 00003 00056 #include <fmeservertypes.h> 00057 00058 class IFMEServerPath; 00059 class IFMEServerString; 00060 00061 //=========================================================================== 00062 // Abstract Interface Class -- all methods are virtual and it has no data 00063 class IFMEServerFileInfo 00064 { 00065 public: 00066 // ----------------------------------------------------------------------- 00071 virtual const IFMEServerPath& getPath() const = 0; 00072 00073 // ----------------------------------------------------------------------- 00078 virtual FMEServerFileType getFileType() const = 0; 00079 00080 // ----------------------------------------------------------------------- 00086 virtual FME_UInt32 getSize() const = 0; 00087 00088 // ----------------------------------------------------------------------- 00093 virtual void getDate(IFMEServerString& date) const = 0; 00094 00095 protected: 00096 00097 // ----------------------------------------------------------------------- 00098 // No one should be creating an instance of this directly, so we 00099 // make the constructor protected. 00100 IFMEServerFileInfo() {} 00101 00102 // ----------------------------------------------------------------------- 00103 // No one should be destroying an instance of this directly, so we 00104 // make the destructor protected. 00105 virtual ~IFMEServerFileInfo() {} 00106 00107 private: 00108 00109 // ----------------------------------------------------------------------- 00110 // The copy constructor is not implemented. 00111 IFMEServerFileInfo(const IFMEServerFileInfo &other); 00112 00113 // ----------------------------------------------------------------------- 00114 // The assignment operator is not implemented. 00115 IFMEServerFileInfo &operator=(const IFMEServerFileInfo &other); 00116 00117 }; 00118 00119 #endif