Template Function Aux::enforceOpened

Function Documentation

template<typename Stream>
inline void Aux::enforceOpened(const Stream &stream)

Checks that the provided fstream is opened and throws an exception otherwise.

Parameters:

stream – File stream whose openness should be enforced