SOFA API  1c8b807d
Open source framework for multi-physics simuation
sofa::helper::io::FileAccess Class Reference

#include <FileAccess.h>

Inheritance diagram for sofa::helper::io::FileAccess:

Public Member Functions

 ~FileAccess () override
 
virtual bool open (const std::string &filename, std::ios_base::openmode openMode) override
 
void close () override
 
virtual std::streambuf * streambuf () const override
 
virtual std::string readAll () override
 
virtual void write (const std::string &data) override
 
- Public Member Functions inherited from sofa::helper::io::BaseFileAccess
virtual ~BaseFileAccess ()
 

Protected Member Functions

 FileAccess ()
 
- Protected Member Functions inherited from sofa::helper::io::BaseFileAccess
 BaseFileAccess ()
 

Friends

class FileAccessCreator< FileAccess >
 

Additional Inherited Members

- Static Public Member Functions inherited from sofa::helper::io::BaseFileAccess
static void SetDefaultCreator ()
 
static void SetCreator (BaseFileAccessCreator *baseFileAccessCreator)
 
template<class T >
static void SetCreator ()
 
static BaseFileAccessCreate ()
 

Constructor details

◆ FileAccess()

sofa::helper::io::FileAccess::FileAccess ( )
protected

◆ ~FileAccess()

sofa::helper::io::FileAccess::~FileAccess ( )
override

Function details

◆ close()

void sofa::helper::io::FileAccess::close ( )
overridevirtual

◆ open()

bool sofa::helper::io::FileAccess::open ( const std::string &  filename,
std::ios_base::openmode  openMode 
)
overridevirtual

◆ readAll()

std::string sofa::helper::io::FileAccess::readAll ( )
overridevirtual

◆ streambuf()

std::streambuf * sofa::helper::io::FileAccess::streambuf ( ) const
overridevirtual

◆ write()

void sofa::helper::io::FileAccess::write ( const std::string &  data)
overridevirtual

Related details

◆ FileAccessCreator< FileAccess >

friend class FileAccessCreator< FileAccess >
friend