SOFA API  b3f2f2a4
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

◆ File() [1/2]

sofa::helper::io::File::File ( )

◆ File() [2/2]

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

◆ ~File()

sofa::helper::io::File::~File ( )

Function details

◆ checkFileAccess()

bool sofa::helper::io::File::checkFileAccess ( ) const
protected

◆ close()

void sofa::helper::io::File::close ( )

◆ open()

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

◆ readAll()

std::string sofa::helper::io::File::readAll ( )

◆ streambuf()

std::streambuf * sofa::helper::io::File::streambuf ( ) const