SAGA API
v9.6
|
#include <table.h>
Public Member Functions | |
class CSG_Table * | Get_Table (void) |
sLong | Get_Index (void) const |
bool | Set_Value (int Field, const CSG_String &Value) |
bool | Set_Value (int Field, const char *Value) |
bool | Set_Value (int Field, const wchar_t *Value) |
bool | Set_Value (const CSG_String &Field, const CSG_String &Value) |
bool | Set_Value (const char *Field, const CSG_String &Value) |
bool | Set_Value (const wchar_t *Field, const CSG_String &Value) |
bool | Set_Value (const char *Field, const char *Value) |
bool | Set_Value (const wchar_t *Field, const wchar_t *Value) |
bool | Set_Value (int Field, const CSG_Bytes &Value) |
bool | Set_Value (const CSG_String &Field, const CSG_Bytes &Value) |
bool | Set_Value (const char *Field, const CSG_Bytes &Value) |
bool | Set_Value (const wchar_t *Field, const CSG_Bytes &Value) |
bool | Set_Value (int Field, double Value) |
bool | Set_Value (const CSG_String &Field, double Value) |
bool | Set_Value (const char *Field, double Value) |
bool | Set_Value (const wchar_t *Field, double Value) |
bool | Set_Value (int Field, sLong Value) |
bool | Set_Value (const CSG_String &Field, sLong Value) |
bool | Set_Value (const char *Field, sLong Value) |
bool | Set_Value (const wchar_t *Field, sLong Value) |
bool | Set_Value (int Field, size_t Value) |
bool | Set_Value (const CSG_String &Field, size_t Value) |
bool | Set_Value (const char *Field, size_t Value) |
bool | Set_Value (const wchar_t *Field, size_t Value) |
bool | Set_Value (int Field, DWORD Value) |
bool | Set_Value (const CSG_String &Field, DWORD Value) |
bool | Set_Value (const char *Field, DWORD Value) |
bool | Set_Value (const wchar_t *Field, DWORD Value) |
bool | Set_Value (int Field, long Value) |
bool | Set_Value (const CSG_String &Field, long Value) |
bool | Set_Value (const char *Field, long Value) |
bool | Set_Value (const wchar_t *Field, long Value) |
bool | Set_Value (int Field, int Value) |
bool | Set_Value (const CSG_String &Field, int Value) |
bool | Set_Value (const char *Field, int Value) |
bool | Set_Value (const wchar_t *Field, int Value) |
bool | Add_Value (int Field, double Value) |
bool | Add_Value (const CSG_String &Field, double Value) |
bool | Add_Value (const char *Field, double Value) |
bool | Add_Value (const wchar_t *Field, double Value) |
bool | Mul_Value (int Field, double Value) |
bool | Mul_Value (const CSG_String &Field, double Value) |
bool | Mul_Value (const char *Field, double Value) |
bool | Mul_Value (const wchar_t *Field, double Value) |
bool | Set_NoData (int Field) |
bool | Set_NoData (const CSG_String &Field) |
bool | Set_NoData (const char *Field) |
bool | Set_NoData (const wchar_t *Field) |
bool | is_NoData (int Field) const |
bool | is_NoData (const CSG_String &Field) const |
bool | is_NoData (const char *Field) const |
bool | is_NoData (const wchar_t *Field) const |
const SG_Char * | asString (int Field, int Decimals=-99) const |
const SG_Char * | asString (const CSG_String &Field, int Decimals=-99) const |
const SG_Char * | asString (const char *Field, int Decimals=-99) const |
const SG_Char * | asString (const wchar_t *Field, int Decimals=-99) const |
SG_Char | asChar (int Field) const |
SG_Char | asChar (const CSG_String &Field) const |
SG_Char | asChar (const char *Field) const |
SG_Char | asChar (const wchar_t *Field) const |
short | asShort (int Field) const |
short | asShort (const CSG_String &Field) const |
short | asShort (const char *Field) const |
short | asShort (const wchar_t *Field) const |
int | asInt (int Field) const |
int | asInt (const CSG_String &Field) const |
int | asInt (const char *Field) const |
int | asInt (const wchar_t *Field) const |
sLong | asLong (int Field) const |
sLong | asLong (const CSG_String &Field) const |
sLong | asLong (const char *Field) const |
sLong | asLong (const wchar_t *Field) const |
float | asFloat (int iField) const |
float | asFloat (const CSG_String &Field) const |
float | asFloat (const char *Field) const |
float | asFloat (const wchar_t *Field) const |
double | asDouble (int Field) const |
double | asDouble (const CSG_String &Field) const |
double | asDouble (const char *Field) const |
double | asDouble (const wchar_t *Field) const |
CSG_Table_Value * | Get_Value (int Field) |
CSG_Table_Value & | operator[] (int Field) const |
virtual bool | Assign (CSG_Table_Record *pRecord) |
bool | is_Selected (void) const |
bool | is_Modified (void) const |
Protected Member Functions | |
CSG_Table_Record (class CSG_Table *pTable, sLong Index) | |
virtual | ~CSG_Table_Record (void) |
void | Set_Selected (bool bOn=true) |
void | Set_Modified (bool bOn=true) |
bool | _Add_Field (int add_Field) |
bool | _Del_Field (int del_Field) |
int | _Get_Field (const CSG_String &Field) const |
Static Protected Member Functions | |
static CSG_Table_Value * | _Create_Value (TSG_Data_Type Type) |
Protected Attributes | |
char | m_Flags |
sLong | m_Index |
class CSG_Table_Value ** | m_Values |
class CSG_Table * | m_pTable |
Friends | |
class | CSG_Table |
class | CSG_PointCloud |
Definition at line 64 of file table_record.cpp.
References _Create_Value(), CSG_Table::Get_Field_Count(), CSG_Table::Get_Field_Type(), m_Flags, m_Index, m_pTable, m_Values, and SG_Malloc().
|
protectedvirtual |
Definition at line 86 of file table_record.cpp.
References CSG_Table::Get_Field_Count(), is_Selected(), m_Index, m_pTable, m_Values, CSG_Table::Select(), and SG_Free().
|
protected |
Definition at line 143 of file table_record.cpp.
References _Create_Value(), CSG_Table::Get_Field_Count(), CSG_Table::Get_Field_Type(), m_pTable, m_Values, and SG_Realloc().
Referenced by CSG_Table::Add_Field().
|
staticprotected |
Definition at line 110 of file table_record.cpp.
References SG_DATATYPE_Binary, SG_DATATYPE_Byte, SG_DATATYPE_Char, SG_DATATYPE_Color, SG_DATATYPE_Date, SG_DATATYPE_Double, SG_DATATYPE_DWord, SG_DATATYPE_Float, SG_DATATYPE_Int, SG_DATATYPE_Long, SG_DATATYPE_Short, SG_DATATYPE_String, SG_DATATYPE_ULong, and SG_DATATYPE_Word.
Referenced by _Add_Field(), CSG_Table_Record(), and CSG_Table::Set_Field_Type().
|
protected |
Definition at line 167 of file table_record.cpp.
References CSG_Table::Get_Field_Count(), m_pTable, m_Values, and SG_Realloc().
Referenced by CSG_Table::Del_Field().
|
protected |
Definition at line 182 of file table_record.cpp.
References CSG_String::Cmp(), CSG_Table::Get_Field_Count(), CSG_Table::Get_Field_Name(), CSG_String::Length(), and m_pTable.
Referenced by Add_Value(), asChar(), asDouble(), asFloat(), asInt(), asLong(), asShort(), asString(), is_NoData(), Mul_Value(), Set_NoData(), and Set_Value().
|
inline |
bool CSG_Table_Record::Add_Value | ( | const CSG_String & | Field, |
double | Value | ||
) |
Definition at line 339 of file table_record.cpp.
References _Get_Field(), and Add_Value().
|
inline |
bool CSG_Table_Record::Add_Value | ( | int | Field, |
double | Value | ||
) |
Definition at line 329 of file table_record.cpp.
References asDouble(), and Set_Value().
Referenced by Add_Value(), and CSG_Category_Statistics::Add_Value().
|
inline |
SG_Char CSG_Table_Record::asChar | ( | const CSG_String & | Field | ) | const |
Definition at line 477 of file table_record.cpp.
References _Get_Field(), and asChar().
|
inline |
SG_Char CSG_Table_Record::asChar | ( | int | Field | ) | const |
Definition at line 472 of file table_record.cpp.
References asInt(), and SG_Char.
Referenced by asChar().
|
inline |
double CSG_Table_Record::asDouble | ( | const CSG_String & | Field | ) | const |
Definition at line 532 of file table_record.cpp.
References _Get_Field(), and asDouble().
|
inline |
double CSG_Table_Record::asDouble | ( | int | Field | ) | const |
Definition at line 527 of file table_record.cpp.
References m_Values.
Referenced by CSG_Regression_Multiple::_Set_Step_Info(), CSG_Table::_Stats_Update(), CSG_PointCloud::Add_Shape(), Add_Value(), asDouble(), CSG_Category_Statistics::asDouble(), asFloat(), CSG_Natural_Breaks::Create(), CSG_KDTree_2D::Create(), CSG_KDTree_3D::Create(), CSG_PRQuadTree::Create(), CSG_Histogram::Create(), CSG_Regression_Multiple::Get_CV_NRMSE(), CSG_Regression_Multiple::Get_CV_R2(), CSG_Regression_Multiple::Get_CV_RMSE(), CSG_Regression_Multiple::Get_F(), CSG_TIN_Node::Get_Gradient(), CSG_TIN_Triangle::Get_Gradient(), CSG_Regression_Multiple::Get_Info(), CSG_Regression_Multiple::Get_P(), CSG_Regression_Multiple::Get_Parameter(), CSG_Parameters_Point_Search_KDTree_2D::Get_Point(), CSG_Regression_Multiple::Get_R2(), CSG_Regression_Multiple::Get_R2_Adj(), CSG_Regression_Multiple::Get_RConst(), CSG_Regression_Multiple::Get_StdError(), CSG_TIN_Triangle::Get_Value(), CSG_Table::Get_Value(), CSG_Grid_Cell_Addressor::Get_Values(), Mul_Value(), and CSG_Table_DBase::Open_Write().
|
inline |
float CSG_Table_Record::asFloat | ( | const CSG_String & | Field | ) | const |
Definition at line 521 of file table_record.cpp.
References _Get_Field(), and asFloat().
|
inline |
float CSG_Table_Record::asFloat | ( | int | iField | ) | const |
|
inline |
int CSG_Table_Record::asInt | ( | const CSG_String & | Field | ) | const |
Definition at line 499 of file table_record.cpp.
References _Get_Field(), and asInt().
|
inline |
int CSG_Table_Record::asInt | ( | int | Field | ) | const |
Definition at line 494 of file table_record.cpp.
References m_Values.
Referenced by asChar(), asInt(), CSG_Category_Statistics::asInt(), asShort(), CSG_Category_Statistics::Get_Count(), CSG_Regression_Multiple::Get_CV_nSamples(), CSG_Regression_Multiple::Get_Info(), CSG_Category_Statistics::Get_Majority(), CSG_Category_Statistics::Get_Minority(), CSG_Projections::Get_Names_List(), CSG_Regression_Multiple::Get_nPredictors(), CSG_Regression_Multiple::Get_nSamples(), CSG_Projections::Get_Preference(), CSG_Projections::Get_Projection(), and CSG_Grid_Cell_Addressor::Get_Values().
|
inline |
sLong CSG_Table_Record::asLong | ( | const CSG_String & | Field | ) | const |
Definition at line 510 of file table_record.cpp.
References _Get_Field(), and asLong().
|
inline |
sLong CSG_Table_Record::asLong | ( | int | Field | ) | const |
|
inline |
short CSG_Table_Record::asShort | ( | const CSG_String & | Field | ) | const |
Definition at line 488 of file table_record.cpp.
References _Get_Field(), and asShort().
|
inline |
short CSG_Table_Record::asShort | ( | int | Field | ) | const |
|
virtual |
Reimplemented in CSG_Shape.
Definition at line 543 of file table_record.cpp.
References CSG_Table::Get_Field_Count(), m_pTable, m_Values, and Set_Modified().
Referenced by CSG_Shape::Assign(), CSG_Table::Assign_Values(), and CSG_Table::Ins_Record().
|
inline |
const SG_Char * CSG_Table_Record::asString | ( | const CSG_String & | Field, |
int | Decimals = -99 |
||
) | const |
Definition at line 466 of file table_record.cpp.
References _Get_Field(), and asString().
|
inline |
const SG_Char * CSG_Table_Record::asString | ( | int | Field, |
int | Decimals = -99 |
||
) | const |
Definition at line 461 of file table_record.cpp.
References m_Values.
Referenced by CSG_Table::_Save_Text(), CSG_Parameter_Fixed_Table::_Serialize(), CSG_PointCloud::Add_Shape(), asString(), CSG_Category_Statistics::asString(), CSG_Translator::Create(), CSG_Table::Find_Record(), CSG_Regression_Multiple::Get_Info(), CSG_Regression_Multiple::Get_Name(), CSG_Projections::Get_Names_List(), CSG_Projections::Get_Preference(), CSG_Projections::Get_Projection(), CSG_Table::Get_Value(), is_NoData(), CSG_Parameter::is_Value_Equal(), and CSG_Table_DBase::Open_Write().
|
inline |
Definition at line 136 of file table.h.
Referenced by CSG_TIN::Assign(), CSG_Shapes::Del_Shape(), CSG_Table::Find_Record(), CSG_Category_Statistics::Get_Category(), and CSG_Table::Select().
|
inline |
Definition at line 135 of file table.h.
Referenced by CSG_Shape_Part::_Alloc_Memory(), CSG_PointCloud::Add_Shape(), and CSG_Shape::Assign().
|
inline |
Definition at line 237 of file table.h.
Referenced by CSG_Table::Mov_Field().
|
inline |
Definition at line 243 of file table.h.
References SG_TABLE_REC_FLAG_Modified.
Referenced by Set_Modified().
|
inline |
bool CSG_Table_Record::is_NoData | ( | const CSG_String & | Field | ) | const |
Definition at line 450 of file table_record.cpp.
References _Get_Field(), and is_NoData().
|
inline |
bool CSG_Table_Record::is_NoData | ( | int | Field | ) | const |
Definition at line 416 of file table_record.cpp.
References CSG_Table_Value::asDouble(), CSG_Table_Value::asInt(), asString(), CSG_Table::Get_Field_Type(), CSG_Data_Object::is_NoData_Value(), m_pTable, m_Values, SG_DATATYPE_Binary, SG_DATATYPE_Byte, SG_DATATYPE_Char, SG_DATATYPE_Color, SG_DATATYPE_Date, SG_DATATYPE_Double, SG_DATATYPE_DWord, SG_DATATYPE_Float, SG_DATATYPE_Int, SG_DATATYPE_Long, SG_DATATYPE_Short, SG_DATATYPE_String, SG_DATATYPE_ULong, and SG_DATATYPE_Word.
Referenced by CSG_Table::_Save_Text(), CSG_Table::_Stats_Update(), CSG_Natural_Breaks::Create(), CSG_Translator::Create(), CSG_KDTree_2D::Create(), CSG_KDTree_3D::Create(), CSG_Parameters_Point_Search_KDTree_2D::Get_Point(), is_NoData(), and CSG_Table_DBase::Open_Write().
|
inline |
Definition at line 242 of file table.h.
References SG_TABLE_REC_FLAG_Selected.
Referenced by CSG_Table::Inv_Selection(), CSG_Table::Select(), Set_Selected(), and ~CSG_Table_Record().
|
inline |
bool CSG_Table_Record::Mul_Value | ( | const CSG_String & | Field, |
double | Value | ||
) |
Definition at line 355 of file table_record.cpp.
References _Get_Field(), and Mul_Value().
|
inline |
bool CSG_Table_Record::Mul_Value | ( | int | Field, |
double | Value | ||
) |
Definition at line 345 of file table_record.cpp.
References asDouble(), and Set_Value().
Referenced by Mul_Value().
|
inline |
|
protected |
Definition at line 220 of file table_record.cpp.
References is_Modified(), m_Flags, m_pTable, CSG_Table::Set_Modified(), and SG_TABLE_REC_FLAG_Modified.
Referenced by CSG_Shape::_Invalidate(), Assign(), CSG_Table::Set_Field_Type(), CSG_Table::Set_Modified(), Set_NoData(), and Set_Value().
|
inline |
bool CSG_Table_Record::Set_NoData | ( | const CSG_String & | Field | ) |
Definition at line 410 of file table_record.cpp.
References _Get_Field(), and Set_NoData().
|
inline |
bool CSG_Table_Record::Set_NoData | ( | int | Field | ) |
Definition at line 366 of file table_record.cpp.
References CSG_Table::_Stats_Invalidate(), CSG_Table_Value::asBinary(), CSG_Bytes::Destroy(), CSG_Table::Get_Field_Type(), CSG_Data_Object::Get_NoData_Value(), m_pTable, m_Values, Set_Modified(), CSG_Data_Object::Set_Update_Flag(), Set_Value(), SG_DATATYPE_Binary, SG_DATATYPE_Byte, SG_DATATYPE_Char, SG_DATATYPE_Color, SG_DATATYPE_Date, SG_DATATYPE_Double, SG_DATATYPE_DWord, SG_DATATYPE_Float, SG_DATATYPE_Int, SG_DATATYPE_Long, SG_DATATYPE_Short, SG_DATATYPE_String, SG_DATATYPE_ULong, SG_DATATYPE_Word, and SG_T.
Referenced by CSG_Regression_Multiple::_Initialize(), CSG_Regression_Multiple::Destroy(), CSG_Table_DBase::Open_Read(), and Set_NoData().
|
protected |
Definition at line 204 of file table_record.cpp.
References is_Selected(), m_Flags, and SG_TABLE_REC_FLAG_Selected.
Referenced by CSG_Table::Del_Selection(), CSG_Table::Inv_Selection(), and CSG_Table::Select().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
bool CSG_Table_Record::Set_Value | ( | const CSG_String & | Field, |
const CSG_Bytes & | Value | ||
) |
Definition at line 264 of file table_record.cpp.
References _Get_Field(), and Set_Value().
bool CSG_Table_Record::Set_Value | ( | const CSG_String & | Field, |
const CSG_String & | Value | ||
) |
Definition at line 288 of file table_record.cpp.
References _Get_Field(), and Set_Value().
bool CSG_Table_Record::Set_Value | ( | const CSG_String & | Field, |
double | Value | ||
) |
Definition at line 323 of file table_record.cpp.
References _Get_Field(), and Set_Value().
|
inline |
|
inline |
|
inline |
|
inline |
bool CSG_Table_Record::Set_Value | ( | const CSG_String & | Field, |
sLong | Value | ||
) |
Definition at line 299 of file table_record.cpp.
References Set_Value().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
bool CSG_Table_Record::Set_Value | ( | int | Field, |
const CSG_Bytes & | Value | ||
) |
Definition at line 246 of file table_record.cpp.
References CSG_Table::_Stats_Invalidate(), m_pTable, m_Values, Set_Modified(), CSG_Data_Object::Set_Update_Flag(), and Set_Value().
bool CSG_Table_Record::Set_Value | ( | int | Field, |
const CSG_String & | Value | ||
) |
Definition at line 270 of file table_record.cpp.
References CSG_Table::_Stats_Invalidate(), m_pTable, m_Values, Set_Modified(), and CSG_Data_Object::Set_Update_Flag().
Referenced by CSG_Regression_Multiple::_Get_Regression(), CSG_Parameter_Fixed_Table::_Serialize(), CSG_Regression_Multiple::_Set_Step_Info(), CSG_Projections::Add(), Add_Value(), CSG_Translator::Create(), CSG_Regression_Multiple::CSG_Regression_Multiple(), CSG_Regression_Multiple::Get_CrossValidation(), CSG_Projections::Get_Names_List(), CSG_MetaData::Get_Table(), Mul_Value(), CSG_Table_DBase::Open_Read(), CSG_Table::Serialize(), Set_NoData(), Set_Value(), and CSG_Table::Set_Value().
|
inline |
bool CSG_Table_Record::Set_Value | ( | int | Field, |
double | Value | ||
) |
Definition at line 305 of file table_record.cpp.
References CSG_Table::_Stats_Invalidate(), m_pTable, m_Values, Set_Modified(), CSG_Data_Object::Set_Update_Flag(), and Set_Value().
|
inline |
|
inline |
|
inline |
|
inline |
bool CSG_Table_Record::Set_Value | ( | int | Field, |
sLong | Value | ||
) |
Definition at line 294 of file table_record.cpp.
References Set_Value().
|
friend |
|
protected |
Definition at line 252 of file table.h.
Referenced by CSG_Table_Record(), Set_Modified(), and Set_Selected().
|
protected |
Definition at line 254 of file table.h.
Referenced by CSG_Table_Record(), CSG_Table::Del_Record(), CSG_Table::Ins_Record(), and ~CSG_Table_Record().
|
protected |
Definition at line 258 of file table.h.
Referenced by _Add_Field(), _Del_Field(), _Get_Field(), CSG_Shape::_Invalidate(), Assign(), CSG_Table_Record(), CSG_Shape::Get_Type(), CSG_Shape::Get_Vertex_Type(), is_NoData(), Set_Modified(), Set_NoData(), Set_Value(), and ~CSG_Table_Record().
|
protected |
Definition at line 256 of file table.h.
Referenced by _Add_Field(), _Del_Field(), asDouble(), asInt(), asLong(), Assign(), asString(), CSG_Table_Record(), is_NoData(), CSG_Table::Set_Field_Type(), Set_NoData(), Set_Value(), and ~CSG_Table_Record().