Output text stream interface. More...
#include <output_text_stream.hpp>
Public Member Functions | |
template<typename Action > | |
OutputTextStream< Device > &operator<< (const char &c) ecl_assert_throw_decl(ecl OutputTextStream< Device > &operator<< (const char *s) ecl_assert_throw_decl(ecl OutputTextStream< Device > &operator<< (const std::string &s) ecl_assert_throw_decl(ecl OutputTextStream< Device > &operator<< (const short &i) ecl_assert_throw_decl(ecl OutputTextStream< Device > &operator<< (const int &i) ecl_assert_throw_decl(ecl OutputTextStream< Device > &operator<< (const long &i) ecl_assert_throw_decl(ecl OutputTextStream< Device > &operator<< (const long long &i) ecl_assert_throw_decl(ecl OutputTextStream< Device > &operator<< (const unsigned short &i) ecl_assert_throw_decl(ecl OutputTextStream< Device > &operator<< (const unsigned int &i) ecl_assert_throw_decl(ecl OutputTextStream< Device > &operator<< (const unsigned long &i) ecl_assert_throw_decl(ecl OutputTextStream< Device > &operator<< (const unsigned long long &i) ecl_assert_throw_decl(ecl OutputTextStream< Device > &operator<< (const bool b) ecl_assert_throw_decl(ecl OutputTextStream< Device > &operator<< (const float &f) ecl_assert_throw_decl(ecl OutputTextStream< Device > &operator<< (const double &d) ecl_assert_throw_decl(ecl OutputTextStream< Device > & | operator<< (ecl::Manipulator< Action > &manipulator) ecl_assert_throw_decl(ecl |
template<typename Device > | |
OutputTextStream< Device > & | operator<< (const double &d) ecl_assert_throw_decl(ecl |
template<typename Device > | |
OutputTextStream< Device > & | operator<< (const char &c) ecl_assert_throw_decl(ecl |
Sends an unformatted char to the stream. Sends an unformatted char to the stream. More... | |
template<typename Device > | |
OutputTextStream< Device > & | operator<< (const bool b) ecl_assert_throw_decl(ecl |
Sends a boolean to the stream. Sends a boolean to the stream. More... | |
template<typename Device > | |
OutputTextStream< Device > & | operator<< (const unsigned long long &i) ecl_assert_throw_decl(ecl |
Sends an unformatted unsigned long long to the stream. Sends an unformatted unsigned long long to the stream. More... | |
template<typename Device > | |
OutputTextStream< Device > & | operator<< (const unsigned long &i) ecl_assert_throw_decl(ecl |
Sends an unformatted unsigned long to the stream. Sends an unformatted unsigned long to the stream. More... | |
template<typename Device > | |
OutputTextStream< Device > & | operator<< (const int &i) ecl_assert_throw_decl(ecl |
Sends an unformatted int to the stream. Sends an unformatted int to the stream. More... | |
template<typename Device > | |
OutputTextStream< Device > & | operator<< (const unsigned short &i) ecl_assert_throw_decl(ecl |
Sends an unformatted unsigned short to the stream. Sends an unformatted unsigned short to the stream. More... | |
template<typename Device > | |
OutputTextStream< Device > & | operator<< (const long long &i) ecl_assert_throw_decl(ecl |
Sends an unformatted long long to the stream. Sends an unformatted long long to the stream. More... | |
template<typename Device > | |
OutputTextStream< Device > & | operator<< (const float &f) ecl_assert_throw_decl(ecl |
template<typename Device > | |
OutputTextStream< Device > & | operator<< (const long &i) ecl_assert_throw_decl(ecl |
Sends an unformatted long to the stream. Sends an unformatted long to the stream. More... | |
template<typename Device > | |
OutputTextStream< Device > & | operator<< (const short &i) ecl_assert_throw_decl(ecl |
Sends an unformatted short to the stream. Sends an unformatted short to the stream. More... | |
template<typename Device > | |
OutputTextStream< Device > & | operator<< (const unsigned int &i) ecl_assert_throw_decl(ecl |
Sends an unformatted unsigned int to the stream. Sends an unformatted unsigned int to the stream. More... | |
template<typename Device > | |
OutputTextStream< Device > & | operator<< (const char *s) ecl_assert_throw_decl(ecl |
Sends an unformatted char string to the stream. Sends an unformatted char string to the stream. More... | |
template<typename Device > | |
OutputTextStream< Device > & | operator<< (const std::string &s) ecl_assert_throw_decl(ecl |
Sends an unformatted string to the stream. Sends an unformatted string to the stream. More... | |
OutputTextStream () | |
Connects the stream to an output device. More... | |
virtual | ~OutputTextStream () |
Public Member Functions inherited from ecl::interfaces::BaseTextStream< Device > | |
BaseTextStream () | |
Device & | device () |
Provides access to the underlying output device. More... | |
const ecl::Error & | errorStatus () const |
Enumeration indicating the exit status of the last read operation. More... | |
bool | fail () const |
Denotes the status of the last device operation. More... | |
virtual | ~BaseTextStream () |
Private Attributes | |
ecl::Converter< char * > | toCharString |
Additional Inherited Members | |
Protected Attributes inherited from ecl::interfaces::BaseTextStream< Device > | |
ecl::Error | error |
Device | io_device |
Output text stream interface.
Defines the appropriate functionality required for output text streams.
Device | : this must be a class that satisfies the output device concept (refer to the documentation in ecl_concepts for details). |
Usage:
Definition at line 80 of file output_text_stream.hpp.
|
inline |
Connects the stream to an output device.
Connects the text stream to the associated output device. Use the device() handle to properly open the device, e.g.
Definition at line 93 of file output_text_stream.hpp.
|
inlinevirtual |
Definition at line 99 of file output_text_stream.hpp.
|
inline |
Definition at line 120 of file output_text_stream.hpp.
OutputTextStream<Device>& ecl::interfaces::OutputTextStream< Device, true >::operator<< | ( | const double & | d | ) |
Sends an unformatted double to the stream.
d | : input value being sent to the stream |
ecl::StandardException | : throws if the underlying device has not been opened [debug mode only]. |
Definition at line 346 of file output_text_stream.hpp.
OutputTextStream<Device>& ecl::interfaces::OutputTextStream< Device, true >::operator<< | ( | const float & | f | ) |
Sends an unformatted float to the stream.
f | : input value being sent to the stream |
ecl::StandardException | : throws if the underlying device has not been opened [debug mode only]. |
Definition at line 332 of file output_text_stream.hpp.
OutputTextStream<Device>& ecl::interfaces::OutputTextStream< Device, true >::operator<< | ( | const bool | b | ) |
Sends a boolean to the stream. Sends a boolean to the stream.
b | : input value being sent to the stream |
ecl::StandardException | : throws if the underlying device has not been opened [debug mode only]. |
Definition at line 318 of file output_text_stream.hpp.
OutputTextStream<Device>& ecl::interfaces::OutputTextStream< Device, true >::operator<< | ( | const unsigned long long & | i | ) |
Sends an unformatted unsigned long long to the stream. Sends an unformatted unsigned long long to the stream.
i | : input value being sent to the stream |
ecl::StandardException | : throws if the underlying device has not been opened [debug mode only]. |
Definition at line 304 of file output_text_stream.hpp.
OutputTextStream<Device>& ecl::interfaces::OutputTextStream< Device, true >::operator<< | ( | const unsigned long & | i | ) |
Sends an unformatted unsigned long to the stream. Sends an unformatted unsigned long to the stream.
i | : input value being sent to the stream |
ecl::StandardException | : throws if the underlying device has not been opened [debug mode only]. |
Definition at line 290 of file output_text_stream.hpp.
OutputTextStream<Device>& ecl::interfaces::OutputTextStream< Device, true >::operator<< | ( | const unsigned int & | i | ) |
Sends an unformatted unsigned int to the stream. Sends an unformatted unsigned int to the stream.
i | : input value being sent to the stream |
ecl::StandardException | : throws if the underlying device has not been opened [debug mode only]. |
Definition at line 275 of file output_text_stream.hpp.
OutputTextStream<Device>& ecl::interfaces::OutputTextStream< Device, true >::operator<< | ( | const unsigned short & | i | ) |
Sends an unformatted unsigned short to the stream. Sends an unformatted unsigned short to the stream.
i | : input value being sent to the stream |
ecl::StandardException | : throws if the underlying device has not been opened [debug mode only]. |
Definition at line 260 of file output_text_stream.hpp.
OutputTextStream<Device>& ecl::interfaces::OutputTextStream< Device, true >::operator<< | ( | const long long & | i | ) |
Sends an unformatted long long to the stream. Sends an unformatted long long to the stream.
i | : input value being sent to the stream |
ecl::StandardException | : throws if the underlying device has not been opened [debug mode only]. |
Definition at line 245 of file output_text_stream.hpp.
OutputTextStream<Device>& ecl::interfaces::OutputTextStream< Device, true >::operator<< | ( | const long & | i | ) |
Sends an unformatted long to the stream. Sends an unformatted long to the stream.
i | : input value being sent to the stream |
ecl::StandardException | : throws if the underlying device has not been opened [debug mode only]. |
Definition at line 230 of file output_text_stream.hpp.
OutputTextStream<Device>& ecl::interfaces::OutputTextStream< Device, true >::operator<< | ( | const int & | i | ) |
Sends an unformatted int to the stream. Sends an unformatted int to the stream.
i | : input value being sent to the stream |
ecl::StandardException | : throws if the underlying device has not been opened [debug mode only]. |
Definition at line 215 of file output_text_stream.hpp.
OutputTextStream<Device>& ecl::interfaces::OutputTextStream< Device, true >::operator<< | ( | const short & | i | ) |
Sends an unformatted short to the stream. Sends an unformatted short to the stream.
i | : input value being sent to the stream |
ecl::StandardException | : throws if the underlying device has not been opened [debug mode only]. |
Definition at line 201 of file output_text_stream.hpp.
OutputTextStream<Device>& ecl::interfaces::OutputTextStream< Device, true >::operator<< | ( | const std::string & | s | ) |
Sends an unformatted string to the stream. Sends an unformatted string to the stream.
s | : input value being sent to the stream |
ecl::StandardException | : throws if the underlying device has not been opened [debug mode only]. |
Definition at line 188 of file output_text_stream.hpp.
OutputTextStream<Device>& ecl::interfaces::OutputTextStream< Device, true >::operator<< | ( | const char * | s | ) |
Sends an unformatted char string to the stream. Sends an unformatted char string to the stream.
s | : input value being sent to the stream |
ecl::StandardException | : throws if the underlying device has not been opened [debug mode only]. |
Definition at line 173 of file output_text_stream.hpp.
OutputTextStream<Device>& ecl::interfaces::OutputTextStream< Device, true >::operator<< | ( | const char & | c | ) |
Sends an unformatted char to the stream. Sends an unformatted char to the stream.
c | : input value being sent to the stream |
ecl::StandardException | : throws if the underlying device has not been opened [debug mode only]. |
Definition at line 159 of file output_text_stream.hpp.
|
private |
Provides a streaming operator for handling output textstream manipulators. Manipulators are simple functions that accept the stream as input and manipulate it in a minor way. They can hold no state. The most common example of such a manipulator is the endln manipulator. This manipulator works in the same fashion as the c++ endl manipulator.
Definition at line 141 of file output_text_stream.hpp.