8 #ifndef MFileSystem_File_h 9 #define MFileSystem_File_h 37 static void Move(
const char* ipPathFrom,
const char* ipPathTo );
45 static bool Delete(
const char* ipPath);
57 static void Copy(
const char* ipPathFrom,
const char* ipPathTo,
MDataType::Binary& irBinary);
60 static void Copy(
const char* ipPathFrom,
const char* ipPathTo);
63 static bool CopyAttributes(
const char* ipPathFrom,
const char* ipPathTo);
68 static off_t GetSize(
const char* ipPath );
112 SHARE_MODE_READ_AND_WRITE
143 static FILE* OpenStream(
146 ShareMode iShareMode = SHARE_MODE_DEFAULT);
159 static void Copy(
int iDescriptorFrom,
int iDescriptorTo,
MDataType::Binary& irBinary);
160 static void Copy(FILE* ipStreamFrom, FILE* ipStreamTo,
MDataType::Binary& irBinary);
163 static void Copy(
int iDescriptorFrom,
const char* ipPathTo);
166 static void Copy(FILE* ipStreamFrom,
const char* ipPathTo);
173 static off_t GetSize(
int inDescriptor);
174 static off_t GetSize(FILE* ipStream);
188 static void Write( FILE* ipStream,
const char* ipString,
size_t iLength = 0 );
193 static void Write( FILE* ipStream,
const void* ipData,
size_t iByteLength );
201 static void Read(FILE* ipStream,
MDataType::Binary& irBinary,
size_t iMaxSize = 0);
213 static void Flush(
int iDescriptor);
214 static void Flush(FILE* ipStream);
219 static void Truncate(
int iDescriptor, off_t iSize = 0);
220 static void Truncate(FILE* ipStream, off_t iSize = 0);
225 static off_t GetPosition(
int iDescriptor);
226 static off_t GetPosition(FILE* ipStream);
231 static void MovePosition(
int iDescriptor, off_t iOffset);
238 static void MovePosition(FILE* ipStream, off_t iOffset);
243 static void SetPosition(
int iDescriptor, off_t iOffset);
250 static void SetPosition(FILE* ipStream, off_t iOffset);
259 static void CopyBlock(FILE* ipStream,
MDataType::Binary& irBinary, off_t iTo, off_t iSize = 0);
289 void Unlock()
throw();
292 const int mDescriptor;
313 void Unlock()
throw();
316 const int mDescriptor;
327 static void WriteLock(
int iDescriptor,
bool bIsWait =
true);
328 static void ReadLock(
int iDescriptor,
bool bIsWait =
true);
329 static void Unlock(
int iDescriptor )
throw();
333 #endif // MFileSystem_File_h ShareMode
Definition: File.h:107
MDataType::Binary represents binary data.
Definition: Binary.h:33
Definition: ReadableFileImpl.h:22
Definition: BigDecimal.h:18
OpenMode
Definition: File.h:93
Definition: DateTime.h:74
Definition: WriteableFileImpl.h:22
Definition: StrongObjects.h:21
#define DLL_FILE_SYSTEM_EXIM
Definition: FileSystem.h:11