libdballe  6.8
Public Member Functions
dballe::db::v6::Repinfo Class Reference
Inheritance diagram for dballe::db::v6::Repinfo:
dballe::db::v5::Repinfo

Public Member Functions

 Repinfo (Connection *conn)
 
virtual int id_use_count (unsigned id, const char *name)
 Return how many time this ID is used in the database.
 
- Public Member Functions inherited from dballe::db::v5::Repinfo
 Repinfo (Connection *conn)
 
void invalidate_cache ()
 Invalidate the repinfo cache. More...
 
void update (const char *deffile, int *added, int *deleted, int *updated)
 Update the report type information in the database using the data from the given file. More...
 
int get_id (const char *memo) const
 Get the id of a repinfo entry given its name. More...
 
int obtain_id (const char *memo)
 Get the id of a repinfo entry given its name. More...
 
bool has_id (unsigned id) const
 Check if the database contains the given rep_cod id. More...
 
const repinfo::Cacheget_by_id (unsigned id) const
 Get a repinfo cache entry by id. More...
 
const repinfo::Cacheget_by_memo (const char *memo) const
 Get a repinfo cache entry by name. More...
 
std::vector< int > ids_by_prio (const Record &rec) const
 Return a vector of IDs matching the priority constraints in the given record.
 
std::map< std::string, int > get_priorities () const
 Get a mapping between rep_memo and their priorities.
 
void dump (FILE *out)
 Dump the entire contents of the table to an output stream.
 

Additional Inherited Members

- Data Fields inherited from dballe::db::v5::Repinfo
std::vector< repinfo::Cachecache
 Cache of table entries.
 
std::vector< repinfo::Memoidxmemo_idx
 rep_memo -> rep_cod reverse index
 
Connectionconn
 DB connection. More...
 
- Protected Member Functions inherited from dballe::db::v5::Repinfo
void read_cache ()
 
void cache_append (unsigned id, const char *memo, const char *desc, int prio, const char *descriptor, int tablea)
 
void rebuild_memo_idx () const
 
int cache_find_by_memo (const char *memo) const
 
int cache_find_by_id (unsigned id) const
 
std::vector< repinfo::Cacheread_repinfo_file (const char *deffile)
 
void insert_auto_entry (const char *memo)
 Create an automatic entry for a missing memo, and insert it in the database.
 

The documentation for this class was generated from the following file: