FACT++
1.0
|
Derives the ChatClient from Control and adds a proper prompt. More...
#include <ChatClient.h>
Public Member Functions | |
ChatConsole (const char *name, bool continous=false) | |
Public Member Functions inherited from ChatClient< Console > | |
ChatClient (const char *name) | |
bool | Process (const std::string &str) |
std::string | GetUpdatePrompt () const |
Public Member Functions inherited from Console | |
Console (const char *name) | |
~Console () | |
Flush the contents of the buffer before it is destroyed. More... | |
void | SetContinous (bool cont) |
bool | IsContinous () const |
WindowLog & | GetStreamOut () |
WindowLog & | GetStreamIn () |
const WindowLog & | GetStreamOut () const |
const WindowLog & | GetStreamIn () const |
bool | PrintGeneralHelp () |
Wrapper to call the correspnding function from ReadlineColor. More... | |
bool | PrintCommands () |
Wrapper to call the correspnding function from ReadlineColor. More... | |
bool | PrintKeyBindings () |
Wrapper to call the correspnding function from ReadlineColor. More... | |
void | Lock () |
void | Unlock () |
std::string | GetLinePrompt () const |
void | Startup () |
void | EventHook (bool) |
void | Run (const char *=0) |
Public Member Functions inherited from Readline | |
Readline (const char *prgname) | |
virtual | ~Readline () |
void | BindKeySequence (const char *seq, int(*func)(int, int)) |
std::string | GetName () const |
void | AddToHistory (const std::string &str, int skip=2) |
std::vector< const char * > | GetHistory () const |
Return a list of pointer to the history contents. More... | |
void | SetMaxSize (int lines) |
void | UpdatePrompt (const std::string &prompt) const |
void | UpdatePrompt () const |
virtual bool | PreProcess (const std::string &str) |
virtual bool | PromptEOF (std::string &str) |
virtual std::string | Prompt (const std::string &prompt) |
virtual bool | ExecuteShellCommand (const std::string &cmd) |
int | Execute (const std::string &fname, const std::map< std::string, std::string > &args=std::map< std::string, std::string >()) |
bool | IsStopped () const |
void | ProcessLine (const std::string &str) |
void | SetLabel (int l) |
int | GetLine () const |
int | GetCols () const |
Get the number of cols readline assumes the screen size to be. More... | |
int | GetRows () const |
Get the number of rows readline assumes the screen size to be. More... | |
Public Member Functions inherited from MessageImp | |
MessageImp (std::ostream &out=std::cout) | |
virtual | ~MessageImp () |
virtual void | IndicateStateChange (const Time &, const std::string &) |
void | StateChanged (const Time &time, const std::string &server, const std::string &msg, int state) |
int | Update (const std::string &txt, int severity=kMessage) |
int | Update (const char *txt, int severity=kMessage) |
int | Update (const std::ostringstream &str, int severity=kMessage) |
int | Debug (const std::string &str) |
int | Message (const std::string &str) |
int | Info (const std::string &str) |
int | Warn (const std::string &str) |
int | Error (const std::string &str) |
int | Alarm (const std::string &str) |
int | Fatal (const std::string &str) |
int | Comment (const std::string &str) |
int | Debug (const char *txt) |
int | Message (const char *txt) |
int | Info (const char *txt) |
int | Warn (const char *txt) |
int | Error (const char *txt) |
int | Alarm (const char *txt) |
int | Fatal (const char *txt) |
int | Comment (const char *txt) |
int | Debug (const std::ostringstream &str) |
int | Message (const std::ostringstream &str) |
int | Info (const std::ostringstream &str) |
int | Warn (const std::ostringstream &str) |
int | Alarm (const std::ostringstream &str) |
int | Error (const std::ostringstream &str) |
int | Fatal (const std::ostringstream &str) |
int | Comment (const std::ostringstream &str) |
std::ostream & | operator() () const |
std::ostream & | Out () const |
virtual bool | MessageQueueEmpty () const |
Public Member Functions inherited from DimErrorRedirecter | |
DimErrorRedirecter (MessageImp &imp) | |
~DimErrorRedirecter () | |
Public Member Functions inherited from DimErrorHandler | |
virtual | ~DimErrorHandler () |
Public Member Functions inherited from DimExitHandler | |
virtual | ~DimExitHandler () |
Public Member Functions inherited from MessageDimRX | |
MessageDimRX (const std::string &name, MessageImp &imp) | |
void | SetMinLogLevel (int min=0) |
bool | IsConnected () const |
Public Member Functions inherited from DimInfoHandler | |
DimInfo * | getInfo () |
virtual | ~DimInfoHandler () |
Additional Inherited Members | |
Public Types inherited from MessageImp | |
enum | Severity { kMessage = 10, kInfo = 20, kWarn = 30, kError = 40, kAlarm = 45, kFatal = 50, kComment = 90, kDebug = 99 } |
Severity of a message. More... | |
Static Public Member Functions inherited from Readline | |
static bool | RedirectionWrapper (std::ostream &out, bool(*function)()) |
static bool | DumpVariables () |
static bool | DumpFunctions () |
static bool | DumpFunmap () |
static bool | DumpHistory () |
static bool | ClearHistory () |
static void | Stop () |
static void | StopScript () |
static bool | IsScriptStopped () |
static int | GetScriptDepth () |
static void | SetScriptDepth (unsigned int d) |
static void | SetExternalInput (const std::string &inp) |
static std::string | GetScript () |
static std::string | GetExternalInput () |
static char * | Compare (const std::string &str, const std::string &txt) |
static char ** | CompletionMatches (const char *text, char *(*func)(const char *, int)) |
static FILE * | SetStreamOut (FILE *f) |
static FILE * | SetStreamIn (FILE *f) |
static std::string | GetPrompt () |
static std::string | GetBuffer () |
static int | GetAbsCursor () |
return strlen(rl_display_prompt) + rl_point More... | |
static int | GetCursor () |
return rl_point (the current cursor position within the line buffer) More... | |
static int | GetBufferLength () |
static int | GetLineLength () |
return the length of the prompt plus the length of the line buffer More... | |
static void | Resize () |
static void | Resize (int w, int h) |
static Readline * | Instance () |
static void | StaticPushHistory (const std::string &fname) |
static std::string | StaticPrompt (const std::string &prompt) |
static void | StaticPopHistory (const std::string &fname) |
Public Attributes inherited from DimInfoHandler | |
DimInfo * | itsService |
Protected Member Functions inherited from Readline | |
virtual int | Getc (FILE *) |
The non static implementations of the callback funtions above. More... | |
virtual void | Shutdown (const char *buf) |
virtual void | Redisplay () |
Default: call rl_redisplay() More... | |
virtual void | CompletionDisplay (char **matches, int num, int max) |
Default: call rl_completion_display_matches() More... | |
virtual char * | Complete (const char *text, int state) |
Functions dealing with auto completion. More... | |
virtual char ** | Completion (const char *text, int start, int end) |
void | SetCompletion (const std::vector< std::string > *v) |
char ** | Complete (const std::vector< std::string > &v, const char *text) |
virtual void | SetSection (int) |
Protected Member Functions inherited from ChatClientImp | |
int | Write (const Time &t, const string &txt, int) |
Output stream for local synchrounous output. More... | |
ChatClientImp (std::ostream &out, std::ostream &in) | |
Protected Member Functions inherited from MessageDimRX | |
void | infoHandler () |
Protected Attributes inherited from Readline | |
const std::vector< std::string > * | fCompletion |
Pointer to a list of possible matched for auto-completion. More... | |
Protected Attributes inherited from ChatClientImp | |
std::ostream & | lout |
Protected Attributes inherited from MessageDimRX | |
MessageImp & | fMsg |
Static Protected Attributes inherited from Readline | |
static Readline * | This = 0 |
static std::string | fScript |
Derives the ChatClient from Control and adds a proper prompt.
Definition at line 99 of file ChatClient.h.