Elm  2
ELM is a library providing generic data structures, OS-independent interface, plugins and XML.
WinOutStream.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 // WinOutStream class
16 class WinOutStream: public OutStream {
17 protected:
18  void* _fd;
19 public:
20  WinOutStream(void* fd);
21  inline void* fd(void) const { return _fd; };
22  virtual int write(const char *buffer, int size);
23  virtual int flush(void);
24  virtual CString lastErrorMessage(void);
25 };
26 
27 } } // elm::io
28 
29 #endif // ELM_IO_UNIX_OUTSTREAM_H
elm::io::WinOutStream::_fd
void * _fd
Definition: WinOutStream.h:18
elm::io::WinOutStream::write
virtual int write(const char *buffer, int size)
Definition: io_WinOutStream.cpp:65
elm::io::WinOutStream::WinOutStream
WinOutStream(void *fd)
Definition: io_WinOutStream.cpp:45
elm::io::WinOutStream::lastErrorMessage
virtual CString lastErrorMessage(void)
Definition: io_WinOutStream.cpp:59
elm::CString
Definition: CString.h:17
elm::io::WinOutStream::fd
void * fd(void) const
Definition: WinOutStream.h:21
elm
Definition: adapter.h:26
elm::t::size
uint64 size
Definition: arch.h:35
elm::io::OutStream
Definition: OutStream.h:30
elm::io::WinOutStream
Definition: WinOutStream.h:16
elm::io::WinOutStream::flush
virtual int flush(void)
Definition: io_WinOutStream.cpp:81