Changeset 15645 for gsdl/trunk/lib/dbclass.h
- Timestamp:
- 2008-05-22T15:39:06+12:00 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
gsdl/trunk/lib/dbclass.h
r15630 r15645 54 54 virtual ~dbclass(); 55 55 56 void setlogout (ostream *logout_arg) { logout = logout_arg; }56 void setlogout (ostream *logout_arg) { logout = logout_arg; } 57 57 58 58 // returns true if opened 59 virtual bool opendatabase(const text_t &filename, int mode, int num_retrys, bool need_filelock) = 0; 60 virtual void closedatabase() = 0; 59 virtual bool opendatabase (const text_t &filename, int mode, int num_retrys, bool need_filelock) = 0; 60 61 virtual void closedatabase () = 0; 62 63 virtual void deletekey (const text_t &key) = 0; 61 64 62 65 // returns true if exists 63 virtual bool exists (const text_t& key) = 0;66 virtual bool exists (const text_t& key) = 0; 64 67 65 68 // returns true on success 66 virtual bool getinfo (const text_t& key, infodbclass &info) = 0;69 virtual bool getinfo (const text_t& key, infodbclass &info) = 0; 67 70 68 71 // returns true on success 69 virtual bool setinfo(const text_t &key, const infodbclass &info) = 0;72 virtual bool getkeydata (const text_t& key, text_t &data) = 0; 70 73 74 // returns array of keys 71 75 virtual text_tarray getkeys () = 0; 72 76 73 virtual void deletekey(const text_t &key) = 0; 77 // returns true on success 78 virtual bool setinfo (const text_t &key, const infodbclass &info) = 0; 74 79 75 80 // replaces the .c, .p, .n, .l syntax (child, parent, next, previous)
Note:
See TracChangeset
for help on using the changeset viewer.