SAGA API  v9.6
CSG_Table_DBase Class Reference

#include <table_dbase.h>

Public Member Functions

 CSG_Table_DBase (int Encoding=SG_FILE_ENCODING_ANSI)
 
virtual ~CSG_Table_DBase (void)
 
void Close (void)
 
bool Open_Read (const SG_Char *FileName, class CSG_Table *pTable, bool bRecords_Load=true)
 
bool Open_Write (const SG_Char *FileName, class CSG_Table *pTable, bool bRecords_Save=true)
 
int Get_Field_Count (void)
 
const char * Get_Field_Name (int iField)
 
char Get_Field_Type (int iField)
 
int Get_Field_Width (int iField)
 
int Get_Field_Decimals (int iField)
 
int Get_File_Position (void)
 
int Get_File_Length (void)
 
int Get_Count (void)
 
bool Move_First (void)
 
bool Move_Next (void)
 
void Add_Record (void)
 
void Flush_Record (void)
 
bool isDeleted (void)
 
bool asInt (int iField, int &Value)
 
bool asDouble (int iField, double &Value)
 
CSG_String asString (int iField)
 
bool Set_Value (int iField, double Value)
 
bool Set_Value (int iField, const CSG_String &Value)
 
bool Set_NoData (int iField)
 

Detailed Description

Definition at line 90 of file table_dbase.h.

Constructor & Destructor Documentation

◆ CSG_Table_DBase()

CSG_Table_DBase::CSG_Table_DBase ( int  Encoding = SG_FILE_ENCODING_ANSI)

Definition at line 82 of file table_dbase.cpp.

References CSG_Table::m_Encoding, and CSG_Table::m_nFields.

◆ ~CSG_Table_DBase()

CSG_Table_DBase::~CSG_Table_DBase ( void  )
virtual

Definition at line 92 of file table_dbase.cpp.

References Close().

Member Function Documentation

◆ Add_Record()

void CSG_Table_DBase::Add_Record ( void  )

Definition at line 612 of file table_dbase.cpp.

Referenced by Open_Write().

◆ asDouble()

bool CSG_Table_DBase::asDouble ( int  iField,
double &  Value 
)

◆ asInt()

bool CSG_Table_DBase::asInt ( int  iField,
int &  Value 
)

Definition at line 652 of file table_dbase.cpp.

References asDouble().

◆ asString()

CSG_String CSG_Table_DBase::asString ( int  iField)

◆ Close()

void CSG_Table_DBase::Close ( void  )

◆ Flush_Record()

void CSG_Table_DBase::Flush_Record ( void  )

Definition at line 630 of file table_dbase.cpp.

Referenced by Close(), Move_First(), Move_Next(), and Open_Write().

◆ Get_Count()

int CSG_Table_DBase::Get_Count ( void  )
inline

Definition at line 122 of file table_dbase.h.

Referenced by Open_Read().

◆ Get_Field_Count()

int CSG_Table_DBase::Get_Field_Count ( void  )
inline

Definition at line 103 of file table_dbase.h.

Referenced by Open_Read(), and Open_Write().

◆ Get_Field_Decimals()

int CSG_Table_DBase::Get_Field_Decimals ( int  iField)
inline

Definition at line 115 of file table_dbase.h.

Referenced by Open_Read().

◆ Get_Field_Name()

const char* CSG_Table_DBase::Get_Field_Name ( int  iField)
inline

Definition at line 106 of file table_dbase.h.

Referenced by Open_Read().

◆ Get_Field_Type()

char CSG_Table_DBase::Get_Field_Type ( int  iField)
inline

Definition at line 109 of file table_dbase.h.

References DBF_FT_NONE.

Referenced by Open_Read(), and Open_Write().

◆ Get_Field_Width()

int CSG_Table_DBase::Get_Field_Width ( int  iField)
inline

Definition at line 112 of file table_dbase.h.

◆ Get_File_Length()

int CSG_Table_DBase::Get_File_Length ( void  )
inline

Definition at line 121 of file table_dbase.h.

◆ Get_File_Position()

int CSG_Table_DBase::Get_File_Position ( void  )

Definition at line 552 of file table_dbase.cpp.

◆ isDeleted()

bool CSG_Table_DBase::isDeleted ( void  )

Definition at line 646 of file table_dbase.cpp.

◆ Move_First()

bool CSG_Table_DBase::Move_First ( void  )

Definition at line 563 of file table_dbase.cpp.

References Flush_Record().

Referenced by Open_Read().

◆ Move_Next()

bool CSG_Table_DBase::Move_Next ( void  )

Definition at line 585 of file table_dbase.cpp.

References Flush_Record().

Referenced by Open_Read().

◆ Open_Read()

◆ Open_Write()

◆ Set_NoData()

bool CSG_Table_DBase::Set_NoData ( int  iField)

Definition at line 904 of file table_dbase.cpp.

Referenced by Open_Write().

◆ Set_Value() [1/2]

◆ Set_Value() [2/2]

bool CSG_Table_DBase::Set_Value ( int  iField,
double  Value 
)

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