31 fout_.open(name.c_str());
34 "Messenger::Messenger: Could not open file " + name;
46 *
out_ << std::setfill(
'.') << std::setw(66)
56 void detail(std::string msg,
short level = 0, std::string symbol =
"*");
61 void warning(std::string msg,
short level = 0);
69 *
out_ << std::setfill(
' ');
71 *
out_ << std::right << std::setw(72);
73 *
out_ <<
"[Done]" << std::endl;
79 *
out_ << std::setfill(
' ');
81 *
out_ << std::right << std::setw(72);
83 *
out_ <<
"[FAIL]" << std::endl;
void fail()
Definition: Messenger.hpp:78
void start(std::string msg)
Definition: Messenger.hpp:42
bool file_
true if the file is opened
Definition: Messenger.hpp:96
Class to handle errors occurring during the execution of the code.
Messenger(const std::string &name)
Definition: Messenger.hpp:29
void run_message(std::string msg)
Messenger()
Definition: Messenger.hpp:22
~Messenger()
Definition: Messenger.hpp:88
std::ofstream fout_
the output file stream
Definition: Messenger.hpp:95
Read/write exception for all file operation related tasks.
Definition: Exceptions.hpp:68
void done()
Definition: Messenger.hpp:68
static bool endline_
true if we have an endline
Definition: Messenger.hpp:97
This class outputs nicely formatted messages during configuration loading.
Definition: Messenger.hpp:19
void detail(std::string msg, short level=0, std::string symbol="*")
void warning(std::string msg, short level=0)
std::ostream * out_
the output stream
Definition: Messenger.hpp:94