LibPkg
|
A class for holding a list of source URLs. More...
#include <source_table.h>
Public Types | |
typedef string | value_type |
typedef std::list< value_type > ::const_iterator | const_iterator |
Public Member Functions | |
source_table (const string &dpathname, const string &pathname) | |
Construct source table. More... | |
virtual | ~source_table () |
Destroy source table. More... | |
const_iterator | begin () const |
Get const iterator for start of table. More... | |
const_iterator | end () const |
Get const iterator for end of table. More... | |
void | update () |
Re-read the default and configured sources files. More... | |
![]() | |
table () | |
Construct table. More... | |
virtual | ~table () |
Destroy table. More... | |
Additional Inherited Members | |
![]() | |
void | notify () |
Notify watchers that a change has occurred. More... | |
A class for holding a list of source URLs.
The underlying sources file consists of a list of source URLs, one per line. Trailing spaces are ignored, as are blank lines. Comments are introduced by a hash character.
The order of the list is significant and is preserved. Sources higher in the list take precedence over those further down.
typedef string pkg::source_table::value_type |
typedef std::list<value_type>::const_iterator pkg::source_table::const_iterator |
pkg::source_table::source_table | ( | const string & | dpathname, |
const string & | pathname | ||
) |
Construct source table.
dpathname | the pathname of the default sources file |
pathname | the pathname of the configured sources file |
References update().
|
virtual |
Destroy source table.
|
inline |
Get const iterator for start of table.
|
inline |
Get const iterator for end of table.
void pkg::source_table::update | ( | ) |
Re-read the default and configured sources files.
References pkg::table::notify().
Referenced by source_table().
Reference Manual | LibPkg | Version 0.6.1 (28 Jan 2015) |