Public Member Functions | Protected Attributes
ecl::interfaces::BaseTextStream< Device > Class Template Reference

Parent class for text stream functionality. More...

#include <base_text_stream.hpp>

Inheritance diagram for ecl::interfaces::BaseTextStream< Device >:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 BaseTextStream ()
Device & device ()
 Provides access to the underlying output device.
const ecl::ErrorerrorStatus () const
 Enumeration indicating the exit status of the last read operation.
bool fail () const
 Denotes the status of the last device operation.
virtual ~BaseTextStream ()

Protected Attributes

ecl::Error error
Device io_device

Detailed Description

template<typename Device>
class ecl::interfaces::BaseTextStream< Device >

Parent class for text stream functionality.

This brings the common io functionality together for both input and output text streams, namely the device and its handlers.

Template Parameters:
Device: the underlying device type.

Definition at line 43 of file base_text_stream.hpp.


Constructor & Destructor Documentation

template<typename Device >
ecl::interfaces::BaseTextStream< Device >::BaseTextStream ( ) [inline]

Definition at line 45 of file base_text_stream.hpp.

template<typename Device >
virtual ecl::interfaces::BaseTextStream< Device >::~BaseTextStream ( ) [inline, virtual]

Definition at line 46 of file base_text_stream.hpp.


Member Function Documentation

template<typename Device >
Device & ecl::interfaces::BaseTextStream< Device >::device ( )

Provides access to the underlying output device.

Provides access to the underlying output device.

Returns:
Device : reference to the underlying output device.

Definition at line 66 of file base_text_stream.hpp.

template<typename Device >
const ecl::Error & ecl::interfaces::BaseTextStream< Device >::errorStatus ( ) const

Enumeration indicating the exit status of the last read operation.

This returns an enumeration that indicates the exit status of the last read operation.

Returns:
ErrorFlag : the error status indicator (NoError is a valid state).

Definition at line 94 of file base_text_stream.hpp.

template<typename Device >
bool ecl::interfaces::BaseTextStream< Device >::fail ( ) const

Denotes the status of the last device operation.

This returns true if the last (read/write) operation failed. This can be due to the input being incorrect (e.g. letters in a value when reading a digit), or because it tried to read past the end of the stream, or the stream is in a bad state. return bool : true if the last stream operation failed, false otherwise.

Definition at line 78 of file base_text_stream.hpp.


Member Data Documentation

template<typename Device >
ecl::Error ecl::interfaces::BaseTextStream< Device >::error [protected]

Definition at line 52 of file base_text_stream.hpp.

template<typename Device >
Device ecl::interfaces::BaseTextStream< Device >::io_device [protected]

Definition at line 53 of file base_text_stream.hpp.


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


ecl_streams
Author(s): Daniel Stonier
autogenerated on Sun Oct 5 2014 23:36:00