RAII Object to read an STL container (e.g.
vector or list) from a stream
#include <STLIO.h>
Public Member Functions | |
ContainerStreamReader (std::istream &is) | |
~ContainerStreamReader () | |
void | read (Container &v) |
Private Member Functions | |
void | storeState () |
void | restoreFlags () |
void | setFailed () |
Private Attributes | |
std::istream & | is_ |
std::istream::pos_type | oldPos_ |
std::istream::fmtflags | oldFlags_ |
bool | success_ |
|
inline |
|
inline |
|
inline |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
private |
|
private |
|
private |
|
private |