summaryrefslogtreecommitdiff
path: root/src/include/multilogdevice.h
blob: a6f29f256d558291ddf7cc974ba4c761e0dc1d96 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/**  --------------------------------------------------------------------
 *  @file multilogdevice.h
 *  @brief Declaration of the MultilogDevice class.
 *  @author Andreas Aardal Hanssen
 *  @date Andreas Aardal Hanssen
 *  -----------------------------------------------------------------  **/
#ifndef multilogdevice_h_included
#define multilogdevice_h_included

#include "iodevice.h"

namespace Binc {
  class MultilogDevice : public IODevice {
  public:
    MultilogDevice(int flags);
    ~MultilogDevice();

    std::string service(void) const;

  protected:
    bool waitForWrite(void) const;
    bool waitForRead(void) const;

    WriteResult write(void);
    bool fillInputBuffer(void);
  };
}

#endif