PetaVision  Alpha
PV::FileStream Class Reference
Inheritance diagram for PV::FileStream:
PV::PrintStream PV::CheckpointableFileStream

Public Member Functions

 FileStream (char const *path, std::ios_base::openmode mode, bool verifyWrites=false)
 
bool binary ()
 
void flush ()
 
std::string const & getFileName () const
 
long getInPos ()
 
long getOutPos ()
 
template<typename T >
PrintStreamoperator<< (const T &x)
 
PrintStreamoperator<< (std::ostream &(*f)(std::ostream &))
 
PrintStreamoperator<< (std::ostream &(*f)(std::ios &))
 
PrintStreamoperator<< (std::ostream &(*f)(std::ios_base &))
 
int printf (const char *fmt,...)
 
virtual void read (void *data, long length)
 
bool readable ()
 
bool readwrite ()
 
virtual void setInPos (long pos, std::ios_base::seekdir seekAnchor)
 
virtual void setInPos (long pos, bool fromBeginning)
 
virtual void setOutPos (long pos, std::ios_base::seekdir seekAnchor)
 
virtual void setOutPos (long pos, bool fromBeginning)
 
virtual void write (void const *data, long length)
 
bool writeable ()
 

Protected Member Functions

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

Protected Attributes

std::string mFileName
 
std::fstream mFStream
 

Private Attributes

int const mMaxAttempts = 5
 
std::ios_base::openmode mMode
 
bool mVerifyWrites = false
 

Detailed Description

Definition at line 17 of file FileStream.hpp.


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