Changeset 13672 for trunk/FACT++
- Timestamp:
- 05/12/12 12:42:28 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/RemoteControl.h
r13286 r13672 56 56 #include "ReadlineColor.h" 57 57 #include "tools.h" 58 #include "MainImp.h" 58 59 59 60 template <class T> … … 63 64 MessageImp *fImp; 64 65 65 int32_t fLabel;66 void SetSection(int s) { fImp->Write(Time(), "", s); } 66 67 67 68 int Write(const Time &time, const std::string &txt, int qos=kMessage) … … 69 70 return fImp ? fImp->Write(time, txt, qos) : MessageImp::Write(time, txt, qos); 70 71 } 72 73 void exitHandler(int code) { if (dynamic_cast<MainImp*>(fImp)) dynamic_cast<MainImp*>(fImp)->Stop(code); else exit(code); } 71 74 72 75 static void append(std::string &str) … … 127 130 // Redirect asynchronous output to the output window 128 131 RemoteControl(const char *name) : T(name), 129 RemoteControlImp(T::GetStreamOut(), T::GetStreamIn()), fImp(0) , fLabel(-1)132 RemoteControlImp(T::GetStreamOut(), T::GetStreamIn()), fImp(0) 130 133 { 131 134 } … … 261 264 262 265 // ************************************************************************** 266 /** @class RemoteStream 267 268 */ 269 // ************************************************************************** 270 #include "Console.h" 271 272 class RemoteStream : public RemoteControl<ConsoleStream> 273 { 274 public: 275 RemoteStream(const char *name, bool null = false) 276 : RemoteControl<ConsoleStream>(name) { SetNullOutput(null); } 277 }; 278 279 // ************************************************************************** 263 280 /** @class RemoteConsole 264 281 … … 271 288 */ 272 289 // ************************************************************************** 273 #include "Console.h"274 290 275 291 class RemoteConsole : public RemoteControl<Console>
Note:
See TracChangeset
for help on using the changeset viewer.