libdballe  7.6
Public Member Functions | Protected Attributes
dballe::db::mem::Repinfo Class Reference

Public Member Functions

int get_prio (const std::string &memo)
 Get the priority for a rep_memo.
 
void load (const char *repinfo_file=0)
 Like update, but it ignores the added, delete and updated stats.
 
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...
 
std::map< std::string, int > get_priorities () const
 Get a mapping between rep_memo and their priorities.
 
void dump (FILE *out) const
 Dump contents to a file.
 

Protected Attributes

std::map< std::string, int > priorities
 

Member Function Documentation

void dballe::db::mem::Repinfo::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.

Parameters
ridba_db_repinfo used to update the database
deffilePathname of the file to use for the update. The NULL value is accepted and means to use the default configure repinfo.csv file.
Return values
addedNumber of entries that have been added during the update.
deletedNumber of entries that have been deleted during the update.
updatedNumber of entries that have been updated during the update.

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