9 #ifndef CSimpleDatabase_H    10 #define CSimpleDatabase_H    44         size_t fieldsCount() 
const;
    49         size_t appendRecord();
    52         void  addField(
const char *fieldName);
    56                 addField(fieldName.c_str());
    67         size_t fieldIndex(
const char *fieldName) 
const;
    73                 return fieldIndex(fieldName.c_str());
    78         size_t getRecordCount() 
const;
    88         std::string  get(
size_t recordIndex, 
size_t fieldIndex) 
const;
   105         void deleteRecord(
size_t recordIndex);
   109         std::vector<vector_string>      
data;   
   147         CSimpleDatabaseTablePtr getTable(
const std::string &tableName);
   164         CSimpleDatabaseTablePtr getTable(
size_t tableIndex);
   168         size_t   tablesCount() 
const;
   179         bool saveAsXML( 
const std::string &fileName ) 
const;
   191         typedef std::map<std::string, CSimpleDatabaseTablePtr>                                  
TTableList;
 
The virtual base class which provides a unified interface for all persistent objects in MRPT...
 
vector_string field_names
Field names. 
 
size_t fieldIndex(const std::string &fieldName) const
Get the index for a given field name. 
 
const Scalar * const_iterator
 
std::map< std::string, CSimpleDatabaseTablePtr >::const_iterator const_iterator
 
void clear()
Clear the contents of this container. 
 
std::vector< std::string > vector_string
A type for passing a vector of strings. 
 
This class implements the tables of databases. 
 
std::map< std::string, CSimpleDatabaseTablePtr >::iterator iterator
 
#define DEFINE_SERIALIZABLE_PRE_CUSTOM_BASE(class_name, base_name)
This declaration must be inserted in all CSerializable classes definition, before the class declarati...
 
GLsizei const GLchar ** string
 
This class impements a very simple database system. 
 
void addField(const std::string &fieldName)
Add a new field to the table. 
 
std::map< std::string, CSimpleDatabaseTablePtr > TTableList
The tables of the DB indexed by their names: 
 
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries. 
 
#define DEFINE_SERIALIZABLE(class_name)
This declaration must be inserted in all CSerializable classes definition, within the class declarati...
 
#define DEFINE_SERIALIZABLE_POST_CUSTOM_BASE(class_name, base_name)
 
GLuint const GLchar * name
 
GLsizei const GLfloat * value
 
std::vector< vector_string > data
Data for each cell.