GraphicsAPI_2020C
Public Member Functions | Static Public Member Functions | List of all members
Assimp::DefaultIOSystem Class Reference

Default implementation of IOSystem using the standard C file functions. More...

#include <DefaultIOSystem.h>

Inheritance diagram for Assimp::DefaultIOSystem:
Inheritance graph
[legend]
Collaboration diagram for Assimp::DefaultIOSystem:
Collaboration graph
[legend]

Public Member Functions

 DefaultIOSystem ()
 Constructor. More...
 
 ~DefaultIOSystem ()
 Destructor. 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...
 
IOStreamOpen (const char *pFile, const char *pMode="rb")
 Open a new file with a given path. More...
 
void Close (IOStream *pFile)
 Closes the given file and releases all resources associated with it. More...
 
bool ComparePaths (const char *one, const char *second) const
 Compare two paths.
 
- Public Member Functions inherited from Assimp::IOSystem
 IOSystem ()
 Default constructor. More...
 
virtual ~IOSystem ()
 Virtual destructor. More...
 
AI_FORCE_INLINE bool Exists (const std::string &pFile) const
 For backward compatibility. More...
 
IOStreamOpen (const std::string &pFile, const std::string &pMode=std::string("rb"))
 For backward compatibility. More...
 
bool ComparePaths (const std::string &one, const std::string &second) const
 For backward compatibility. More...
 
virtual bool PushDirectory (const std::string &path)
 Pushes a new directory onto the directory stack. More...
 
virtual const std::string & CurrentDirectory () const
 Returns the top directory from the stack. More...
 
virtual size_t StackSize () const
 Returns the number of directories stored on the stack. More...
 
virtual bool PopDirectory ()
 Pops the top directory from the stack. More...
 
virtual bool CreateDirectory (const std::string &path)
 CReates an new directory at the given path. More...
 
virtual bool ChangeDirectory (const std::string &path)
 Will change the current directory to the given path. More...
 
virtual bool DeleteFile (const std::string &file)
 

Static Public Member Functions

static std::string fileName (const std::string &path)
 get the file name of a full filepath example: /tmp/archive.tar.gz -> archive.tar.gz
 
static std::string completeBaseName (const std::string &path)
 get the complete base name of a full filepath example: /tmp/archive.tar.gz -> archive.tar
 
static std::string absolutePath (const std::string &path)
 get the path of a full filepath example: /tmp/archive.tar.gz -> /tmp/
 

Detailed Description

Default implementation of IOSystem using the standard C file functions.

Constructor & Destructor Documentation

◆ DefaultIOSystem()

Assimp::DefaultIOSystem::DefaultIOSystem ( )

Constructor.

◆ ~DefaultIOSystem()

Assimp::DefaultIOSystem::~DefaultIOSystem ( )

Destructor.

Member Function Documentation

◆ Close()

void Assimp::DefaultIOSystem::Close ( IOStream pFile)
virtual

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

Implements Assimp::IOSystem.

◆ Exists()

bool Assimp::DefaultIOSystem::Exists ( const char *  pFile) const
virtual

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

Implements Assimp::IOSystem.

◆ getOsSeparator()

char Assimp::DefaultIOSystem::getOsSeparator ( ) const
virtual

Returns the directory separator.

Implements Assimp::IOSystem.

◆ Open()

IOStream* Assimp::DefaultIOSystem::Open ( const char *  pFile,
const char *  pMode = "rb" 
)
virtual

Open a new file with a given path.

Implements Assimp::IOSystem.


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