SAGA API  v9.2
CSG_Data_Manager Class Reference

#include <data_manager.h>

Public Member Functions

 CSG_Data_Manager (void)
 
virtual ~CSG_Data_Manager (void)
 
CSG_Data_CollectionGet_Table (void) const
 
CSG_Data_CollectionasTIN (void) const
 
CSG_Data_CollectionGet_Point_Cloud (void) const
 
CSG_Data_CollectionGet_Shapes (void) const
 
size_t Grid_System_Count (void) const
 
CSG_Grid_CollectionGet_Grid_System (size_t i) const
 
CSG_Grid_CollectionGet_Grid_System (const CSG_Grid_System &System) const
 
bool Add (CSG_Data_Object *pObject)
 
CSG_Data_ObjectAdd (const CSG_String &File, TSG_Data_Object_Type Type=SG_DATAOBJECT_TYPE_Undefined)
 
CSG_Data_ObjectAdd (const char *File, TSG_Data_Object_Type Type=SG_DATAOBJECT_TYPE_Undefined)
 
CSG_Data_ObjectAdd (const wchar_t *File, TSG_Data_Object_Type Type=SG_DATAOBJECT_TYPE_Undefined)
 
CSG_TableAdd_Table (void)
 
CSG_TableAdd_Table (const CSG_String &File)
 
CSG_TableAdd_Table (const char *File)
 
CSG_TableAdd_Table (const wchar_t *File)
 
CSG_TINAdd_TIN (void)
 
CSG_TINAdd_TIN (const CSG_String &File)
 
CSG_TINAdd_TIN (const char *File)
 
CSG_TINAdd_TIN (const wchar_t *File)
 
CSG_PointCloudAdd_PointCloud (void)
 
CSG_PointCloudAdd_PointCloud (const CSG_String &File)
 
CSG_PointCloudAdd_PointCloud (const char *File)
 
CSG_PointCloudAdd_PointCloud (const wchar_t *File)
 
CSG_ShapesAdd_Shapes (TSG_Shape_Type Type=SHAPE_TYPE_Undefined)
 
CSG_ShapesAdd_Shapes (const CSG_String &File)
 
CSG_ShapesAdd_Shapes (const char *File)
 
CSG_ShapesAdd_Shapes (const wchar_t *File)
 
CSG_GridAdd_Grid (const CSG_Grid_System &System, TSG_Data_Type Type=SG_DATATYPE_Undefined)
 
CSG_GridAdd_Grid (int NX, int NY, double Cellsize=0., double xMin=0., double yMin=0., TSG_Data_Type Type=SG_DATATYPE_Undefined)
 
CSG_GridAdd_Grid (const CSG_String &File)
 
CSG_GridAdd_Grid (const char *File)
 
CSG_GridAdd_Grid (const wchar_t *File)
 
CSG_GridsAdd_Grids (const CSG_String &File)
 
CSG_GridsAdd_Grids (const char *File)
 
CSG_GridsAdd_Grids (const wchar_t *File)
 
bool Delete (CSG_Data_Collection *pCollection, bool bDetach=false)
 
bool Delete (CSG_Data_Object *pObject, bool bDetach=false)
 
bool Delete (const CSG_Grid_System &System, bool bDetach=false)
 
bool Delete (bool bDetach=false, bool bUnsaved=false)
 
bool Delete_All (bool bDetach=false)
 
bool Delete_Unsaved (bool bDetach=false)
 
bool Exists (CSG_Data_Object *pObject) const
 
bool Exists (const CSG_Grid_System &System) const
 
CSG_Data_ObjectFind (const CSG_String &File, bool bNative=true) const
 
CSG_String Get_Summary (void) const
 

Detailed Description

Definition at line 163 of file data_manager.h.

Constructor & Destructor Documentation

◆ CSG_Data_Manager()

CSG_Data_Manager::CSG_Data_Manager ( void  )

◆ ~CSG_Data_Manager()

CSG_Data_Manager::~CSG_Data_Manager ( void  )
virtual

Definition at line 325 of file data_manager.cpp.

References Delete_All().

Member Function Documentation

◆ Add() [1/4]

CSG_Data_Object* CSG_Data_Manager::Add ( const char *  File,
TSG_Data_Object_Type  Type = SG_DATAOBJECT_TYPE_Undefined 
)
inline

Definition at line 181 of file data_manager.h.

References Add().

Referenced by Add().

◆ Add() [2/4]

◆ Add() [3/4]

CSG_Data_Object* CSG_Data_Manager::Add ( const wchar_t *  File,
TSG_Data_Object_Type  Type = SG_DATAOBJECT_TYPE_Undefined 
)
inline

