Keyfile writer.
More...
#include <keyfile-writer.h>
sbuild::keyfile_writer::keyfile_writer |
( |
const keyfile & |
store) | |
|
The constructor.
- Parameters
-
store | the keyfile to operate with. |
sbuild::keyfile_writer::keyfile_writer |
( |
const keyfile & |
store, |
|
|
const std::string & |
file |
|
) |
| |
sbuild::keyfile_writer::keyfile_writer |
( |
const keyfile & |
store, |
|
|
std::ostream & |
stream |
|
) |
| |
The constructor.
- Parameters
-
store | the keyfile to operate with. |
stream | the stream to load the configuration from. |
References write_stream().
void sbuild::keyfile_writer::print_comment |
( |
const keyfile::comment_type & |
comment, |
|
|
std::ostream & |
stream |
|
) |
| |
|
staticprotected |
Print a comment to a stream.
The comment will have hash ('#') marks printed at the start of each line.
- Parameters
-
comment | the comment to print. |
stream | the stream to output to. |
- Todo:
- Use split string or some general iterator/algorithm instead of custom string manipulation. This could be reused by log_exception_* functions and split_string.
Referenced by write_stream().
void sbuild::keyfile_writer::write_stream |
( |
std::ostream & |
stream) | |
const |
|
virtual |
std::ostream& operator<< |
( |
std::ostream & |
stream, |
|
|
const keyfile_writer & |
kp |
|
) |
| |
|
friend |
keyfile output to an ostream.
- Parameters
-
stream | the stream to output to. |
kf | the keyfile to output. |
- Returns
- the stream.
The documentation for this class was generated from the following files: