Inheritance diagram for code::AOStream:
Public Member Functions | |
AOStream (std::ostream &output_stream, const std::string &separation="\n") | |
virtual AOStream & | operator<< (float val) |
Write a float to the stream. | |
virtual AOStream & | operator<< (double val) |
Write a float to the stream. | |
virtual AOStream & | operator<< (bool val) |
Write a bool to the stream. | |
virtual AOStream & | operator<< (char val) |
Write a char to the stream. | |
virtual AOStream & | operator<< (unsigned char val) |
Write an unsigned char to the stream. | |
virtual AOStream & | operator<< (int16_t val) |
Write a 16-bit signed integer to the stream. | |
virtual AOStream & | operator<< (uint16_t val) |
Write a 16-bit unsigned integer to the stream. | |
virtual AOStream & | operator<< (int32_t val) |
Write a 32-bit signed integer to the stream. | |
virtual AOStream & | operator<< (uint32_t val) |
Write a 32-bit unsigned integer to the stream. | |
virtual AOStream & | operator<< (int64_t val) |
Write a 64-bit signed integer to the stream. | |
virtual AOStream & | operator<< (uint64_t val) |
Write a 64-bit unsigned integer to the stream. | |
virtual AOStream & | operator<< (const std::string &val) |
Write a std::string to the OutputStream buffer. | |
virtual | ~AOStream () |
virtual destructor to permit subclassing. | |
Protected Attributes | |
std::ostream & | os |
The output stream we are sending it to. | |
std::string | sep |
The std::string we use to separate successive items. |
code::AOStream::AOStream | ( | std::ostream & | output_stream, | |
const std::string & | separation = "\n" | |||
) | [inline] |
virtual code::AOStream::~AOStream | ( | ) | [inline, virtual] |
virtual destructor to permit subclassing.
virtual AOStream& code::AOStream::operator<< | ( | const std::string & | val | ) | [virtual] |
Write a std::string to the OutputStream buffer.
This is done by writing an int (the std::string length) and a series of characters (the std::string contents).
s | the std::string to add. |
Implements code::OutputStream.
Write a 64-bit unsigned integer to the stream.
val | the value to add. |
Implements code::OutputStream.
Write a 64-bit signed integer to the stream.
val | the value to add. |
Implements code::OutputStream.
Write a 32-bit unsigned integer to the stream.
val | the value to add. |
Implements code::OutputStream.
Write a 32-bit signed integer to the stream.
val | the value to add. |
Implements code::OutputStream.
Write a 16-bit unsigned integer to the stream.
val | the value to add. |
Implements code::OutputStream.
Write a 16-bit signed integer to the stream.
val | the value to add. |
Implements code::OutputStream.
virtual AOStream& code::AOStream::operator<< | ( | unsigned char | val | ) | [inline, virtual] |
Write an unsigned char to the stream.
val | the value to add. |
Implements code::OutputStream.
virtual AOStream& code::AOStream::operator<< | ( | char | val | ) | [inline, virtual] |
virtual AOStream& code::AOStream::operator<< | ( | bool | val | ) | [inline, virtual] |
virtual AOStream& code::AOStream::operator<< | ( | double | val | ) | [inline, virtual] |
Write a float to the stream.
Note that float and double are present in AsciiStream but not in the binary stream.
double | the double to add. |
Implements code::OutputStream.
virtual AOStream& code::AOStream::operator<< | ( | float | val | ) | [inline, virtual] |
Write a float to the stream.
Note that float and double are present in AsciiStream but not in the binary stream.
float | the float to add. |
Implements code::OutputStream.
std::ostream& code::AOStream::os [protected] |
The output stream we are sending it to.
std::string code::AOStream::sep [protected] |
The std::string we use to separate successive items.
Use newlines, tabs or pipes (|) but use the symbol consistently.