FME Server C++ API 3.0
|
00001 #ifndef _IFMESERVERMOUNTPOINT_H 00002 #define _IFMESERVERMOUNTPOINT_H 00003 00056 #include <fmeservertypes.h> 00057 #include <ifmeservervector.h> 00058 00059 class IFMEServerPath; 00060 class IFMEServerPropertyAccessor; 00061 class IFMEServerStatus; 00062 class IFMEServerString; 00063 class IFMEServerStringArray; 00064 class IFMEServerTransferCallback; 00065 00066 //=========================================================================== 00067 // Abstract Interface Class -- all methods are virtual and it has no data 00068 class IFMEServerMountPoint 00069 { 00070 public: 00071 // ----------------------------------------------------------------------- 00076 virtual void getName(IFMEServerString& name) const = 0; 00077 00078 // ----------------------------------------------------------------------- 00083 virtual void getDisplayName(IFMEServerString& displayName) const = 0; 00084 00085 // ----------------------------------------------------------------------- 00090 virtual void getDescription(IFMEServerString& description) const = 0; 00091 00092 // ----------------------------------------------------------------------- 00100 virtual IFMEServerStatus* exists(const IFMEServerPath& path, 00101 FME_Boolean& exists) const = 0; 00102 00103 // ----------------------------------------------------------------------- 00113 virtual IFMEServerStatus* download(const IFMEServerPath& src, 00114 const IFMEServerString& dest, 00115 FME_Boolean& exists, 00116 IFMEServerTransferCallback* callback) const = 0; 00117 00118 // ----------------------------------------------------------------------- 00126 virtual IFMEServerStatus* upload(const IFMEServerString& src, 00127 const IFMEServerPath& path, 00128 IFMEServerTransferCallback* callback) const = 0; 00129 00130 // ----------------------------------------------------------------------- 00137 virtual IFMEServerStatus* copy(const IFMEServerPath& src, 00138 const IFMEServerPath& dest) const = 0; 00139 00140 // ----------------------------------------------------------------------- 00147 virtual IFMEServerStatus* move(const IFMEServerPath& src, 00148 const IFMEServerPath& dest) const = 0; 00149 00150 // ----------------------------------------------------------------------- 00159 virtual IFMEServerStatus* get(const IFMEServerPath& path, 00160 IFMEServerFileInfo& fileInfo, 00161 FME_Boolean& exists) const = 0; 00162 00163 // ----------------------------------------------------------------------- 00173 virtual IFMEServerStatus* get(const IFMEServerPath& path, 00174 const IFMEServerStringArray* directives, 00175 IFMEServerFileInfo& fileInfo, 00176 FME_Boolean& exists) const = 0; 00177 00178 // ----------------------------------------------------------------------- 00186 virtual IFMEServerStatus* list(const IFMEServerPath& path, 00187 IFMEServerFileInfoVector& fileInfos) const = 0; 00188 00189 // ----------------------------------------------------------------------- 00200 virtual IFMEServerStatus* list(const IFMEServerPath& path, 00201 const IFMEServerStringArray* directives, 00202 IFMEServerFileInfoVector& fileInfos) const = 0; 00203 00204 // ----------------------------------------------------------------------- 00210 virtual IFMEServerStatus* make(const IFMEServerPath& path) const = 0; 00211 00212 // ----------------------------------------------------------------------- 00220 virtual IFMEServerStatus* remove(const IFMEServerPath& path, 00221 FME_Boolean& removed) const = 0; 00222 00223 // ----------------------------------------------------------------------- 00228 virtual IFMEServerPropertyAccessor* getPropertyAccessor() const = 0; 00229 00230 // ----------------------------------------------------------------------- 00237 virtual IFMEServerPath* createPath(const IFMEServerString& dirpath, 00238 const IFMEServerString& name) const = 0; 00239 00240 // ----------------------------------------------------------------------- 00247 virtual IFMEServerPath* createPath(const IFMEServerString& path) const = 0; 00248 00249 // ----------------------------------------------------------------------- 00251 virtual void destroyPath(IFMEServerPath*& path) const = 0; 00252 00253 protected: 00254 00255 // ----------------------------------------------------------------------- 00256 // No one should be creating an instance of this directly, so we 00257 // make the constructor protected. 00258 IFMEServerMountPoint() {} 00259 00260 // ----------------------------------------------------------------------- 00261 // No one should be destroying an instance of this directly, so we 00262 // make the destructor protected. 00263 virtual ~IFMEServerMountPoint() {} 00264 00265 private: 00266 00267 // ----------------------------------------------------------------------- 00268 // The copy constructor is not implemented. 00269 IFMEServerMountPoint(const IFMEServerMountPoint &other); 00270 00271 // ----------------------------------------------------------------------- 00272 // The assignment operator is not implemented. 00273 IFMEServerMountPoint &operator=(const IFMEServerMountPoint &other); 00274 00275 }; 00276 00277 #endif