#include <yaml_config_writer.h>
Public Member Functions | |
bool | error () |
Return true if the latest write operation had an error. More... | |
QString | errorMessage () |
Return an error message if the latest write call had an error, or the empty string if there was no error. More... | |
void | writeFile (const Config &config, const QString &filename) |
Write config data to a file. This potentially changes the return values of error() and statusMessage(). More... | |
void | writeStream (const Config &config, std::ostream &out, const QString &filename="data stream") |
Write config data to a std::ostream. This potentially changes the return values of error() and statusMessage(). More... | |
QString | writeString (const Config &config, const QString &filename="data string") |
Write config data to a string, and return it. This potentially changes the return values of error() and statusMessage(). More... | |
YamlConfigWriter () | |
Constructor. Writer starts in a non-error state. More... | |
Private Member Functions | |
void | writeConfigNode (const Config &config, YAML::Emitter &emitter) |
Private Attributes | |
bool | error_ |
QString | message_ |
Definition at line 44 of file yaml_config_writer.h.
rviz::YamlConfigWriter::YamlConfigWriter | ( | ) |
Constructor. Writer starts in a non-error state.
Constructor. Writer starts in a non-error state with no status message.
Definition at line 40 of file yaml_config_writer.cpp.
bool rviz::YamlConfigWriter::error | ( | ) |
Return true if the latest write operation had an error.
Definition at line 100 of file yaml_config_writer.cpp.
QString rviz::YamlConfigWriter::errorMessage | ( | ) |
Return an error message if the latest write call had an error, or the empty string if there was no error.
Definition at line 105 of file yaml_config_writer.cpp.
|
private |
Definition at line 110 of file yaml_config_writer.cpp.
void rviz::YamlConfigWriter::writeFile | ( | const Config & | config, |
const QString & | filename | ||
) |
Write config data to a file. This potentially changes the return values of error() and statusMessage().
Definition at line 46 of file yaml_config_writer.cpp.
void rviz::YamlConfigWriter::writeStream | ( | const Config & | config, |
std::ostream & | out, | ||
const QString & | filename = "data stream" |
||
) |
Write config data to a std::ostream. This potentially changes the return values of error() and statusMessage().
Definition at line 87 of file yaml_config_writer.cpp.
QString rviz::YamlConfigWriter::writeString | ( | const Config & | config, |
const QString & | filename = "data string" |
||
) |
Write config data to a string, and return it. This potentially changes the return values of error() and statusMessage().
Definition at line 71 of file yaml_config_writer.cpp.
|
private |
Definition at line 74 of file yaml_config_writer.h.
|
private |
Definition at line 73 of file yaml_config_writer.h.