DefaultIOSystem.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. /** @file Default implementation of IOSystem using the standard C file functions */
  2. #ifndef AI_DEFAULTIOSYSTEM_H_INC
  3. #define AI_DEFAULTIOSYSTEM_H_INC
  4. #include "IOSystem.h"
  5. namespace Assimp
  6. {
  7. // ---------------------------------------------------------------------------
  8. /** Default implementation of IOSystem using the standard C file functions */
  9. class DefaultIOSystem : public IOSystem
  10. {
  11. public:
  12. /** Constructor. */
  13. DefaultIOSystem();
  14. /** Destructor. */
  15. ~DefaultIOSystem();
  16. // -------------------------------------------------------------------
  17. /** Tests for the existence of a file at the given path. */
  18. bool Exists( const std::string& pFile) const;
  19. // -------------------------------------------------------------------
  20. /** Returns the directory separator. */
  21. std::string getOsSeparator() const;
  22. // -------------------------------------------------------------------
  23. /** Open a new file with a given path. */
  24. IOStream* Open( const std::string& pFile, const std::string& pMode = std::string("rb"));
  25. // -------------------------------------------------------------------
  26. /** Closes the given file and releases all resources associated with it. */
  27. void Close( IOStream* pFile);
  28. };
  29. } //!ns Assimp
  30. #endif //AI_DEFAULTIOSYSTEM_H_INC