Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

MynahSA::OTextStream Class Reference

#include <otextstream.hpp>

Inheritance diagram for MynahSA::OTextStream:

Inheritance graph
[legend]
Collaboration diagram for MynahSA::OTextStream:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 OTextStream (std::ostream &o)
 constructor - build on top of a std::ostream
 OTextStream (const OTextStream &os)
 copy constructor
virtual ~OTextStream ()
 virtual destructor
virtual OStreamBaseoperator<< (const char)
 specialization to prevent direct character interpretation
virtual OStreamBaseoperator<< (const unsigned char)
 specialization to prevent direct character interpretation
virtual OStreamBaseoperator<< (const short)
 ostream short
virtual OStreamBaseoperator<< (const unsigned short)
 ostream unsigned short
virtual OStreamBaseoperator<< (const int)
 ostream int
virtual OStreamBaseoperator<< (const unsigned int)
 ostream unsigned int
virtual OStreamBaseoperator<< (const bool)
 ostream bool
virtual OStreamBaseoperator<< (const long long)
 ostream long long
virtual OStreamBaseoperator<< (const unsigned long long)
 ostream unsigned long long
virtual OStreamBaseoperator<< (const double)
 ostream double
virtual OStreamBaseoperator<< (const float)
 ostream float
virtual OStreamBaseoperator<< (const std::string &)
 we provide an implementation for strings, but user classes may override.

Detailed Description

OTextStream binds a set of output stream operators onto a standard ostream. The purpose of this class is to provide space-separated formatting of the output data. This means that characters and unsigned characters are encoded as integers and written onto the stream. From looking at the output data it will be difficult (if not impossible) to identify which numbers represent characters, shorts or integers.

Notes: This stream format stores floating point types using the precision specification of the stream passed in during class construction. For some applications the text representation of floating point numbers may not provide enough precision.

Definition at line 41 of file otextstream.hpp.


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