Elm  2
ELM is a library providing generic data structures, OS-independent interface, plugins and XML.
UnixInStream.h
1 /*
2  * $Id$
3  * Copyright (c) 2005-06, IRIT - UPS.
4  *
5  * elm/io/InStream.h -- interface for InStream class.
6  */
7 #ifndef ELM_IO_UNIX_INSTREAM_H
8 #define ELM_IO_UNIX_INSTREAM_H
9 
10 #include <elm/string/CString.h>
11 #include <elm/io/InStream.h>
12 
13 namespace elm { namespace io {
14 
15 // UnixInStream class
16 class UnixInStream: public InStream {
17 protected:
18  int _fd;
19 public:
20  inline UnixInStream(int fd): _fd(fd) { };
21  inline int fd(void) const { return _fd; };
22  virtual int read(void *buffer, int size);
23  virtual int read(void) { return InStream::read(); };
24  virtual CString lastErrorMessage(void);
25 };
26 
27 } } // elm::io
28 
29 #endif // ELM_IO_UNIX_INSTREAM_H
elm::io::UnixInStream
Definition: UnixInStream.h:16
elm::io::UnixInStream::lastErrorMessage
virtual CString lastErrorMessage(void)
Definition: io_UnixInStream.cpp:59
elm::io::UnixInStream::_fd
int _fd
Definition: UnixInStream.h:18
elm::io::UnixInStream::UnixInStream
UnixInStream(int fd)
Definition: UnixInStream.h:20
elm::CString
Definition: CString.h:17
elm::io::UnixInStream::read
virtual int read(void)
Definition: UnixInStream.h:23
elm
Definition: adapter.h:26
elm::t::size
uint64 size
Definition: arch.h:35
elm::io::InStream::read
virtual int read(void)
Definition: io_InStream.cpp:63
elm::io::UnixInStream::fd
int fd(void) const
Definition: UnixInStream.h:21
elm::io::InStream
Definition: InStream.h:29