LRT14  1.0
 All Classes Namespaces Functions Variables Enumerations Enumerator
BufferedConsole.h
1 #ifndef RHESUS_BUFFEREDCONSOLE_H_
2 #define RHESUS_BUFFEREDCONSOLE_H_
3 
4 #include "../Defines.h"
5 
6 #include <queue>
7 #include <string>
8 
9 namespace Rhesus
10 {
11 namespace Toolkit
12 {
13 namespace IO
14 {
20  {
21  public:
22 
23  static void Start();
24 
25  static void Printfln(std::string msg, ...);
26  static void Printf(std::string msg, ...);
27 
28  private:
29 
30  struct PrintParams
31  {
32  std::string message;
33  };
34 
35  static void InternalPrintWrapper(PrintParams* params)
36  {
37  std::printf(params->message.c_str());
38  DELETE(params);
39  }
40  };
41 }
42 }
43 }
44 
45 #endif