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