Line | |
---|
1 | #ifndef FILES_POOL_H |
---|
2 | #define FILES_POOL_H |
---|
3 | #include "stopos_pool.h" |
---|
4 | #include "stopos_key.h" |
---|
5 | #include "stopos.h" |
---|
6 | |
---|
7 | class files_pool: public stopos_pool |
---|
8 | { |
---|
9 | |
---|
10 | private: |
---|
11 | |
---|
12 | int get_record(std::string &r, const std::string &k, const std::string &l); |
---|
13 | int put_record(const std::string &r, const std::string &k,const std::string &l); |
---|
14 | int remove_record(const std::string &k, const std::string &l); |
---|
15 | int lockfile; |
---|
16 | std::string lockfilename; |
---|
17 | |
---|
18 | void create_fname(std::string &fname,const std::string &k); |
---|
19 | |
---|
20 | const static int NOTDIR = 102; |
---|
21 | |
---|
22 | std::string key_to_slot(const std::string &k){return "";} |
---|
23 | |
---|
24 | public: |
---|
25 | files_pool(); |
---|
26 | void set_db_name(std::string name); |
---|
27 | int create_db(const std::string &dbname); |
---|
28 | int purge_db(void); |
---|
29 | int open_db(void); |
---|
30 | int close_db(void); |
---|
31 | void dump_db(void); |
---|
32 | }; |
---|
33 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.