SOFA API  c76874b7
Open source framework for multi-physics simuation
sofa::helper::io::File Class Reference

#include <File.h>

Public Member Functions

 File ()
 
 File (const std::string &filename, std::ios_base::openmode openMode=std::ios_base::in|std::ios_base::binary)
 
 ~File ()
 
bool open (const std::string &filename, std::ios_base::openmode openMode=std::ios_base::in|std::ios_base::binary)
 
void close ()
 
std::streambuf * streambuf () const
 
std::string readAll ()
 

Protected Member Functions

bool checkFileAccess () const
 

Constructor details

sofa::helper::io::File::File ( )
sofa::helper::io::File::File ( const std::string &  filename,
std::ios_base::openmode  openMode = std::ios_base::in | std::ios_base::binary 
)
sofa::helper::io::File::~File ( )

Function details

bool sofa::helper::io::File::checkFileAccess ( ) const
protected
void sofa::helper::io::File::close ( )
bool sofa::helper::io::File::open ( const std::string &  filename,
std::ios_base::openmode  openMode = std::ios_base::in | std::ios_base::binary 
)
std::string sofa::helper::io::File::readAll ( )
std::streambuf * sofa::helper::io::File::streambuf ( ) const