|
a/src/rcldb/rcldb.h |
|
b/src/rcldb/rcldb.h |
|
... |
|
... |
93 |
/* General stuff (valid for query or update) ****************************/
|
93 |
/* General stuff (valid for query or update) ****************************/
|
94 |
Db(RclConfig *cfp);
|
94 |
Db(RclConfig *cfp);
|
95 |
~Db();
|
95 |
~Db();
|
96 |
|
96 |
|
97 |
enum OpenMode {DbRO, DbUpd, DbTrunc};
|
97 |
enum OpenMode {DbRO, DbUpd, DbTrunc};
|
98 |
bool open(OpenMode mode);
|
98 |
enum OpenError {DbOpenNoError, DbOpenMainDb, DbOpenExtraDb};
|
|
|
99 |
bool open(OpenMode mode, OpenError *error = 0);
|
99 |
bool close();
|
100 |
bool close();
|
100 |
bool isopen();
|
101 |
bool isopen();
|
101 |
|
102 |
|
102 |
/** Get explanation about last error */
|
103 |
/** Get explanation about last error */
|
103 |
string getReason() const {return m_reason;}
|
104 |
string getReason() const {return m_reason;}
|