Ignore:
Timestamp:
2008-05-22T12:58:14+12:00 (16 years ago)
Author:
mdewsnip
Message:

(Adding new DB support) Replaced the "getfirstkey()" and "getnextkey()" functions in dbclass with "getkeys()" (which returns them all). These functions were only used in userdb.cpp, and having the one function is simpler without being (much) less efficient. Also, implementing getkeys() for the new sql db classes will be easier than getfirstkey() and getnextkey().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gsdl/trunk/lib/dbclass.h

    r15598 r15630  
    6969  virtual bool setinfo(const text_t &key, const infodbclass &info) = 0;
    7070
    71   // getfirstkey and getnextkey are used for traversing the database
    72   // no insertions or deletions should be carried out while traversing
    73   // the database. when there are no keys left to visit in the database
    74   // an empty string is returned.
    75   virtual text_t getfirstkey() = 0;
    76   virtual text_t getnextkey(const text_t &key) = 0;
     71  virtual text_tarray getkeys () = 0;
    7772
    7873  virtual void deletekey(const text_t &key) = 0;
Note: See TracChangeset for help on using the changeset viewer.