Definition at line 182 of file data_manager.h.

References Add().

Referenced by Add().

◆ Add() [4/4]

◆ Add_Grid() [1/5]

CSG_Grid* CSG_Data_Manager::Add_Grid ( const char *  File)
inline

Definition at line 207 of file data_manager.h.

References SG_DATAOBJECT_TYPE_Grid.

◆ Add_Grid() [2/5]

CSG_Grid * CSG_Data_Manager::Add_Grid ( const CSG_Grid_System System,
TSG_Data_Type  Type = SG_DATATYPE_Undefined 
)

Definition at line 662 of file data_manager.cpp.

References Add(), and CSG_Grid_System::is_Valid().

Referenced by CSG_Parameters::Add_Grid(), and Add_Grid().

◆ Add_Grid() [3/5]

CSG_Grid* CSG_Data_Manager::Add_Grid ( const CSG_String File)
inline

Definition at line 206 of file data_manager.h.

References SG_DATAOBJECT_TYPE_Grid.

◆ Add_Grid() [4/5]

CSG_Grid* CSG_Data_Manager::Add_Grid ( const wchar_t *  File)
inline

Definition at line 208 of file data_manager.h.

References SG_DATAOBJECT_TYPE_Grid.

◆ Add_Grid() [5/5]

CSG_Grid * CSG_Data_Manager::Add_Grid ( int  NX,
int  NY,
double  Cellsize = 0.,
double  xMin = 0.,
double  yMin = 0.,
TSG_Data_Type  Type = SG_DATATYPE_Undefined 
)

Definition at line 675 of file data_manager.cpp.

References Add_Grid().

◆ Add_Grids() [1/3]

CSG_Grids* CSG_Data_Manager::Add_Grids ( const char *  File)
inline

Definition at line 211 of file data_manager.h.

References SG_DATAOBJECT_TYPE_Grids.

◆ Add_Grids() [2/3]

CSG_Grids* CSG_Data_Manager::Add_Grids ( const CSG_String File)
inline

Definition at line 210 of file data_manager.h.

References SG_DATAOBJECT_TYPE_Grids.

◆ Add_Grids() [3/3]

CSG_Grids* CSG_Data_Manager::Add_Grids ( const wchar_t *  File)
inline

Definition at line 212 of file data_manager.h.

References SG_DATAOBJECT_TYPE_Grids.

◆ Add_PointCloud() [1/4]

CSG_PointCloud* CSG_Data_Manager::Add_PointCloud ( const char *  File)
inline

Definition at line 196 of file data_manager.h.

References SG_DATAOBJECT_TYPE_PointCloud.

◆ Add_PointCloud() [2/4]

CSG_PointCloud* CSG_Data_Manager::Add_PointCloud ( const CSG_String File)
inline

Definition at line 195 of file data_manager.h.

References SG_DATAOBJECT_TYPE_PointCloud.

◆ Add_PointCloud() [3/4]

CSG_PointCloud* CSG_Data_Manager::Add_PointCloud ( const wchar_t *  File)
inline

Definition at line 197 of file data_manager.h.

References SG_DATAOBJECT_TYPE_PointCloud.

◆ Add_PointCloud() [4/4]

CSG_PointCloud * CSG_Data_Manager::Add_PointCloud ( void  )

Definition at line 636 of file data_manager.cpp.

References Add().

Referenced by CSG_Parameters::Add_PointCloud().

◆ Add_Shapes() [1/4]

CSG_Shapes* CSG_Data_Manager::Add_Shapes ( const char *  File)
inline

Definition at line 201 of file data_manager.h.

References SG_DATAOBJECT_TYPE_Shapes.

◆ Add_Shapes() [2/4]

CSG_Shapes* CSG_Data_Manager::Add_Shapes ( const CSG_String File)
inline

Definition at line 200 of file data_manager.h.

References SG_DATAOBJECT_TYPE_Shapes.

◆ Add_Shapes() [3/4]

CSG_Shapes* CSG_Data_Manager::Add_Shapes ( const wchar_t *  File)
inline

Definition at line 202 of file data_manager.h.

References SG_DATAOBJECT_TYPE_Shapes.

◆ Add_Shapes() [4/4]

CSG_Shapes * CSG_Data_Manager::Add_Shapes ( TSG_Shape_Type  Type = SHAPE_TYPE_Undefined)

Definition at line 649 of file data_manager.cpp.

References Add().

Referenced by CSG_Parameters::Add_Shapes().

◆ Add_Table() [1/4]

CSG_Table* CSG_Data_Manager::Add_Table ( const char *  File)
inline

Definition at line 186 of file data_manager.h.

