PetaVision  Alpha
 All Data Structures Namespaces Functions Variables
PV::FileStream Class Reference
Inheritance diagram for PV::FileStream:

Public Member Functions

 FileStream (char const *path, std::ios_base::openmode mode, bool verifyWrites=false)
std::istream & inStream ()
std::ostream & outStream ()
int printf (const char *fmt,...)
bool readable ()
bool readwrite ()
bool writeable ()

Protected Member Functions

void initialize (char const *path, std::ios_base::openmode mode, bool verifyWrites)
void setOutStream (std::ostream &stream)

Private Member Functions

void closeFile ()
void openFile (char const *path, std::ios_base::openmode mode)

Private Attributes

std::streambuf::pos_type mFileLength = (std::streambuf::pos_type) 0
std::streambuf::pos_type mFilePos = (std::streambuf::pos_type) 0
std::istream * mInStream = nullptr
int const mMaxAttempts = 5
std::ios_base::openmode mMode = std::ios_base::out
char * mPath = nullptr
std::fstream * mStrPtr = nullptr
bool mVerifyWrites = false

Detailed Description

Definition at line 34 of file FileStream.hpp.

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