SAGA API v9.10
Loading...
Searching...
No Matches
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
virtual bool is_Valid (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 Field) 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

Definition at line 86 of file table_record.cpp.

References is_Selected(), m_Index, m_pTable, m_Values, and SG_Free().

Member Function Documentation

◆ _Add_Field()

bool CSG_Table_Record::_Add_Field ( int add_Field)
protected

Definition at line 143 of file table_record.cpp.

References _Create_Value(), m_pTable, m_Values, and SG_Realloc().

◆ _Create_Value()

◆ _Del_Field()

bool CSG_Table_Record::_Del_Field ( int del_Field)
protected

Definition at line 167 of file table_record.cpp.

References m_pTable, m_Values, and SG_Realloc().

◆ _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 186 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 187 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 )

◆ asChar() [1/4]

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

Definition at line 211 of file table.h.

References asChar(), and SG_Char.

◆ 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(), asChar(), and SG_Char.

◆ asChar() [3/4]

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

Definition at line 212 of file table.h.

References asChar(), and SG_Char.

◆ 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(), asChar(), and asChar().

◆ asDouble() [1/4]

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

Definition at line 236 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 237 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 231 of file table.h.

References asFloat().

◆ 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 232 of file table.h.

References asFloat().

◆ asFloat() [4/4]

float CSG_Table_Record::asFloat ( int Field) const

Definition at line 516 of file table_record.cpp.

References asDouble().

Referenced by asFloat(), asFloat(), and asFloat().

◆ asInt() [1/4]

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

Definition at line 221 of file table.h.

References asInt().

◆ 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 222 of file table.h.

References asInt().

◆ asInt() [4/4]

◆ asLong() [1/4]

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

Definition at line 226 of file table.h.

References asLong().

◆ 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 227 of file table.h.

References asLong().

◆ asLong() [4/4]

sLong CSG_Table_Record::asLong ( int Field) const

Definition at line 505 of file table_record.cpp.

References asLong(), and m_Values.

Referenced by asLong(), asLong(), asLong(), and asLong().

◆ asShort() [1/4]

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

Definition at line 216 of file table.h.

References asShort().

◆ 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 217 of file table.h.

References asShort().

◆ 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(), asShort(), and 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 206 of file table.h.

References asString(), and SG_Char.

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(), asString(), and SG_Char.

◆ asString() [3/4]

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

Definition at line 207 of file table.h.

References asString(), and SG_Char.

Referenced by asString().

◆ asString() [4/4]

◆ Get_Index()

◆ Get_Table()

class CSG_Table * CSG_Table_Record::Get_Table ( void )
inline

Definition at line 135 of file table.h.

References CSG_Table, and m_pTable.

Referenced by CSG_PointCloud::Add_Shape(), and CSG_Shape::Assign().

◆ Get_Value()

CSG_Table_Value * CSG_Table_Record::Get_Value ( int Field)
inline

Definition at line 239 of file table.h.

References m_Values.

◆ is_Modified()

bool CSG_Table_Record::is_Modified ( void ) const
inline

Definition at line 245 of file table.h.

References m_Flags, and 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 201 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 202 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

◆ is_Valid()

virtual bool CSG_Table_Record::is_Valid ( void ) const
inlinevirtual

Reimplemented in CSG_Shape_Line, CSG_Shape_Point, CSG_Shape_Points, and CSG_Shape_Polygon.

Definition at line 138 of file table.h.

◆ Mul_Value() [1/4]

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

Definition at line 191 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 192 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 240 of file table.h.

References m_Values.

◆ 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 196 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 197 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

Definition at line 204 of file table_record.cpp.

References is_Selected(), m_Flags, and SG_TABLE_REC_FLAG_Selected.

Referenced by CSG_Table::Inv_Selection(), and CSG_Table::Select().

◆ Set_Value() [1/36]

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

Definition at line 146 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 151 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 144 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 156 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 171 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 181 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 176 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 166 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 161 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 170 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 180 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 175 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 165 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 152 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 145 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 147 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 157 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 172 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 182 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 177 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 167 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 162 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 141 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 )

Definition at line 246 of file table_record.cpp.

References m_pTable, m_Values, Set_Modified(), and Set_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 142 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 )

Definition at line 305 of file table_record.cpp.

References m_pTable, m_Values, Set_Modified(), and Set_Value().

◆ Set_Value() [32/36]

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

Definition at line 169 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 179 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 174 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 164 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().

◆ CSG_PointCloud

friend class CSG_PointCloud
friend

Definition at line 131 of file table.h.

References CSG_PointCloud, and CSG_Table.

Referenced by CSG_PointCloud.

◆ CSG_Table

friend class CSG_Table
friend

Definition at line 131 of file table.h.

Referenced by CSG_PointCloud, CSG_Table_Record(), and Get_Table().

Member Data Documentation

◆ m_Flags

char CSG_Table_Record::m_Flags
protected

◆ m_Index

sLong CSG_Table_Record::m_Index
protected

Definition at line 256 of file table.h.

Referenced by CSG_Table_Record(), Get_Index(), CSG_Table::Ins_Record(), and ~CSG_Table_Record().

◆ m_pTable

◆ m_Values


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