References SG_DATAOBJECT_TYPE_Table.

◆ Add_Table() [2/4]

CSG_Table* CSG_Data_Manager::Add_Table ( const CSG_String File)
inline

Definition at line 185 of file data_manager.h.

References SG_DATAOBJECT_TYPE_Table.

◆ Add_Table() [3/4]

CSG_Table* CSG_Data_Manager::Add_Table ( const wchar_t *  File)
inline

Definition at line 187 of file data_manager.h.

References SG_DATAOBJECT_TYPE_Table.

◆ Add_Table() [4/4]

CSG_Table * CSG_Data_Manager::Add_Table ( void  )

Definition at line 610 of file data_manager.cpp.

References Add().

Referenced by CSG_Parameters::Add_Table().

◆ Add_TIN() [1/4]

CSG_TIN* CSG_Data_Manager::Add_TIN ( const char *  File)
inline

Definition at line 191 of file data_manager.h.

References SG_DATAOBJECT_TYPE_TIN.

◆ Add_TIN() [2/4]

CSG_TIN* CSG_Data_Manager::Add_TIN ( const CSG_String File)
inline

Definition at line 190 of file data_manager.h.

References SG_DATAOBJECT_TYPE_TIN.

◆ Add_TIN() [3/4]

CSG_TIN* CSG_Data_Manager::Add_TIN ( const wchar_t *  File)
inline

Definition at line 192 of file data_manager.h.

References SG_DATAOBJECT_TYPE_TIN.

◆ Add_TIN() [4/4]

CSG_TIN * CSG_Data_Manager::Add_TIN ( void  )

Definition at line 623 of file data_manager.cpp.

References Add().

Referenced by CSG_Parameters::Add_TIN().

◆ asTIN()

CSG_Data_Collection* CSG_Data_Manager::asTIN ( void  ) const
inline

Definition at line 170 of file data_manager.h.

◆ Delete() [1/4]

bool CSG_Data_Manager::Delete ( bool  bDetach = false,
bool  bUnsaved = false 
)

◆ Delete() [2/4]

bool CSG_Data_Manager::Delete ( const CSG_Grid_System System,
bool  bDetach = false 
)

Definition at line 754 of file data_manager.cpp.

References Delete(), and Get_Grid_System().

◆ Delete() [3/4]

◆ Delete() [4/4]

bool CSG_Data_Manager::Delete ( CSG_Data_Object pObject,
bool  bDetach = false 
)

◆ Delete_All()

bool CSG_Data_Manager::Delete_All ( bool  bDetach = false)

Definition at line 782 of file data_manager.cpp.

References Delete().

Referenced by CSG_Tool::Delete_Manager(), and ~CSG_Data_Manager().

◆ Delete_Unsaved()

bool CSG_Data_Manager::Delete_Unsaved ( bool  bDetach = false)

Definition at line 788 of file data_manager.cpp.

References Delete().

◆ Exists() [1/2]

bool CSG_Data_Manager::Exists ( const CSG_Grid_System System) const

Definition at line 383 of file data_manager.cpp.

References Get_Grid_System().

◆ Exists() [2/2]

◆ Find()

CSG_Data_Object * CSG_Data_Manager::Find ( const CSG_String File,
bool  bNative = true 
) const

◆ Get_Grid_System() [1/2]

CSG_Grid_Collection * CSG_Data_Manager::Get_Grid_System ( const CSG_Grid_System System) const

◆ Get_Grid_System() [2/2]

CSG_Grid_Collection* CSG_Data_Manager::Get_Grid_System ( size_t  i) const
inline

Definition at line 175 of file data_manager.h.

Referenced by Delete(), Exists(), Find(), Get_Grid_System(), and Get_Summary().

◆ Get_Point_Cloud()

CSG_Data_Collection* CSG_Data_Manager::Get_Point_Cloud ( void  ) const
inline

Definition at line 171 of file data_manager.h.

Referenced by Get_Summary().

◆ Get_Shapes()

CSG_Data_Collection* CSG_Data_Manager::Get_Shapes ( void  ) const
inline

Definition at line 172 of file data_manager.h.

Referenced by Get_Summary().

◆ Get_Summary()

◆ Get_Table()

CSG_Data_Collection* CSG_Data_Manager::Get_Table ( void  ) const
inline

Definition at line 169 of file data_manager.h.

Referenced by Get_Summary().

◆ Grid_System_Count()

size_t CSG_Data_Manager::Grid_System_Count ( void  ) const
inline

Definition at line 174 of file data_manager.h.

Referenced by Delete(), Exists(), Find(), Get_Grid_System(), and Get_Summary().


The documentation for this class was generated from the following files: