SAGA API
v9.6
|
#include <wx/utils.h>
#include <wx/filename.h>
#include <wx/dir.h>
#include <wx/wxcrtvararg.h>
#include <wx/wfstream.h>
#include <wx/zipstrm.h>
#include <wx/txtstrm.h>
#include <wx/log.h>
#include <wx/version.h>
#include "api_core.h"
Go to the source code of this file.
Macros | |
#define | m_pStream_Base ((wxStreamBase *)m_pStream) |
#define | m_pStream_I ((wxFFileInputStream *)m_pStream) |
#define | m_pStream_O ((wxFFileOutputStream *)m_pStream) |
#define | m_pStream_IO ((wxFFileStream *)m_pStream) |
#define m_pStream_Base ((wxStreamBase *)m_pStream) |
Definition at line 73 of file api_file.cpp.
#define m_pStream_I ((wxFFileInputStream *)m_pStream) |
Definition at line 74 of file api_file.cpp.
#define m_pStream_IO ((wxFFileStream *)m_pStream) |
Definition at line 76 of file api_file.cpp.
#define m_pStream_O ((wxFFileOutputStream *)m_pStream) |
Definition at line 75 of file api_file.cpp.
bool SG_Dir_Create | ( | const CSG_String & | Directory, |
bool | bFullPath | ||
) |
Definition at line 749 of file api_file.cpp.
References CSG_String::c_str(), and SG_Dir_Exists().
Referenced by CSG_Tool_Library_Manager::Create_Python_ToolBox(), and CSG_Tool_Library_Manager::Get_Summary().
bool SG_Dir_Delete | ( | const CSG_String & | Directory, |
bool | bRecursive | ||
) |
Definition at line 760 of file api_file.cpp.
References CSG_String::c_str(), and SG_Dir_Exists().
bool SG_Dir_Exists | ( | const CSG_String & | Directory | ) |
Definition at line 743 of file api_file.cpp.
References CSG_String::c_str().
Referenced by CSG_Tool_Library_Manager::Create_Python_ToolBox(), CSG_File::Open(), CSG_File_Zip::Open(), SG_Dir_Create(), SG_Dir_Delete(), SG_File_Get_Name_Temp(), SG_Grid_Cache_Set_Directory(), and SG_Initialize_Environment().
CSG_String SG_Dir_Get_Current | ( | void | ) |
Definition at line 771 of file api_file.cpp.
CSG_String SG_Dir_Get_Temp | ( | void | ) |
Definition at line 779 of file api_file.cpp.
bool SG_Dir_List_Files | ( | CSG_Strings & | List, |
const CSG_String & | Directory | ||
) |
Definition at line 811 of file api_file.cpp.
Referenced by CSG_Tool_Library_Manager::Create_Python_ToolBox().
bool SG_Dir_List_Files | ( | CSG_Strings & | List, |
const CSG_String & | Directory, | ||
const CSG_String & | Extension | ||
) |
Definition at line 816 of file api_file.cpp.
References CSG_String::c_str(), CSG_Strings::Clear(), CSG_Strings::Get_Count(), CSG_String::is_Empty(), SG_File_Cmp_Extension(), and SG_File_Make_Path().
bool SG_Dir_List_Subdirectories | ( | CSG_Strings & | List, |
const CSG_String & | Directory | ||
) |
Definition at line 787 of file api_file.cpp.
References CSG_String::c_str(), CSG_Strings::Clear(), CSG_Strings::Get_Count(), and SG_File_Make_Path().
bool SG_File_Cmp_Extension | ( | const CSG_String & | FileName, |
const CSG_String & | Extension | ||
) |
Definition at line 952 of file api_file.cpp.
References SG_File_Get_Extension().
Referenced by CSG_Data_Manager::Add(), CSG_Tool_Library_Manager::Add_Library(), CSG_Grid_File_Info::Create(), CSG_Shapes::Create(), CSG_Tool_Chain::Create(), CSG_PointCloud::Get_Header_Content(), CSG_MetaData::Load(), CSG_Table::Load(), CSG_Table::Save(), CSG_Grid::Save(), CSG_Grids::Save(), CSG_PointCloud::Save(), CSG_Shapes::Save(), and SG_Dir_List_Files().
bool SG_File_Cmp_Path | ( | const CSG_String & | Path1, |
const CSG_String & | Path2 | ||
) |
Definition at line 944 of file api_file.cpp.
References CSG_String::c_str().
bool SG_File_Delete | ( | const CSG_String & | FileName | ) |
Definition at line 856 of file api_file.cpp.
References CSG_String::c_str(), and SG_File_Exists().
Referenced by CSG_Tool_Library_Manager::Create_Python_ToolBox(), CSG_Data_Object::Delete(), CSG_Grid::On_Delete(), CSG_Grids::On_Delete(), CSG_PointCloud::On_Delete(), CSG_Shapes::On_Delete(), CSG_Table::On_Delete(), and CSG_Projection::Save().
bool SG_File_Exists | ( | const CSG_String & | FileName | ) |
Definition at line 850 of file api_file.cpp.
References CSG_String::c_str().
Referenced by CSG_Parameter_List::_Serialize(), CSG_Tool_Library_Manager::Add_Library(), CSG_Projections::Create(), CSG_Table::Create(), CSG_Translator::Create(), CSG_Tool_Library_Manager::Create_Python_ToolBox(), CSG_Data_Collection::Delete(), CSG_Data_Object::Delete(), CSG_MetaData::Load(), CSG_Table::Load(), CSG_File::Open(), CSG_File_Zip::Open(), CSG_Data_Object::Reload(), CSG_Projection::Save(), and SG_File_Delete().
CSG_String SG_File_Get_Extension | ( | const CSG_String & | FileName | ) |
Definition at line 977 of file api_file.cpp.
References CSG_String::c_str().
Referenced by CSG_Data_Object::Load_MetaData(), and SG_File_Cmp_Extension().
CSG_String SG_File_Get_Name | ( | const CSG_String & | full_Path, |
bool | bExtension | ||
) |
Definition at line 878 of file api_file.cpp.
References CSG_String::c_str().
Referenced by CSG_Grid_File_Info::Create(), CSG_Tool_Library_Interface::Create(), CSG_PointCloud::Get_Header_Content(), CSG_Grids::Load(), CSG_Table::Load(), CSG_PointCloud::Save(), CSG_Data_Object::Set_File_Name(), and SG_File_Make_Path().
CSG_String SG_File_Get_Name_Temp | ( | const CSG_String & | Prefix | ) |
Definition at line 862 of file api_file.cpp.
CSG_String SG_File_Get_Name_Temp | ( | const CSG_String & | Prefix, |
const CSG_String & | Directory | ||
) |
Definition at line 867 of file api_file.cpp.
References CSG_String::c_str(), SG_Dir_Exists(), and SG_File_Make_Path().
CSG_String SG_File_Get_Path | ( | const CSG_String & | full_Path | ) |
Definition at line 891 of file api_file.cpp.
References CSG_String::c_str().
Referenced by CSG_Grid_File_Info::Create(), CSG_Tool_Library_Manager::Get_Summary(), CSG_File::Open(), CSG_File_Zip::Open(), SG_File_Make_Path(), and SG_UI_Get_Application_Path().
CSG_String SG_File_Get_Path_Absolute | ( | const CSG_String & | full_Path | ) |
Definition at line 899 of file api_file.cpp.
References CSG_String::c_str().
Referenced by CSG_Tool_Library_Interface::Create(), CSG_Tool_Library::CSG_Tool_Library(), and SG_UI_Get_Application_Path().
CSG_String SG_File_Get_Path_Relative | ( | const CSG_String & | Directory, |
const CSG_String & | full_Path | ||
) |
Definition at line 909 of file api_file.cpp.
References CSG_String::c_str().
CSG_String SG_File_Make_Path | ( | const CSG_String & | Directory, |
const CSG_String & | Name | ||
) |
Definition at line 919 of file api_file.cpp.
Referenced by CSG_Tool_Library_Manager::Add_Default_Libraries(), CSG_Tool_Library_Manager::Add_Directory(), CSG_Projections::Create(), CSG_Translator::Create(), CSG_Grid_File_Info::Create(), CSG_Tool_Library_Manager::Create_Python_ToolBox(), CSG_Tool_Library::Get_Summary(), CSG_Tool_Library_Manager::Get_Summary(), CSG_MetaData::Load(), CSG_MetaData::Save(), CSG_PointCloud::Save(), CSG_Grid::Set_Cache(), SG_Dir_List_Files(), SG_Dir_List_Subdirectories(), SG_File_Get_Name_Temp(), and SG_FTP_Download().
CSG_String SG_File_Make_Path | ( | const CSG_String & | Directory, |
const CSG_String & | Name, | ||
const CSG_String & | Extension | ||
) |
Definition at line 924 of file api_file.cpp.
References CSG_String::c_str(), CSG_String::is_Empty(), SG_File_Get_Name(), and SG_File_Get_Path().
bool SG_File_Set_Extension | ( | CSG_String & | FileName, |
const CSG_String & | Extension | ||
) |
Definition at line 958 of file api_file.cpp.
References CSG_String::c_str(), and CSG_String::Length().
Referenced by CSG_Data_Object::Delete(), CSG_Data_Object::Load_MetaData(), CSG_Grid::On_Delete(), CSG_Grids::On_Delete(), CSG_Shapes::On_Delete(), CSG_PointCloud::Save(), and CSG_Data_Object::Save_MetaData().
bool SG_Get_Environment | ( | const CSG_String & | Variable, |
CSG_String * | Value | ||
) |
Definition at line 992 of file api_file.cpp.
References CSG_String::w_str().
Referenced by CSG_Tool_Library_Manager::Add_Default_Libraries().
bool SG_Set_Environment | ( | const CSG_String & | Variable, |
const CSG_String & | Value | ||
) |
Definition at line 1012 of file api_file.cpp.
References CSG_String::w_str().