]> git.tdb.fi Git - libs/core.git/blob - source/io/unix/eventreader.cpp
Use default member initializers and constructor delegation
[libs/core.git] / source / io / unix / eventreader.cpp
1 #include "eventreader.h"
2
3 namespace Msp {
4 namespace IO {
5
6 EventReader::EventReader(Handle &h, unsigned):
7         handle(h)
8 { }
9
10 EventReader::~EventReader()
11 { }
12
13 const Handle &EventReader::get_event()
14 {
15         return handle;
16 }
17
18 void EventReader::start()
19 { }
20
21 void EventReader::wait()
22 { }
23
24 unsigned EventReader::read(char *buf, unsigned len)
25 {
26         return sys_read(handle, buf, len);
27 }
28
29 } // namespace IO
30 } // namespace Msp