Alexandria  2.14.1
Please provide a description of the project.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Public Member Functions | Private Attributes | List of all members
Euclid::Table::StreamRewinder Class Reference

This class gets a stream as argument during construction and when it is deleted it sets the position of the stream back to where it was during the constructor call. More...

#include <AsciiReaderHelper.h>

Collaboration diagram for Euclid::Table::StreamRewinder:
[legend]

Public Member Functions

 StreamRewinder (std::istream &stream)
 
 ~StreamRewinder ()
 

Private Attributes

std::istreamm_stream
 
std::ios::iostate m_state
 
int m_position
 

Detailed Description

This class gets a stream as argument during construction and when it is deleted it sets the position of the stream back to where it was during the constructor call.

Definition at line 48 of file AsciiReaderHelper.h.

Constructor & Destructor Documentation

Euclid::Table::StreamRewinder::StreamRewinder ( std::istream stream)
inline

Definition at line 50 of file AsciiReaderHelper.h.

Euclid::Table::StreamRewinder::~StreamRewinder ( )
inline

Definition at line 51 of file AsciiReaderHelper.h.

References std::istream::clear(), m_position, m_state, m_stream, std::istream::seekg(), and std::istream::setstate().

Here is the call graph for this function:

Member Data Documentation

int Euclid::Table::StreamRewinder::m_position
private

Definition at line 59 of file AsciiReaderHelper.h.

Referenced by ~StreamRewinder().

std::ios::iostate Euclid::Table::StreamRewinder::m_state
private

Definition at line 58 of file AsciiReaderHelper.h.

Referenced by ~StreamRewinder().

std::istream& Euclid::Table::StreamRewinder::m_stream
private

Definition at line 57 of file AsciiReaderHelper.h.

Referenced by ~StreamRewinder().


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