|
SAGA API
v9.6
|
Go to the documentation of this file.
53 #ifndef HEADER_INCLUDED__SAGA_API__table_value_H
54 #define HEADER_INCLUDED__SAGA_API__table_value_H
144 operator double (
void)
const {
return(
asDouble() ); }
170 return( m_Value.
Create(Value) );
180 return( m_Value.
Create((BYTE *)&Value,
sizeof(Value)) );
185 return( m_Value.
Create((BYTE *)&Value,
sizeof(Value)) );
190 return( m_Value.
Create((BYTE *)&Value,
sizeof(Value)) );
202 virtual double asDouble (
void)
const {
return( 0.0 ); }
245 if( Value && m_Value.
Cmp(Value) )
272 virtual int asInt (
void)
const {
return( m_Value.
asInt () ); }
329 if( m_Value != Value )
342 virtual int asInt (
void)
const {
return( (
int)m_Value ); }
344 virtual double asDouble (
void)
const {
return( m_Value ); }
349 return( m_Value == Value.
asDouble() );
407 if( m_Value != Value )
437 virtual int asInt (
void)
const {
return( m_Value ); }
439 virtual double asDouble (
void)
const {
return( m_Value ); }
444 return( m_Value == Value.
asInt() );
492 if( m_Value != Value )
512 s.
Printf(
"%lld", m_Value);
517 virtual int asInt (
void)
const {
return( (
int)m_Value ); }
519 virtual double asDouble (
void)
const {
return( (
double)m_Value ); }
524 return( m_Value == Value.
asLong() );
577 if( m_Value != Value )
597 virtual int asInt (
void)
const {
return( (
int )m_Value ); }
599 virtual double asDouble (
void)
const {
return( m_Value ); }
604 return( m_Value == Value.
asDouble() );
625 #endif // #ifndef HEADER_INCLUDED__SAGA_API__table_value_H
CSG_Table_Value_Date(void)
virtual const SG_Char * asString(int Decimals=-99) const
virtual bool Set_Value(const SG_Char *Value)
virtual bool Set_Value(int Value)
virtual ~CSG_Table_Value_Binary(void)
virtual bool is_Equal(const CSG_Table_Value &Value) const
int Printf(const char *Format,...)
virtual bool Set_Value(int Value)
virtual TSG_Table_Value_Type Get_Type(void) const
virtual bool Set_Value(double Value)
virtual const SG_Char * asString(int Decimals=-99) const
@ SG_TABLE_VALUE_TYPE_String
virtual bool Set_Value(const SG_Char *Value)
CSG_Table_Value_String(void)
virtual ~CSG_Table_Value_Int(void)
virtual TSG_Table_Value_Type Get_Type(void) const
virtual bool Set_Value(const SG_Char *Value)
virtual ~CSG_Table_Value_String(void)
virtual CSG_Table_Value & operator=(const SG_Char *Value)
virtual bool Set_Value(const SG_Char *Value)=0
virtual sLong asLong(void) const =0
virtual bool Set_Value(const SG_Char *Value)
virtual ~CSG_Table_Value(void)
SAGA_API_DLL_EXPORT CSG_String SG_Get_String(double Value, int Precision=-99)
int Get_Count(void) const
virtual sLong asLong(void) const
virtual sLong asLong(void) const
virtual bool Set_Value(double Value)=0
virtual int asInt(void) const
virtual const SG_Char * asString(int Decimals=-99) const
virtual CSG_Bytes asBinary(void) const
virtual sLong asLong(void) const
virtual CSG_Table_Value & operator=(const CSG_Table_Value &Value)
virtual bool Set_Value(sLong Value)
virtual CSG_Bytes asBinary(void) const
virtual bool Set_Value(int Value)
virtual CSG_Table_Value & operator=(const CSG_Table_Value &Value)
virtual bool is_Equal(const CSG_Table_Value &Value) const
virtual bool Set_Value(sLong Value)
virtual bool Set_Value(const CSG_Bytes &Value)
virtual bool Set_Value(const CSG_Bytes &Value)
@ SG_TABLE_VALUE_TYPE_Date
#define SG_STR_CMP(s1, s2)
virtual bool Set_Value(sLong Value)
virtual bool Set_Value(int Value)
virtual bool Set_Value(sLong Value)
virtual bool Set_Value(int Value)
virtual bool is_Equal(const CSG_Table_Value &Value) const
CSG_Bytes & Get_Binary(void)
virtual int asInt(void) const
int Cmp(const CSG_String &String) const
virtual bool Set_Value(double Value)
virtual bool Set_Value(double Value)
virtual bool Set_Value(const SG_Char *Value)
virtual int asInt(void) const
virtual bool Set_Value(sLong Value)=0
virtual TSG_Table_Value_Type Get_Type(void) const =0
virtual double asDouble(void) const
virtual TSG_Table_Value_Type Get_Type(void) const
@ SG_TABLE_VALUE_TYPE_Int
virtual const SG_Char * asString(int Decimals=-99) const
virtual TSG_Table_Value_Type Get_Type(void) const
virtual bool Set_Value(double Value)
virtual double asDouble(void) const
virtual CSG_Table_Value & operator=(const CSG_Table_Value &Value)
virtual ~CSG_Table_Value_Date(void)
virtual bool Set_Value(sLong Value)
virtual bool Set_Value(sLong Value)
virtual CSG_Table_Value & operator=(const CSG_Table_Value &Value)
virtual CSG_Table_Value & operator=(const CSG_Table_Value &Value)
virtual bool Set_Value(const CSG_Bytes &Value)
virtual double asDouble(void) const
virtual sLong asLong(void) const
CSG_Table_Value_Int(void)
virtual double asDouble(void) const
CSG_Table_Value_Binary(void)
bool operator==(const CSG_Table_Value &Value) const
virtual bool is_Equal(const CSG_Table_Value &Value) const =0
virtual bool Set_Value(const SG_Char *Value)
BYTE * Get_Bytes(void) const
virtual const SG_Char * asString(int Decimals=-99) const
virtual int asInt(void) const
@ SG_TABLE_VALUE_TYPE_Double
virtual TSG_Table_Value_Type Get_Type(void) const
static CSG_String Format(const char *Format,...)
virtual bool Set_Value(int Value)
virtual bool is_Equal(const CSG_Table_Value &Value) const
virtual sLong asLong(void) const
CSG_Table_Value_Double(void)
virtual bool Set_Value(double Value)
virtual sLong asLong(void) const
virtual TSG_Table_Value_Type Get_Type(void) const
virtual int asInt(void) const
virtual double asDouble(void) const
virtual double asDouble(void) const =0
virtual bool Set_Value(const CSG_Bytes &Value)=0
double SG_Date_To_JulianDayNumber(int y, int m, int d)
virtual bool is_NoData(void) const
CSG_Table_Value_Long(void)
bool SG_JulianDayNumber_To_Date(double JDN, int &y, int &m, int &d)
virtual bool Set_Value(const CSG_Bytes &Value)
@ SG_TABLE_VALUE_TYPE_Long
virtual bool Set_NoData(void)
virtual int asInt(void) const
virtual ~CSG_Table_Value_Double(void)
double asDouble(void) const
virtual bool is_Equal(const CSG_Table_Value &Value) const
const SG_Char * c_str(void) const
virtual bool is_Equal(const CSG_Table_Value &Value) const
virtual const SG_Char * asString(int Decimals=-99) const =0
virtual bool Set_Value(const CSG_Bytes &Value)
@ SG_TABLE_VALUE_TYPE_Binary
virtual bool Set_Value(int Value)=0
virtual bool Set_Value(double Value)
virtual int asInt(void) const =0
virtual ~CSG_Table_Value_Long(void)
virtual CSG_Table_Value & operator=(const CSG_Table_Value &Value)
virtual double asDouble(void) const
virtual bool Set_Value(const CSG_Bytes &Value)
virtual const SG_Char * asString(int Decimals=-99) const