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

void Villa::storerec ( const Datum key,
const Datum val,
bool  replace = true 
) throw (Villa_error) [virtual]

Store a record.

Parameters:
key reference to a key object.
val reference to a value object.
replace whether the existing value is to be overwritten or not.
Exceptions:
Villa_error if an error occurs or replace is cancelled.

Implements qdbm::ADBM.

Definition at line 525 of file xvilla.cc.

References put().

                                                                                       {
  put(key.ptr(), key.size(), val.ptr(), val.size(), replace ? VL_DOVER : VL_DKEEP);
}


Generated by  Doxygen 1.6.0   Back to index