1 #ifndef DBALLE_DB_V7_INTERNALS_H 2 #define DBALLE_DB_V7_INTERNALS_H 5 #include <wreport/var.h> 13 :
public std::vector<std::pair<wreport::Varcode, const char*>>
15 void add(wreport::Varcode code,
const char* value)
17 push_back(std::make_pair(code, value));
21 const char*
get(wreport::Varcode code)
const 23 for (const_iterator i = begin(); i != end(); ++i)
33 const char*
pop(wreport::Varcode code)
35 const char* res =
nullptr;
36 for (iterator i = begin(); i != end(); ++i)
45 while (!empty() && back().second ==
nullptr)
const char * pop(wreport::Varcode code)
Get a value by code, returns nullptr if not found, removes it from the AttributeList.
Definition: internals.h:33
Store a list of attributes to be inserted/updated in the database.
Definition: internals.h:12