- Examples:
- chatserv.cc.
Definition at line 75 of file chatserv.cc.
References Configuration::DoParse(), Configuration::Get(), Configuration::GetName(), Configuration::Has(), WindowLog::OpenLogFile(), ReadlineColor::PrintBootMsg(), PrintHelp(), PrintUsage(), StateMachineImp::Run(), Configuration::SetPrintUsage(), Dim::Setup(), and SetupConfiguration().
84 Dim::Setup(conf.Get<
string>(
"dns"), conf.Get<
string>(
"host"));
92 cerr <<
"ERROR - Couldn't open log-file " << conf.Get<
string>(
"log") <<
": " << strerror(errno) << endl;
A C++ ostream to an ncurses window supporting attributes and colors.
void Setup(const std::string &dns="", const std::string &host="")
void SetupConfiguration(Configuration &conf)
bool PrintBootMsg(std::ostream &out, const std::string &name, bool interactive=true)
Commandline parsing, resource file parsing and database access.
virtual int Run(bool dummy)
Start the mainloop.
bool OpenLogFile(const std::string &filename, bool append=false)
Open a log-file.