74 for(
int iField=0; iField<
m_pTable->Get_Field_Count(); iField++)
93 if(
m_pTable->Get_Field_Count() > 0 )
95 for(
int iField=0; iField<
m_pTable->Get_Field_Count(); iField++)
149 else if( add_Field >=
m_pTable->Get_Field_Count() )
151 add_Field =
m_pTable->Get_Field_Count() - 1;
156 for(
int iField=
m_pTable->Get_Field_Count()-1; iField>add_Field; iField--)
171 for(
int iField=del_Field; iField<
m_pTable->Get_Field_Count(); iField++)
186 for(
int iField=0; iField<
m_pTable->Get_Field_Count(); iField++)
248 if( Field >= 0 && Field < m_pTable->Get_Field_Count() )
272 if( Field >= 0 && Field < m_pTable->Get_Field_Count() )
296 return(
Set_Value(Field, (
double)Value) );
301 return(
Set_Value(Field, (
double)Value) );
307 if( Field >= 0 && Field < m_pTable->Get_Field_Count() )
331 if( Field >= 0 && Field < m_pTable->Get_Field_Count() )
347 if( Field >= 0 && Field < m_pTable->Get_Field_Count() )
368 if( Field >= 0 && Field < m_pTable->Get_Field_Count() )
370 switch(
m_pTable->Get_Field_Type(Field) )
395 m_Values[Field]->asBinary().Destroy();
418 if( Field >= 0 && Field < m_pTable->Get_Field_Count() )
420 switch(
m_pTable->Get_Field_Type(Field) )
443 return(
m_Values[Field]->asBinary().Get_Count() == 0 );
463 return( Field >= 0 && Field < m_pTable->Get_Field_Count() ?
m_Values[Field]->
asString(Decimals) : NULL );
485 return( (
short)
asInt(Field) );
496 return( Field >= 0 && Field < m_pTable->Get_Field_Count() ?
m_Values[Field]->
asInt() : 0 );
507 return( Field >= 0 && Field < m_pTable->Get_Field_Count() ?
m_Values[Field]->
asLong() : 0 );
529 return( Field >= 0 && Field < m_pTable->Get_Field_Count() ?
m_Values[Field]->
asDouble() : 0. );
550 for(
int iField=0; iField<nFields; iField++)
SAGA_API_DLL_EXPORT void * SG_Malloc(size_t size)
SAGA_API_DLL_EXPORT void SG_Free(void *memblock)
SAGA_API_DLL_EXPORT void * SG_Realloc(void *memblock, size_t size)
size_t Length(void) const
int Cmp(const CSG_String &String) const
void Set_Modified(bool bOn=true)
bool Set_Value(int Field, const CSG_String &Value)
class CSG_Table_Value ** m_Values
CSG_Table_Record(class CSG_Table *pTable, sLong Index)
virtual ~CSG_Table_Record(void)
bool _Del_Field(int del_Field)
bool is_Modified(void) const
void Set_Selected(bool bOn=true)
class CSG_Table * m_pTable
bool is_NoData(int Field) const
sLong asLong(int Field) const
bool _Add_Field(int add_Field)
bool Set_NoData(int Field)
double asDouble(int Field) const
int asInt(int Field) const
int _Get_Field(const CSG_String &Field) const
bool is_Selected(void) const
float asFloat(int Field) const
virtual bool Assign(CSG_Table_Record *pRecord)
SG_Char asChar(int Field) const
short asShort(int Field) const
bool Mul_Value(int Field, double Value)
const SG_Char * asString(int Field, int Decimals=-99) const
static CSG_Table_Value * _Create_Value(TSG_Data_Type Type)
bool Add_Value(int Field, double Value)
int Get_Field_Count(void) const
#define SG_TABLE_REC_FLAG_Selected
#define SG_TABLE_REC_FLAG_Modified