Elm  2
ELM is a library providing generic data structures, OS-independent interface, plugins and XML.
UnixOutStream.h
1 /*
2  * $Id$
3  * Copyright (c) 2004-06, IRIT - UPS.
4  *
5  * elm/io/OutStream.h -- interface for OutStream class.
6  */
7 #ifndef ELM_IO_UNIX_OUTSTREAM_H
8 #define ELM_IO_UNIX_OUTSTREAM_H
9 
10 #include <elm/string/CString.h>
11 #include <elm/io/OutStream.h>
12 
13 namespace elm { namespace io {
14 
15 // UnixOutStream class
16 class UnixOutStream: public OutStream {
17 public:
18  UnixOutStream(int fd);
20  inline int fd(void) const { return _fd; };
21  int write(const char *buffer, int size) override;
22  int flush() override;
23  CString lastErrorMessage() override;
24  bool supportsANSI() const override;
25 protected:
26  int _fd;
27 };
28 
29 } } // elm::io
30 
31 #endif // ELM_IO_UNIX_OUTSTREAM_H
elm::io::UnixOutStream::fd
int fd(void) const
Definition: UnixOutStream.h:20
elm::io::UnixOutStream::_fd
int _fd
Definition: UnixOutStream.h:26
elm::io::UnixOutStream::write
int write(const char *buffer, int size) override
Definition: io_UnixOutStream.cpp:79
elm::io::UnixOutStream::lastErrorMessage
CString lastErrorMessage() override
Definition: io_UnixOutStream.cpp:73
elm::io::UnixOutStream::UnixOutStream
UnixOutStream(int fd)
Definition: io_UnixOutStream.cpp:42
elm::CString
Definition: CString.h:17
elm::io::UnixOutStream
Definition: UnixOutStream.h:16
elm::io::UnixOutStream::supportsANSI
bool supportsANSI() const override
Definition: io_UnixOutStream.cpp:89
elm
Definition: adapter.h:26
elm::t::size
uint64 size
Definition: arch.h:35
elm::io::OutStream
Definition: OutStream.h:30
elm::io::UnixOutStream::~UnixOutStream
~UnixOutStream()
Definition: io_UnixOutStream.cpp:57
elm::io::UnixOutStream::flush
int flush() override
Definition: io_UnixOutStream.cpp:84