Assimp  v3.1.1 (June 2014)
Assimp::MemoryIOSystem Class Reference

Dummy IO system to read from a memory buffer. More...

Inherits Assimp::IOSystem.

Public Member Functions

void Close (IOStream *pFile)
 Closes the given file and releases all resources associated with it. More...
 
bool ComparePaths (const char *, const char *) const
 Compare two paths. More...
 
bool Exists (const char *pFile) const
 Tests for the existence of a file at the given path. More...
 
char getOsSeparator () const
 Returns the directory separator. More...
 
 MemoryIOSystem (const uint8_t *buff, size_t len)
 Constructor. More...
 
IOStreamOpen (const char *pFile, const char *="rb")
 Open a new file with a given path. More...
 
 ~MemoryIOSystem ()
 Destructor. More...
 
- Public Member Functions inherited from Assimp::IOSystem
bool ComparePaths (const std::string &one, const std::string &second) const
 For backward compatibility. More...
 
virtual const std::string & CurrentDirectory () const
 Returns the top directory from the stack. More...
 
AI_FORCE_INLINE bool Exists (const std::string &pFile) const
 For backward compatibility. More...
 
 IOSystem ()
 Default constructor. More...
 
IOStreamOpen (const std::string &pFile, const std::string &pMode=std::string("rb"))
 For backward compatibility. More...
 
virtual bool PopDirectory ()
 Pops the top directory from the stack. More...
 
virtual bool PushDirectory (const std::string &path)
 Pushes a new directory onto the directory stack. More...
 
virtual size_t StackSize () const
 Returns the number of directories stored on the stack. More...
 
virtual ~IOSystem ()
 Virtual destructor. More...
 

Detailed Description

Dummy IO system to read from a memory buffer.

Constructor & Destructor Documentation

§ MemoryIOSystem()

Assimp::MemoryIOSystem::MemoryIOSystem ( const uint8_t buff,
size_t  len 
)
inline

Constructor.

§ ~MemoryIOSystem()

Assimp::MemoryIOSystem::~MemoryIOSystem ( )
inline

Destructor.

Member Function Documentation

§ Close()

void Assimp::MemoryIOSystem::Close ( IOStream pFile)
inlinevirtual

Closes the given file and releases all resources associated with it.

Implements Assimp::IOSystem.

§ ComparePaths()

bool Assimp::MemoryIOSystem::ComparePaths ( const char *  ,
const char *   
) const
inlinevirtual

Compare two paths.

Reimplemented from Assimp::IOSystem.

§ Exists()

bool Assimp::MemoryIOSystem::Exists ( const char *  pFile) const
inlinevirtual

Tests for the existence of a file at the given path.

Implements Assimp::IOSystem.

§ getOsSeparator()

char Assimp::MemoryIOSystem::getOsSeparator ( ) const
inlinevirtual

Returns the directory separator.

Implements Assimp::IOSystem.

§ Open()

IOStream* Assimp::MemoryIOSystem::Open ( const char *  pFile,
const char *  = "rb" 
)
inlinevirtual

Open a new file with a given path.

Implements Assimp::IOSystem.


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