SAGA API  v9.5
CSG_Table_Record Class Reference

#include <table.h>

Inheritance diagram for CSG_Table_Record:
CSG_Shape CSG_TIN_Node CSG_Shape_Point CSG_Shape_Points CSG_Shape_Point_Z CSG_Shape_Line CSG_Shape_Polygon CSG_Shape_Point_ZM

Public Member Functions

class CSG_TableGet_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_CharasString (int Field, int Decimals=-99) const
 
const SG_CharasString (const CSG_String &Field, int Decimals=-99) const
 
const SG_CharasString (const char *Field, int Decimals=-99) const
 
const SG_CharasString (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_ValueGet_Value (int Field)
 
CSG_Table_Valueoperator[] (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_Tablem_pTable
 

Friends

class CSG_Table
 
class CSG_PointCloud
 

Detailed Description

Definition at line 129 of file table.h.

Constructor & Destructor Documentation

◆ CSG_Table_Record()

CSG_Table_Record::CSG_Table_Record ( class CSG_Table pTable,
sLong  Index 
)
protected

◆ ~CSG_Table_Record()

CSG_Table_Record::~CSG_Table_Record ( void  )
protectedvirtual

Member Function Documentation

◆ _Add_Field()

bool CSG_Table_Record::_Add_Field ( int  add_Field)
protected

◆ _Create_Value()

◆ _Del_Field()

bool CSG_Table_Record::_Del_Field ( int  del_Field)
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().

◆ _Get_Field()

int CSG_Table_Record::_Get_Field ( const CSG_String Field) const
protected

◆ Add_Value() [1/4]

bool CSG_Table_Record::Add_Value ( const char *  Field,
double  Value 
)
inline

Definition at line 184 of file table.h.

References Add_Value().

Referenced by Add_Value().

◆ Add_Value() [2/4]

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().

◆ Add_Value() [3/4]

bool CSG_Table_Record::Add_Value ( const wchar_t *  Field,
double  Value 
)
inline

Definition at line 185 of file table.h.

References Add_Value().

Referenced by Add_Value().

◆ Add_Value() [4/4]

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().

◆ asChar() [1/4]

SG_Char CSG_Table_Record::asChar ( const char *  Field) const
inline

Definition at line 209 of file table.h.

◆ asChar() [2/4]

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().

◆ asChar() [3/4]

SG_Char CSG_Table_Record::asChar ( const wchar_t *  Field) const
inline

Definition at line 210 of file table.h.

◆ asChar() [4/4]

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().

◆ asDouble() [1/4]

double CSG_Table_Record::asDouble ( const char *  Field) const
inline

Definition at line 234 of file table.h.

References asDouble().

Referenced by asDouble().

◆ asDouble() [2/4]

double CSG_Table_Record::asDouble ( const CSG_String Field) const

Definition at line 532 of file table_record.cpp.

References _Get_Field(), and asDouble().

◆ asDouble() [3/4]

double CSG_Table_Record::asDouble ( const wchar_t *  Field) const
inline

Definition at line 235 of file table.h.

References asDouble().

Referenced by asDouble().

◆ asDouble() [4/4]

◆ asFloat() [1/4]

float CSG_Table_Record::asFloat ( const char *  Field) const
inline

Definition at line 229 of file table.h.

◆ asFloat() [2/4]

float CSG_Table_Record::asFloat ( const CSG_String Field) const

Definition at line 521 of file table_record.cpp.

References _Get_Field(), and asFloat().

◆ asFloat() [3/4]

float CSG_Table_Record::asFloat ( const wchar_t *  Field) const
inline

Definition at line 230 of file table.h.

◆ asFloat() [4/4]

float CSG_Table_Record::asFloat ( int  iField) const

Definition at line 516 of file table_record.cpp.

References asDouble().

Referenced by asFloat().

◆ asInt() [1/4]

int CSG_Table_Record::asInt ( const char *  Field) const
inline

Definition at line 219 of file table.h.

◆ asInt() [2/4]

int CSG_Table_Record::asInt ( const CSG_String Field) const

Definition at line 499 of file table_record.cpp.

References _Get_Field(), and asInt().

◆ asInt() [3/4]

int CSG_Table_Record::asInt ( const wchar_t *  Field) const
inline

Definition at line 220 of file table.h.

◆ asInt() [4/4]

◆ asLong() [1/4]

sLong CSG_Table_Record::asLong ( const char *  Field) const
inline

Definition at line 224 of file table.h.

◆ asLong() [2/4]

sLong CSG_Table_Record::asLong ( const CSG_String Field) const

Definition at line 510 of file table_record.cpp.

References _Get_Field(), and asLong().

◆ asLong() [3/4]

sLong CSG_Table_Record::asLong ( const wchar_t *  Field) const
inline

Definition at line 225 of file table.h.

◆ asLong() [4/4]

sLong CSG_Table_Record::asLong ( int  Field) const

Definition at line 505 of file table_record.cpp.

References m_Values.

Referenced by asLong().

◆ asShort() [1/4]

short CSG_Table_Record::asShort ( const char *  Field) const
inline

Definition at line 214 of file table.h.

◆ asShort() [2/4]

short CSG_Table_Record::asShort ( const CSG_String Field) const

Definition at line 488 of file table_record.cpp.

References _Get_Field(), and asShort().

◆ asShort() [3/4]

short CSG_Table_Record::asShort ( const wchar_t *  Field) const
inline

Definition at line 215 of file table.h.

◆ asShort() [4/4]

short CSG_Table_Record::asShort ( int  Field) const

Definition at line 483 of file table_record.cpp.

References asInt().

Referenced by asShort().

◆ Assign()

bool CSG_Table_Record::Assign ( CSG_Table_Record pRecord)
virtual

◆ asString() [1/4]

const SG_Char* CSG_Table_Record::asString ( const char *  Field,
int  Decimals = -99 
) const
inline

Definition at line 204 of file table.h.

References asString().

Referenced by asString().

◆ asString() [2/4]

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().

◆ asString() [3/4]

const SG_Char* CSG_Table_Record::asString ( const wchar_t *  Field,
int  Decimals = -99 
) const
inline

Definition at line 205 of file table.h.

References asString().

Referenced by asString().

◆ asString() [4/4]

◆ Get_Index()

sLong CSG_Table_Record::Get_Index ( void  ) const
inline

◆ Get_Table()

class CSG_Table* CSG_Table_Record::Get_Table ( void  )
inline

◆ Get_Value()

CSG_Table_Value* CSG_Table_Record::Get_Value ( int  Field)
inline

Definition at line 237 of file table.h.

Referenced by CSG_Table::Mov_Field().

◆ is_Modified()

bool CSG_Table_Record::is_Modified ( void  ) const
inline

Definition at line 243 of file table.h.

References SG_TABLE_REC_FLAG_Modified.

Referenced by Set_Modified().

◆ is_NoData() [1/4]

bool CSG_Table_Record::is_NoData ( const char *  Field) const
inline

Definition at line 199 of file table.h.

References is_NoData().

Referenced by is_NoData().

◆ is_NoData() [2/4]

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().

◆ is_NoData() [3/4]

bool CSG_Table_Record::is_NoData ( const wchar_t *  Field) const
inline

Definition at line 200 of file table.h.

References is_NoData().

Referenced by is_NoData().

◆ is_NoData() [4/4]

◆ is_Selected()

bool CSG_Table_Record::is_Selected ( void  ) const
inline

◆ Mul_Value() [1/4]

bool CSG_Table_Record::Mul_Value ( const char *  Field,
double  Value 
)
inline

Definition at line 189 of file table.h.

References Mul_Value().

Referenced by Mul_Value().

◆ Mul_Value() [2/4]

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().

◆ Mul_Value() [3/4]

bool CSG_Table_Record::Mul_Value ( const wchar_t *  Field,
double  Value 
)
inline

Definition at line 190 of file table.h.

References Mul_Value().

Referenced by Mul_Value().

◆ Mul_Value() [4/4]

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().

◆ operator[]()

CSG_Table_Value& CSG_Table_Record::operator[] ( int  Field) const
inline

Definition at line 238 of file table.h.

◆ Set_Modified()

void CSG_Table_Record::Set_Modified ( bool  bOn = true)
protected

◆ Set_NoData() [1/4]

bool CSG_Table_Record::Set_NoData ( const char *  Field)
inline

Definition at line 194 of file table.h.

References Set_NoData().

Referenced by Set_NoData().

◆ Set_NoData() [2/4]

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().

◆ Set_NoData() [3/4]

bool CSG_Table_Record::Set_NoData ( const wchar_t *  Field)
inline

Definition at line 195 of file table.h.

References Set_NoData().

Referenced by Set_NoData().

◆ Set_NoData() [4/4]

◆ Set_Selected()

void CSG_Table_Record::Set_Selected ( bool  bOn = true)
protected

◆ Set_Value() [1/36]

bool CSG_Table_Record::Set_Value ( const char *  Field,
const char *  Value 
)
inline

Definition at line 144 of file table.h.

References Set_Value().

Referenced by Set_Value().

◆ Set_Value() [2/36]

bool CSG_Table_Record::Set_Value ( const char *  Field,
const CSG_Bytes Value 
)
inline

Definition at line 149 of file table.h.

References Set_Value().

Referenced by Set_Value().

◆ Set_Value() [3/36]

bool CSG_Table_Record::Set_Value ( const char *  Field,
const CSG_String Value 
)
inline

Definition at line 142 of file table.h.

References Set_Value().

Referenced by Set_Value().

◆ Set_Value() [4/36]

bool CSG_Table_Record::Set_Value ( const char *  Field,
double  Value 
)
inline

Definition at line 154 of file table.h.

References Set_Value().

Referenced by Set_Value().

◆ Set_Value() [5/36]

bool CSG_Table_Record::Set_Value ( const char *  Field,
DWORD  Value 
)
inline

Definition at line 169 of file table.h.

References Set_Value().

Referenced by Set_Value().

◆ Set_Value() [6/36]

bool CSG_Table_Record::Set_Value ( const char *  Field,
int  Value 
)
inline

Definition at line 179 of file table.h.

References Set_Value().

Referenced by Set_Value().

◆ Set_Value() [7/36]

bool CSG_Table_Record::Set_Value ( const char *  Field,
long  Value 
)
inline

Definition at line 174 of file table.h.

References Set_Value().

Referenced by Set_Value().

◆ Set_Value() [8/36]

bool CSG_Table_Record::Set_Value ( const char *  Field,
size_t  Value 
)
inline

Definition at line 164 of file table.h.

References Set_Value().

Referenced by Set_Value().

◆ Set_Value() [9/36]

bool CSG_Table_Record::Set_Value ( const char *  Field,
sLong  Value 
)
inline

Definition at line 159 of file table.h.

References Set_Value().

Referenced by Set_Value().

◆ Set_Value() [10/36]

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().

◆ Set_Value() [11/36]

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().

◆ Set_Value() [12/36]

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().

◆ Set_Value() [13/36]

bool CSG_Table_Record::Set_Value ( const CSG_String Field,
DWORD  Value 
)
inline

Definition at line 168 of file table.h.

References Set_Value().

Referenced by Set_Value().

◆ Set_Value() [14/36]

bool CSG_Table_Record::Set_Value ( const CSG_String Field,
int  Value 
)
inline

Definition at line 178 of file table.h.

References Set_Value().

Referenced by Set_Value().

◆ Set_Value() [15/36]

bool CSG_Table_Record::Set_Value ( const CSG_String Field,
long  Value 
)
inline

Definition at line 173 of file table.h.

References Set_Value().

Referenced by Set_Value().

◆ Set_Value() [16/36]

bool CSG_Table_Record::Set_Value ( const CSG_String Field,
size_t  Value 
)
inline

Definition at line 163 of file table.h.

References Set_Value().

Referenced by Set_Value().

◆ Set_Value() [17/36]

bool CSG_Table_Record::Set_Value ( const CSG_String Field,
sLong  Value 
)

Definition at line 299 of file table_record.cpp.

References Set_Value().

◆ Set_Value() [18/36]

bool CSG_Table_Record::Set_Value ( const wchar_t *  Field,
const CSG_Bytes Value 
)
inline

Definition at line 150 of file table.h.

References Set_Value().

Referenced by Set_Value().

◆ Set_Value() [19/36]

bool CSG_Table_Record::Set_Value ( const wchar_t *  Field,
const CSG_String Value 
)
inline

Definition at line 143 of file table.h.

References Set_Value().

Referenced by Set_Value().

◆ Set_Value() [20/36]

bool CSG_Table_Record::Set_Value ( const wchar_t *  Field,
const wchar_t *  Value 
)
inline

Definition at line 145 of file table.h.

References Set_Value().

Referenced by Set_Value().

◆ Set_Value() [21/36]

bool CSG_Table_Record::Set_Value ( const wchar_t *  Field,
double  Value 
)
inline

Definition at line 155 of file table.h.

References Set_Value().

Referenced by Set_Value().

◆ Set_Value() [22/36]

bool CSG_Table_Record::Set_Value ( const wchar_t *  Field,
DWORD  Value 
)
inline

Definition at line 170 of file table.h.

References Set_Value().

Referenced by Set_Value().

◆ Set_Value() [23/36]

bool CSG_Table_Record::Set_Value ( const wchar_t *  Field,
int  Value 
)
inline

Definition at line 180 of file table.h.

References Set_Value().

Referenced by Set_Value().

◆ Set_Value() [24/36]

bool CSG_Table_Record::Set_Value ( const wchar_t *  Field,
long  Value 
)
inline

Definition at line 175 of file table.h.

References Set_Value().

Referenced by Set_Value().

◆ Set_Value() [25/36]

bool CSG_Table_Record::Set_Value ( const wchar_t *  Field,
size_t  Value 
)
inline

Definition at line 165 of file table.h.

References Set_Value().

Referenced by Set_Value().

◆ Set_Value() [26/36]

bool CSG_Table_Record::Set_Value ( const wchar_t *  Field,
sLong  Value 
)
inline

Definition at line 160 of file table.h.

References Set_Value().

Referenced by Set_Value().

◆ Set_Value() [27/36]

bool CSG_Table_Record::Set_Value ( int  Field,
const char *  Value 
)
inline

Definition at line 139 of file table.h.

References Set_Value().

Referenced by Set_Value().

◆ Set_Value() [28/36]

bool CSG_Table_Record::Set_Value ( int  Field,
const CSG_Bytes Value 
)

◆ Set_Value() [29/36]

◆ Set_Value() [30/36]

bool CSG_Table_Record::Set_Value ( int  Field,
const wchar_t *  Value 
)
inline

Definition at line 140 of file table.h.

References Set_Value().

Referenced by Set_Value().

◆ Set_Value() [31/36]

bool CSG_Table_Record::Set_Value ( int  Field,
double  Value 
)

◆ Set_Value() [32/36]

bool CSG_Table_Record::Set_Value ( int  Field,
DWORD  Value 
)
inline

Definition at line 167 of file table.h.

References Set_Value().

Referenced by Set_Value().

◆ Set_Value() [33/36]

bool CSG_Table_Record::Set_Value ( int  Field,
int  Value 
)
inline

Definition at line 177 of file table.h.

References Set_Value().

Referenced by Set_Value().

◆ Set_Value() [34/36]

bool CSG_Table_Record::Set_Value ( int  Field,
long  Value 
)
inline

Definition at line 172 of file table.h.

References Set_Value().

Referenced by Set_Value().

◆ Set_Value() [35/36]

bool CSG_Table_Record::Set_Value ( int  Field,
size_t  Value 
)
inline

Definition at line 162 of file table.h.

References Set_Value().

Referenced by Set_Value().

◆ Set_Value() [36/36]

bool CSG_Table_Record::Set_Value ( int  Field,
sLong  Value 
)

Definition at line 294 of file table_record.cpp.

References Set_Value().

Friends And Related Function Documentation

◆ CSG_PointCloud

friend class CSG_PointCloud
friend

Definition at line 131 of file table.h.

◆ CSG_Table

friend class CSG_Table
friend

Definition at line 131 of file table.h.

Member Data Documentation

◆ m_Flags

char CSG_Table_Record::m_Flags
protected

Definition at line 252 of file table.h.

Referenced by CSG_Table_Record(), Set_Modified(), and Set_Selected().

◆ m_Index

sLong CSG_Table_Record::m_Index
protected

◆ m_pTable

◆ m_Values


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