Logo Search packages:      
Sourcecode: qdbm version File versions  Download package

Datum Villa::fetchrec ( const Datum key  )  throw (Villa_error) [virtual]

Fetch a record.

Parameters:
key reference to a key object.
Returns:
a temporary instance of the value of the corresponding record.
Exceptions:
Villa_error if an error occurs or no record corresponds.

Implements qdbm::ADBM.

Definition at line 535 of file xvilla.cc.

                                                        {
  char* vbuf;
  int vsiz;
  vbuf = get(key.ptr(), key.size(), &vsiz);
  return Datum(vbuf, vsiz, true);
}


Generated by  Doxygen 1.6.0   Back to index