MRPT logo

mrpt::utils::CStdOutStream Class Reference

This CStdOutStream derived class allow printing to standard out, normally the console text output. More...

#include <mrpt/utils/CStdOutStream.h>

Inheritance diagram for mrpt::utils::CStdOutStream:

mrpt::utils::CStream

List of all members.

Public Member Functions

 CStdOutStream ()
 Constructor.
virtual ~CStdOutStream ()
 Destructor.
size_t Seek (long Offset, CStdOutStream::TSeekOrigin Origin=sFromBeginning)
 It has no efect in this class.
size_t getTotalBytesCount ()
 It has no efect in this class.
size_t getPosition ()
 It has no efect in this class.

Protected Member Functions

size_t Read (void *Buffer, size_t Count)
 Method responsible for reading from the stream: In this class it has no effect.
size_t Write (const void *Buffer, size_t Count)
 Method responsible for writing to the stream.


Detailed Description

This CStdOutStream derived class allow printing to standard out, normally the console text output.

Please notice CStdOutStream's are binary streams, so "char *" data types only should be used if textual outputs are desired.

See also:
CStream

Definition at line 47 of file CStdOutStream.h.


Constructor & Destructor Documentation

mrpt::utils::CStdOutStream::CStdOutStream (  )  [inline]

Constructor.

Definition at line 63 of file CStdOutStream.h.

virtual mrpt::utils::CStdOutStream::~CStdOutStream (  )  [inline, virtual]

Destructor.

Definition at line 67 of file CStdOutStream.h.


Member Function Documentation

size_t mrpt::utils::CStdOutStream::getPosition (  )  [inline, virtual]

It has no efect in this class.

Implements mrpt::utils::CStream.

Definition at line 81 of file CStdOutStream.h.

References THROW_EXCEPTION.

size_t mrpt::utils::CStdOutStream::getTotalBytesCount (  )  [inline, virtual]

It has no efect in this class.

Implements mrpt::utils::CStream.

Definition at line 76 of file CStdOutStream.h.

References THROW_EXCEPTION.

size_t mrpt::utils::CStdOutStream::Read ( void *  Buffer,
size_t  Count 
) [inline, protected, virtual]

Method responsible for reading from the stream: In this class it has no effect.

Implements mrpt::utils::CStream.

Definition at line 53 of file CStdOutStream.h.

References THROW_EXCEPTION.

size_t mrpt::utils::CStdOutStream::Seek ( long  Offset,
CStdOutStream::TSeekOrigin  Origin = sFromBeginning 
) [inline, virtual]

It has no efect in this class.

Implements mrpt::utils::CStream.

Definition at line 71 of file CStdOutStream.h.

References THROW_EXCEPTION.

size_t mrpt::utils::CStdOutStream::Write ( const void *  Buffer,
size_t  Count 
) [protected, virtual]

Method responsible for writing to the stream.

Write attempts to write up to Count bytes to Buffer, and returns the number of bytes actually written.

Implements mrpt::utils::CStream.




Page generated by Doxygen 1.5.8 for MRPT 0.6.5 SVN: at Thu Feb 26 02:07:47 EST 2009