|
paludis
Version 1.4.0
|
#include <set_file.hh>
Public Member Functions | |
| const std::shared_ptr< const SetSpecTree > | contents () const |
| void | rewrite () const |
| bool | add (const std::string &) |
| bool | remove (const std::string &) |
Basic operations | |
| SetFile (const SetFileParams &) | |
| ~SetFile () | |
| SetFile (const SetFile &)=delete | |
| SetFile & | operator= (const SetFile &)=delete |
Shared code for files containing a package set.
Various set file formats are supported:
The file can be modified if it is sft_paludis_conf or sft_simple.
| bool paludis::SetFile::add | ( | const std::string & | ) |
Add an item to our contents, if it is not there already.
| const std::shared_ptr<const SetSpecTree> paludis::SetFile::contents | ( | ) | const |
Fetch our contents.
| bool paludis::SetFile::remove | ( | const std::string & | ) |
Remove any matching lines.
| void paludis::SetFile::rewrite | ( | ) | const |
Rewrite our contents.
1.8.3.1