1 #ifndef FACT_ChatClient 2 #define FACT_ChatClient 24 Out() << t <<
": " << txt.substr(6) << endl;
76 lout <<
kRed <<
"ERROR - Sending message failed." << endl;
84 return T::GetLinePrompt() +
" " + (IsConnected() ?
"" :
"dis") +
"connected> ";
105 SetContinous(continous);
ChatConsole(const char *name, bool continous=false)
Implements a remote control based on a Readline class for the Chat client.
static int sendCommand(const char *name, int data)
A base class taking care of padding, exit handler and error handlers.
This is an extension to the Readline class provding buffered output.
The base implementation of a distributed messaging system.
Adds some functionality to boost::posix_time::ptime for our needs.
ChatClientImp(std::ostream &out, std::ostream &in)
The base implementation for a chat client.
Derives the ChatClient from Control and adds a proper prompt.
ChatShell(const char *name, bool=false)
bool Process(const std::string &str)
ChatClient(const char *name)
Derives the ChatClient from Shell and adds colored prompt.
static const _time_format fmt(const char *txt=0)
A stream manipulator to set the output/input format.
std::string GetUpdatePrompt() const
bool Process(std::ostream &out, const std::string &str)
Based on MessageImp, subscribes to a MESSAGE service in the Dim network.
int Write(const Time &t, const string &txt, int)
Output stream for local synchrounous output.
Implementation of a console based user shell with an input and output window.