$search

Dashel::StdoutStream Class Reference

Standard output stream, simply a FileStream with a specific target. More...

Inheritance diagram for Dashel::StdoutStream:
Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual void flush ()
 Flushes stream.
virtual void read (void *data, size_t size)
 Reads data from the stream.
 StdoutStream (const std::string &params)
 Create the stream and associates a file descriptor.
 StdoutStream (const string &targetName)
virtual void write (const void *data, const size_t size)
 Write data to the stream.
 ~StdoutStream ()
 Destructor.

Protected Attributes

HANDLE hf
 The file handle.

Detailed Description

Standard output stream, simply a FileStream with a specific target.

Standard output stream.

Definition at line 838 of file dashel-posix.cpp.


Constructor & Destructor Documentation

Dashel::StdoutStream::StdoutStream ( const string &  targetName  )  [inline]

Definition at line 840 of file dashel-posix.cpp.

Dashel::StdoutStream::StdoutStream ( const std::string &  params  )  [inline]

Create the stream and associates a file descriptor.

Definition at line 473 of file dashel-win32.cpp.

Dashel::StdoutStream::~StdoutStream (  )  [inline]

Destructor.

Definition at line 482 of file dashel-win32.cpp.


Member Function Documentation

virtual void Dashel::StdoutStream::flush (  )  [inline, virtual]

Flushes stream.

Calling this function requests the stream to be flushed, this may ensure that data is written to physical media or actually sent over a wire. The exact performed function depends on the stream type and operating system.

Reimplemented from Dashel::FileStream.

Definition at line 513 of file dashel-win32.cpp.

virtual void Dashel::StdoutStream::read ( void *  data,
size_t  size 
) [inline, virtual]

Reads data from the stream.

Reads all requested data from the stream, blocking until all the data has been read, or some error occurs. Errors are signaled by throwing a DashelException exception, which may be caused either by device errors or reaching the end of file.

Parameters:
data Pointer to the memory where the read data should be stored.
size Amount of data to read in bytes.

Reimplemented from Dashel::FileStream.

Definition at line 518 of file dashel-win32.cpp.

virtual void Dashel::StdoutStream::write ( const void *  data,
const size_t  size 
) [inline, virtual]

Write data to the stream.

Writes all requested data to the stream, blocking until all the data has been written, or some error occurs. Errors are signaled by throwing a DashelException exception. This function does not flush devices, therefore the data may not really have been written on return, but only been buffered. In order to flush the stream, call flush().

Parameters:
data Pointer to the data to write.
size Amount of data to write in bytes.

Reimplemented from Dashel::FileStream.

Definition at line 487 of file dashel-win32.cpp.


Member Data Documentation

HANDLE Dashel::StdoutStream::hf [protected]

The file handle.

Reimplemented from Dashel::FileStream.

Definition at line 468 of file dashel-win32.cpp.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines


dashel
Author(s): St├ęphane Magnenat
autogenerated on Sat Mar 2 12:31:31 2013