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 | private: |
---|
10 | |
---|
11 | int get_record(datarecord &r, const stopos_key &k); |
---|
12 | int put_record(datarecord &r, const stopos_key &k); |
---|
13 | int remove_record(const stopos_key &k); |
---|
14 | int get_status(void); |
---|
15 | int put_status(void); |
---|
16 | int lockfile; |
---|
17 | std::string lockfilename; |
---|
18 | |
---|
19 | void create_fname(std::string &fname,const stopos_key &k); |
---|
20 | |
---|
21 | const static int STATUSTOOLONG = 101; |
---|
22 | const static int NOTDIR = 102; |
---|
23 | |
---|
24 | std::string dir_suffix; |
---|
25 | |
---|
26 | public: |
---|
27 | files_pool(); |
---|
28 | void set_db_name(std::string name); |
---|
29 | int create_db(void); |
---|
30 | int purge_db(void); |
---|
31 | int open_db(void); |
---|
32 | int close_db(void); |
---|
33 | void dump_db(void); |
---|
34 | }; |
---|
35 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.