|
QDP++
|
Class that holds multiple DBs. Can only be used in a read-only mode. More...
#include <qdp_map_obj_disk_multiple.h>
Public Member Functions | |
| MapObjectDiskMultiple () | |
| Empty constructor. | |
| ~MapObjectDiskMultiple () | |
| Finalizes object. | |
| void | setDebug (int level) |
| Set debugging level. | |
| int | getDebug () const |
| Get debugging level. | |
| void | open (const std::vector< std::string > &files) |
| Open files. | |
| bool | fileExists (const std::vector< std::string > &files) const |
| Check if a DB file exists before opening. | |
| void | close () |
| Close the files. | |
| int | get (const K &key, V &val) const |
| void | keys (std::vector< K > &keys_) const |
| void | flush () |
| bool | exist (const K &key) const |
| int | getUserdata (std::string &user_data) const |
Class that holds multiple DBs. Can only be used in a read-only mode.
Definition at line 19 of file qdp_map_obj_disk_multiple.h.
|
inline |
Empty constructor.
Definition at line 23 of file qdp_map_obj_disk_multiple.h.
|
inline |
Finalizes object.
Definition at line 26 of file qdp_map_obj_disk_multiple.h.
|
inline |
Close the files.
Definition at line 67 of file qdp_map_obj_disk_multiple.h.
|
inline |
Does this key exist in the store
| key | a key object |
Definition at line 147 of file qdp_map_obj_disk_multiple.h.
|
inline |
Check if a DB file exists before opening.
Definition at line 52 of file qdp_map_obj_disk_multiple.h.
|
inline |
Flush database in memory to disk
Definition at line 133 of file qdp_map_obj_disk_multiple.h.
|
inline |
Get val for a given key
| key | user supplied key |
| val | after the call val will be populated |
Definition at line 83 of file qdp_map_obj_disk_multiple.h.
|
inline |
Get debugging level.
Definition at line 36 of file qdp_map_obj_disk_multiple.h.
|
inline |
Get user user data from the metadata database
| user_data | user supplied buffer to store user data |
Definition at line 167 of file qdp_map_obj_disk_multiple.h.
|
inline |
Return all available keys to user
| keys | user suppled an empty vector which is populated by keys after this call. |
Definition at line 102 of file qdp_map_obj_disk_multiple.h.
References QDP::read(), QDP::BinaryBufferWriter::str(), and QDP::write().
|
inline |
Open files.
Definition at line 39 of file qdp_map_obj_disk_multiple.h.
|
inline |
Set debugging level.
Definition at line 29 of file qdp_map_obj_disk_multiple.h.
References setDebug().
Referenced by setDebug().