Elm  1.0
ELM is a library providing generic data structures, OS-independent interface, plugins and XML.
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
elm::io::WinOutStream Class Reference

#include <>>

+ Inheritance diagram for elm::io::WinOutStream:

Public Member Functions

 WinOutStream (void *fd)
 
void * fd (void) const
 
virtual int write (const char *buffer, int size)
 
virtual int flush (void)
 
virtual CString lastErrorMessage (void)
 
- Public Member Functions inherited from elm::io::OutStream
virtual ~OutStream (void)
 
virtual int write (char byte)
 

Protected Attributes

void * _fd
 

Additional Inherited Members

- Static Public Attributes inherited from elm::io::OutStream
static OutStreamnull = _null
 

Detailed Description

Output stream implementation using the Win low-level IO system (only on OSes supporting POSIX).

Constructor & Destructor Documentation

elm::io::WinOutStream::WinOutStream ( void *  fd)

Build an Win output stream.

Parameters
fdFile descriptor.

Build a Win output stream using a file descriptor identifier.

Parameters
_fdFile descriptor identifier.

Member Function Documentation

void* elm::io::WinOutStream::fd ( void  ) const

References _fd.

int elm::io::WinOutStream::flush ( void  )
virtual

Cause the current stream to dump its buffer to the medium.

Returns
0 for success, less than 0 for error.

Implements elm::io::OutStream.

CString elm::io::WinOutStream::lastErrorMessage ( void  )
virtual

Return the last occured error message.

Returns
Last error message.

Reimplemented from elm::io::OutStream.

int elm::io::WinOutStream::write ( const char *  buffer,
int  size 
)
virtual

This is the main method of an output stream: the given buffer is put on the stream.

Parameters
bufferByte buffer to write.
sizeSize of the byte buffer.
Returns
Number of transferred bytes or less than 0 for an error.

Implements elm::io::OutStream.

References _fd, elm::io::err, and elm::io::out.

Member Data Documentation

void* elm::io::WinOutStream::_fd
protected

Referenced by fd(), and write().


The documentation for this class was generated from the following files: