17 #ifndef LIBPKG_SOURCE_TABLE 18 #define LIBPKG_SOURCE_TABLE 51 std::list<string> _data;
57 source_table(
const string& dpathname,
const string& pathname);
66 {
return _data.begin(); }
71 const_iterator
end()
const 72 {
return _data.end(); }
81 bool read(
const string& pathname);
const_iterator end() const
Get const iterator for end of table.
Definition: source_table.h:71
The namespace used to hold the package management library.
Definition: auto_dir.cc:23
const_iterator begin() const
Get const iterator for start of table.
Definition: source_table.h:65
void update()
Re-read the default and configured sources files.
Definition: source_table.cc:33
A class for holding a list of source URLs.
Definition: source_table.h:37
source_table(const string &dpathname, const string &pathname)
Construct source table.
Definition: source_table.cc:23
virtual ~source_table()
Destroy source table.
Definition: source_table.cc:30
string value_type
Definition: source_table.h:41
std::list< value_type >::const_iterator const_iterator
Definition: source_table.h:42
A base class to represent a data table.
Definition: table.h:29