#include <File.h>
Public Types | |
| enum | access_t { Access_Read = 0, Access_Write = 1, Access_Read_Write = 2, Access_Write_Append = 3, Access_Write_Excluding = 4 } |
| Options for Open method. More... | |
| enum | move_t { FromBegin = 0, FromCurrent = 1, FromEnd = 2 } |
| Options for Move method. More... | |
Public Member Functions | |
| File () | |
| File (ZenLib::Ztring File_Name, access_t Access=Access_Read) | |
| ~File () | |
| bool | Open (const tstring &File_Name, access_t Access=Access_Read) |
| bool | Create (const ZenLib::Ztring &File_Name, bool OverWrite=true) |
| void | Close () |
| size_t | Read (int8u *Buffer, size_t Buffer_Size) |
| size_t | Write (const int8u *Buffer, size_t Buffer_Size) |
| size_t | Write (const Ztring &ToWrite) |
| bool | Truncate (int64u Offset=(int64u)-1) |
| bool | GoTo (int64s Position, move_t MoveMethod=FromBegin) |
| int64u | Position_Get () |
| int64u | Size_Get () |
| Ztring | Created_Get () |
| Ztring | Created_Local_Get () |
| Ztring | Modified_Get () |
| Ztring | Modified_Local_Get () |
| bool | Opened_Get () |
Static Public Member Functions | |
| static int64u | Size_Get (const Ztring &File_Name) |
| static Ztring | Created_Get (const Ztring &File_Name) |
| static Ztring | Modified_Get (const Ztring &File_Name) |
| static bool | Exists (const Ztring &File_Name) |
| static bool | Copy (const Ztring &Source, const Ztring &Destination, bool OverWrite=false) |
| static bool | Move (const Ztring &Source, const Ztring &Destination, bool OverWrite=false) |
| static bool | Delete (const Ztring &File_Name) |
Public Attributes | |
| Ztring | File_Name |
| int64u | Position |
| int64u | Size |
| void * | File_Handle |
| enum ZenLib::File::move_t |
| ZenLib::File::File | ( | ) |
| ZenLib::File::File | ( | ZenLib::Ztring | File_Name, | |
| access_t | Access = Access_Read | |||
| ) |
| ZenLib::File::~File | ( | ) |
| bool ZenLib::File::Create | ( | const ZenLib::Ztring & | File_Name, | |
| bool | OverWrite = true | |||
| ) |
| void ZenLib::File::Close | ( | ) |
| size_t ZenLib::File::Read | ( | int8u * | Buffer, | |
| size_t | Buffer_Size | |||
| ) |
| size_t ZenLib::File::Write | ( | const int8u * | Buffer, | |
| size_t | Buffer_Size | |||
| ) |
| size_t ZenLib::File::Write | ( | const Ztring & | ToWrite | ) |
| bool ZenLib::File::Truncate | ( | int64u | Offset = (int64u)-1 |
) |
| bool ZenLib::File::GoTo | ( | int64s | Position, | |
| move_t | MoveMethod = FromBegin | |||
| ) |
| int64u ZenLib::File::Position_Get | ( | ) |
| int64u ZenLib::File::Size_Get | ( | ) |
| Ztring ZenLib::File::Created_Get | ( | ) |
| Ztring ZenLib::File::Created_Local_Get | ( | ) |
| Ztring ZenLib::File::Modified_Get | ( | ) |
| Ztring ZenLib::File::Modified_Local_Get | ( | ) |
| bool ZenLib::File::Opened_Get | ( | ) |
| static int64u ZenLib::File::Size_Get | ( | const Ztring & | File_Name | ) | [static] |
| static bool ZenLib::File::Exists | ( | const Ztring & | File_Name | ) | [static] |
| static bool ZenLib::File::Copy | ( | const Ztring & | Source, | |
| const Ztring & | Destination, | |||
| bool | OverWrite = false | |||
| ) | [static] |
| static bool ZenLib::File::Move | ( | const Ztring & | Source, | |
| const Ztring & | Destination, | |||
| bool | OverWrite = false | |||
| ) | [static] |
| static bool ZenLib::File::Delete | ( | const Ztring & | File_Name | ) | [static] |
| int64u ZenLib::File::Position |
| int64u ZenLib::File::Size |
1.5.6