source: trunk/FACT++/src/Console.h@ 10278

Last change on this file since 10278 was 10183, checked in by tbretz, 14 years ago
New import.
File size: 742 bytes
Line 
1#ifndef FACT_Console
2#define FACT_Console
3
4#include "Readline.h"
5#include "WindowLog.h"
6
7class Console : public Readline
8{
9private:
10 WindowLog fLogO;
11 WindowLog fLogI;
12
13 bool fContinous;
14public:
15 Console(const char *name);
16 ~Console();
17
18 void SetContinous(bool cont) { fContinous = cont; }
19 bool IsContinous() const { return fContinous; }
20
21 WindowLog &GetStreamOut() { return fLogO; }
22 WindowLog &GetStreamIn() { return fLogI; }
23
24 const WindowLog &GetStreamOut() const { return fLogO; }
25 const WindowLog &GetStreamIn() const { return fLogI; }
26
27 std::string GetLinePrompt() const;
28
29 void Startup();
30 void EventHook();
31 //void Shutdown(const char * =0);
32 void Run(const char * = 0);
33};
34
35#endif
Note: See TracBrowser for help on using the repository browser.