Accelerated Computation Engine
ace_logserver.h
1 #ifndef ACE_LOGSERVER_H
2 #define ACE_LOGSERVER_H
3 #include <QObject>
4 //
5 
6 
7 
8 namespace Ace
9 {
18  class LogServer : public QObject
19  {
20  Q_OBJECT
21  public:
25  enum Type
26  {
34  ,Debug
35  };
36  public:
37  static void initialize(int port);
38  static LogServer* log();
39  static QString host();
40  public:
41  void wait();
42  LogServer& broadcast(Type type, int thread, const QByteArray& data);
43  private:
44  class Thread;
45  private:
49  static LogServer* _log;
50  private:
51  LogServer(int port);
56  Thread* _server;
57  };
58 }
59 
60 
61 
62 #endif
Definition: ace_logserver.h:30
Type
Definition: ace_logserver.h:25
Definition: ace.h:6
LogServer & broadcast(Type type, int thread, const QByteArray &data)
Definition: ace_logserver.cpp:107
static QString host()
Definition: ace_logserver.cpp:71
static LogServer * log()
Definition: ace_logserver.cpp:56
void wait()
Definition: ace_logserver.cpp:85
Definition: ace_logserver.h:18
static void initialize(int port)
Definition: ace_logserver.cpp:30