mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-11 00:36:20 +02:00
27 lines
620 B
C++
27 lines
620 B
C++
|
#ifndef __DB_H
|
||
|
#define __DB_H
|
||
|
|
||
|
#include <string>
|
||
|
#include <list>
|
||
|
|
||
|
using namespace std;
|
||
|
|
||
|
typedef pair<string, string> DBPair;
|
||
|
typedef list<DBPair> DBPairs;
|
||
|
|
||
|
void createDB(const string & filename, const string & dbname);
|
||
|
|
||
|
bool queryDB(const string & filename, const string & dbname,
|
||
|
const string & key, string & data);
|
||
|
|
||
|
void setDB(const string & filename, const string & dbname,
|
||
|
const string & key, const string & data);
|
||
|
|
||
|
void delDB(const string & filename, const string & dbname,
|
||
|
const string & key);
|
||
|
|
||
|
void enumDB(const string & filename, const string & dbname,
|
||
|
DBPairs & contents);
|
||
|
|
||
|
#endif /* !__DB_H */
|