SAGA API
v9.6
|
#include <api_core.h>
Public Member Functions | |
CSG_File_Zip (void) | |
virtual | ~CSG_File_Zip (void) |
CSG_File_Zip (const CSG_String &FileName, int Mode=SG_FILE_R, int Encoding=SG_FILE_ENCODING_ANSI) | |
virtual bool | Open (const CSG_String &FileName, int Mode=SG_FILE_R, int Encoding=SG_FILE_ENCODING_ANSI) |
virtual bool | Close (void) |
virtual TSG_File_Type | Get_File_Type (void) const |
bool | Add_Directory (const CSG_String &Name) |
bool | Add_File (const CSG_String &Name, bool bBinary=true) |
size_t | Get_File_Count (void) |
bool | Get_File (const CSG_String &Name) |
bool | Get_File (size_t Index) |
virtual CSG_String | Get_File_Name (size_t Index) |
bool | is_Directory (size_t Index) |
Public Member Functions inherited from CSG_File | |
CSG_File (void) | |
virtual | ~CSG_File (void) |
CSG_File (const CSG_String &FileName, int Mode=SG_FILE_R, bool bBinary=true, int Encoding=SG_FILE_ENCODING_ANSI) | |
virtual bool | Open (const CSG_String &FileName, int Mode=SG_FILE_R, bool bBinary=true, int Encoding=SG_FILE_ENCODING_ANSI) |
virtual const CSG_String & | Get_File_Name (void) const |
class wxStreamBase * | Get_Stream (void) const |
bool | Set_Encoding (int Encoding) |
int | Get_Encoding (void) const |
bool | is_Open (void) const |
bool | is_Reading (void) const |
bool | is_Writing (void) const |
bool | is_EOF (void) const |
sLong | Length (void) const |
bool | Seek (sLong Offset, int Origin=SG_FILE_START) const |
bool | Seek_Start (void) const |
bool | Seek_End (void) const |
sLong | Tell (void) const |
int | Printf (const char *Format,...) |
int | Printf (const wchar_t *Format,...) |
size_t | Read (void *Buffer, size_t Size, size_t Count=1) const |
size_t | Write (void *Buffer, size_t Size, size_t Count=1) const |
size_t | Read (CSG_String &Buffer, size_t Size) const |
size_t | Write (const CSG_String &Buffer) const |
bool | Read_Line (CSG_String &sLine) const |
int | Read_Char (void) const |
int | Read_Int (bool bBigEndian=false) const |
bool | Write_Int (int Value, bool bBigEndian=false) |
double | Read_Double (bool bBigEndian=false) const |
bool | Write_Double (double Value, bool bBigEndian=false) |
bool | Scan (int &Value) const |
bool | Scan (double &Value) const |
bool | Scan (CSG_String &Value, SG_Char Separator) const |
int | Scan_Int (void) const |
double | Scan_Double (void) const |
CSG_String | Scan_String (SG_Char Separator) const |
Protected Attributes | |
CSG_Array_Pointer | m_Files |
Protected Attributes inherited from CSG_File | |
int | m_Mode |
int | m_Encoding |
CSG_String | m_FileName |
void * | m_pStream |
void * | m_pConvert |
Additional Inherited Members | |
Protected Member Functions inherited from CSG_File | |
void | On_Construction (void) |
Definition at line 1195 of file api_core.h.
CSG_File_Zip::CSG_File_Zip | ( | void | ) |
Definition at line 566 of file api_file.cpp.
References CSG_File::On_Construction().
|
virtual |
Definition at line 580 of file api_file.cpp.
References Close().
CSG_File_Zip::CSG_File_Zip | ( | const CSG_String & | FileName, |
int | Mode = SG_FILE_R , |
||
int | Encoding = SG_FILE_ENCODING_ANSI |
||
) |
Definition at line 572 of file api_file.cpp.
References CSG_File::On_Construction(), and Open().
bool CSG_File_Zip::Add_Directory | ( | const CSG_String & | Name | ) |
Definition at line 649 of file api_file.cpp.
References CSG_String::c_str(), CSG_File::is_Writing(), and CSG_File::m_pStream.
bool CSG_File_Zip::Add_File | ( | const CSG_String & | Name, |
bool | bBinary = true |
||
) |
Definition at line 655 of file api_file.cpp.
References CSG_String::c_str(), CSG_File::is_Writing(), CSG_File::m_FileName, and CSG_File::m_pStream.
Referenced by CSG_PointCloud::Save().
|
virtual |
Reimplemented from CSG_File.
Definition at line 636 of file api_file.cpp.
References CSG_File::Close(), CSG_Array_Pointer::Get_Size(), m_Files, and CSG_Array_Pointer::Set_Array().
Referenced by Open(), and ~CSG_File_Zip().
bool CSG_File_Zip::Get_File | ( | const CSG_String & | Name | ) |
Definition at line 706 of file api_file.cpp.
References CSG_String::c_str(), CSG_Array_Pointer::Get_Size(), CSG_File::is_Reading(), and m_Files.
Referenced by CSG_Grid_File_Info::Create(), and CSG_PointCloud::Get_Header_Content().
bool CSG_File_Zip::Get_File | ( | size_t | Index | ) |
Definition at line 690 of file api_file.cpp.
References CSG_File::Get_File_Name(), CSG_File::is_Reading(), CSG_File::m_FileName, m_Files, and CSG_File::m_pStream.
|
inline |
Definition at line 1212 of file api_core.h.
Referenced by CSG_Grid_File_Info::Create().
|
virtual |
Definition at line 723 of file api_file.cpp.
References CSG_File::is_Reading(), and m_Files.
Referenced by CSG_Grid_File_Info::Create().
|
inlinevirtual |
Reimplemented from CSG_File.
Definition at line 1207 of file api_core.h.
References SG_FILE_TYPE_ZIP.
bool CSG_File_Zip::is_Directory | ( | size_t | Index | ) |
Definition at line 679 of file api_file.cpp.
References CSG_File::is_Reading(), and m_Files.
|
virtual |
Definition at line 586 of file api_file.cpp.
References CSG_String::c_str(), Close(), CSG_String::is_Empty(), CSG_File::is_Reading(), m_Files, CSG_File::m_Mode, CSG_File::m_pStream, m_pStream_Base, CSG_File::Set_Encoding(), SG_Dir_Exists(), SG_File_Exists(), SG_File_Get_Path(), SG_FILE_R, and SG_FILE_W.
Referenced by CSG_File_Zip().
|
protected |
Definition at line 1221 of file api_core.h.
Referenced by Close(), Get_File(), Get_File_Name(), is_Directory(), and Open().