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

#include <BaseFileAccess.h>

Inheritance diagram for sofa::helper::io::BaseFileAccess:

Public Member Functions

virtual ~BaseFileAccess ()
 
virtual bool open (const std::string &filename, std::ios_base::openmode openMode)=0
 
virtual void close ()=0
 
virtual std::streambuf * streambuf () const =0
 
virtual std::string readAll ()=0
 
virtual void write (const std::string &data)=0
 

Static Public Member Functions

static void SetDefaultCreator ()
 
static void SetCreator (BaseFileAccessCreator *baseFileAccessCreator)
 
template<class T >
static void SetCreator ()
 
static BaseFileAccessCreate ()
 

Protected Member Functions

 BaseFileAccess ()
 

Constructor details

◆ BaseFileAccess()

sofa::helper::io::BaseFileAccess::BaseFileAccess ( )
protected

◆ ~BaseFileAccess()

sofa::helper::io::BaseFileAccess::~BaseFileAccess ( )
virtual

Function details

◆ close()

virtual void sofa::helper::io::BaseFileAccess::close ( )
pure virtual

◆ Create()

BaseFileAccess * sofa::helper::io::BaseFileAccess::Create ( )
static

◆ open()

virtual bool sofa::helper::io::BaseFileAccess::open ( const std::string &  filename,
std::ios_base::openmode  openMode 
)
pure virtual

◆ readAll()

virtual std::string sofa::helper::io::BaseFileAccess::readAll ( )
pure virtual

◆ SetCreator() [1/2]

template<class T >
void sofa::helper::io::BaseFileAccess::SetCreator
inlinestatic

◆ SetCreator() [2/2]

void sofa::helper::io::BaseFileAccess::SetCreator ( BaseFileAccessCreator baseFileAccessCreator)
static

◆ SetDefaultCreator()

void sofa::helper::io::BaseFileAccess::SetDefaultCreator ( )
static

◆ streambuf()

virtual std::streambuf* sofa::helper::io::BaseFileAccess::streambuf ( ) const
pure virtual

◆ write()

virtual void sofa::helper::io::BaseFileAccess::write ( const std::string &  data)
pure virtual