The Sparta Modeling Framework
Loading...
Searching...
No Matches
FILEIstream Class Reference

#include <FILEStream.hpp>

Public Member Functions

 FILEIstream (FILE *fd)
 
std::istream & getStream ()
 

Detailed Description

An class for creating an istream from a C file stream.

Create one of these on the stack, then use the getStream method to get a reference to its std::istream.

This class basically holds the appropriate custom streambuf instance and the istream instance. The caller will still be responsible for creating and closing the C file stream.

Definition at line 168 of file FILEStream.hpp.

Constructor & Destructor Documentation

◆ FILEIstream()

FILEIstream::FILEIstream ( FILE *  fd)
inline

Constructor.

Parameters
fdPointer to the underlying file stream.

Definition at line 285 of file FILEStream.hpp.

Member Function Documentation

◆ getStream()

std::istream & FILEIstream::getStream ( )
inline

Get a reference to the internal istream.

Returns
A reference to the internal istream.
Note
Don't use it after 'this' goes out of scope

Definition at line 295 of file FILEStream.hpp.


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