6 #ifndef LIBPKG_SOURCE_TABLE
7 #define LIBPKG_SOURCE_TABLE
40 std::list<string> _data;
46 source_table(
const string& dpathname,
const string& pathname);
55 {
return _data.begin(); }
61 {
return _data.end(); }
70 bool read(
const string& pathname);
const_iterator begin() const
Get const iterator for start of table.
Definition: source_table.h:54
void update()
Re-read the default and configured sources files.
Definition: source_table.cc:22
const_iterator end() const
Get const iterator for end of table.
Definition: source_table.h:60
A class for holding a list of source URLs.
Definition: source_table.h:26
source_table(const string &dpathname, const string &pathname)
Construct source table.
Definition: source_table.cc:12
virtual ~source_table()
Destroy source table.
Definition: source_table.cc:19
string value_type
Definition: source_table.h:30
std::list< value_type >::const_iterator const_iterator
Definition: source_table.h:31
A base class to represent a data table.
Definition: table.h:18