Continued refactoring, moving around code.
[aesalon.git] / include / vcomm / LogSink.h
blobbe2f763496d97939f21a51f64104c007ea7ed0ed
1 /**
2 Aesalon, a tool to visualize a program's behaviour at run-time.
3 Copyright (C) 2010, Aesalon Development Team.
5 Aesalon is distributed under the terms of the GNU GPLv3. For more
6 licensing information, see the file LICENSE included with the distribution.
8 @file include/monitor/vcommunication/LogSink.h
12 #ifndef AesalonMonitor_VCommunication_LogSink_H
13 #define AesalonMonitor_VCommunication_LogSink_H
15 #include <semaphore.h>
17 #include "DataSink.h"
19 namespace Monitor {
20 namespace VCommunication {
22 class LogSink : public DataSink {
23 private:
24 int m_fd;
25 sem_t m_logLock;
26 public:
27 LogSink();
28 ~LogSink();
30 /** Sink a packet into a log file.
32 virtual void sinkPacket(Common::VPacket *packet);
35 } // namespace VCommunication
36 } // namespace Monitor
38 #endif