Changeset 15585 for gsdl/trunk/lib/dbclass.h
- Timestamp:
- 2008-05-20T11:11:51+12:00 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
gsdl/trunk/lib/dbclass.h
r15557 r15585 54 54 virtual ~dbclass(); 55 55 56 void setlogout 56 void setlogout(ostream *logout_arg) { logout = logout_arg; } 57 57 58 58 // returns true if opened … … 60 60 virtual void closedatabase() = 0; 61 61 62 // returns true if exists 63 virtual bool exists(const text_t& key) = 0; 64 62 65 // returns true on success 63 virtual bool getinfo (const text_t& key, infodbclass &info) = 0; 66 virtual bool getinfo(const text_t& key, infodbclass &info) = 0; 67 68 // returns true on success 69 virtual bool setinfo(const text_t &key, const infodbclass &info) = 0; 64 70 65 71 // replaces the .c, .p, .n, .l syntax (child, parent, next, previous) 66 72 // it expects child, parent, etc. to exist if syntax has been used 67 73 // so you should test before using 68 virtual text_t translate_OID (const text_t &OID, infodbclass &info) = 0; 74 virtual text_t translate_OID(const text_t &OID, infodbclass &info) = 0; 75 76 // getfirstkey and getnextkey are used for traversing the database 77 // no insertions or deletions should be carried out while traversing 78 // the database. when there are no keys left to visit in the database 79 // an empty string is returned. 80 virtual text_t getfirstkey() = 0; 81 virtual text_t getnextkey(const text_t &key) = 0; 82 83 virtual void deletekey(const text_t &key) = 0; 69 84 70 85 protected:
Note:
See TracChangeset
for help on using the changeset viewer.