47 #ifndef AI_IOSYSTEM_H_INC 48 #define AI_IOSYSTEM_H_INC 51 # error This header requires C++ to be used. aiFileIO.h is the \ 52 corresponding C interface. 69 :
public Intern::AllocateFromAssimpHeap
97 AI_FORCE_INLINE
bool Exists(
const std::string& pFile)
const;
106 virtual bool Exists(
const char* pFile)
const = 0;
114 virtual char getOsSeparator()
const = 0;
132 virtual IOStream* Open(
const char* pFile,
133 const char* pMode =
"rb") = 0;
139 inline IOStream* Open(
const std::string& pFile,
140 const std::string& pMode = std::string(
"rb"));
149 virtual void Close(
IOStream* pFile) = 0;
164 virtual bool ComparePaths (
const char* one,
165 const char* second)
const;
171 inline bool ComparePaths (
const std::string& one,
172 const std::string& second)
const;
195 const std::string& pMode)
200 return Open(pFile.c_str(),pMode.c_str());
209 return Exists(pFile.c_str());
214 const std::string& second)
const 219 return ComparePaths(one.c_str(),second.c_str());
225 #endif //AI_IOSYSTEM_H_INC Basic data types and primitives, such as vectors or colors.
Assimp's CPP-API and all internal APIs.
Definition: DefaultLogger.hpp:51
CPP-API: Class to handle file I/O for C++.
Definition: IOStream.hpp:64
virtual bool ComparePaths(const char *one, const char *second) const
Compares two paths and check whether the point to identical files.
AI_FORCE_INLINE bool Exists(const std::string &pFile) const
For backward compatibility.
Definition: IOSystem.hpp:204
CPP-API: Interface to the file system.
Definition: IOSystem.hpp:67
IOSystem()
Default constructor.
Definition: IOSystem.hpp:176
virtual ~IOSystem()
Virtual destructor.
Definition: IOSystem.hpp:182
virtual IOStream * Open(const char *pFile, const char *pMode="rb")=0
Open a new file with a given path.