tinySQL
0.1
A self-contained database management system
|
The interface of the entire database. More...
#include <interface.h>
Public Member Functions | |
Interface (std::istream &is, std::ostream &os) | |
Construct a new Interface object. More... | |
void | run () |
Should be called after initialized. More... | |
void | showErrMsg (db_err_t &dbErr) |
Display the error message thrown. More... | |
void | serialOutput (std::vector< MemoryTuple > &tuples) |
Serialize the records to a standard output. More... | |
void | serialOutput (std::vector< MemoryTuple > &tuples, std::vector< std::string > &attr_names) |
Serialize the records and their attributes to a standard output. More... | |
The interface of the entire database.
Definition at line 16 of file interface.h.
|
inline |
Construct a new Interface object.
is | Input stream of database |
os | Output stream of database |
Definition at line 24 of file interface.h.
void Interface::run | ( | ) |
Should be called after initialized.
Definition at line 128 of file interface.cpp.
void Interface::serialOutput | ( | std::vector< MemoryTuple > & | tuples | ) |
Serialize the records to a standard output.
tuples[in] | Records to be serialized |
Definition at line 361 of file interface.cpp.
void Interface::serialOutput | ( | std::vector< MemoryTuple > & | tuples, |
std::vector< std::string > & | attr_names | ||
) |
Serialize the records and their attributes to a standard output.
tuples | [in] Records to be serialized |
attr_names | [in] Attributes to the records |
Definition at line 371 of file interface.cpp.
void Interface::showErrMsg | ( | db_err_t & | dbErr | ) |
Display the error message thrown.
dbErr | [in] The error details |
Definition at line 59 of file interface.cpp.