Started experimenting with perl/python scripts to auto rename incl guards etc.
[aesalon.git] / include / vcomm / LogSink.h
blobd479a18c7d1da00b813b812740c3e285185d6db1
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/vcomm/LogSink.h
12 #ifndef AesalonVComm_LogSink_H
13 #define AesalonVComm_LogSink_H
15 #include <semaphore.h>
17 #include "DataSink.h"
19 namespace VComm {
21 class LogSink : public DataSink {
22 private:
23 int m_fd;
24 sem_t m_logLock;
25 public:
26 LogSink();
27 ~LogSink();
29 /** Sink a packet into a log file.
31 virtual void sinkPacket(Common::VPacket *packet);
34 } // namespace VComm
36 #endif