#include <set_file.hh>

Basic operations | |
| SetFile (const SetFileParams &) | |
| ~SetFile () | |
Public Member Functions | |
| std::tr1::shared_ptr < SetSpecTree::ConstItem > | 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.
| void paludis::SetFile::add | ( | const std::string & | ) |
Add an item to our contents, if it is not there already.
| std::tr1::shared_ptr<SetSpecTree::ConstItem> paludis::SetFile::contents | ( | ) | const |
Fetch our contents.
| void paludis::SetFile::remove | ( | const std::string & | ) |
Remove any matching lines.
| void paludis::SetFile::rewrite | ( | ) | const |
Rewrite our contents.
1.5.7.1