#include <AssimpInputResourceAdaptor.hpp>
◆ AssimpInputResourceRetrieverAdaptor()
dart::dynamics::AssimpInputResourceRetrieverAdaptor::AssimpInputResourceRetrieverAdaptor |
( |
const common::ResourceRetrieverPtr & |
_resourceRetriever | ) |
|
|
explicit |
◆ ~AssimpInputResourceRetrieverAdaptor()
dart::dynamics::AssimpInputResourceRetrieverAdaptor::~AssimpInputResourceRetrieverAdaptor |
( |
| ) |
|
|
virtual |
◆ Close()
void dart::dynamics::AssimpInputResourceRetrieverAdaptor::Close |
( |
Assimp::IOStream * |
pFile | ) |
|
|
override |
Closes the given file and releases all resources associated with it.
- Parameters
-
pFile | The file instance previously created by Open(). |
◆ Exists()
bool dart::dynamics::AssimpInputResourceRetrieverAdaptor::Exists |
( |
const char * |
pFile | ) |
const |
|
override |
Tests for the existence of a file at the given path.
- Parameters
-
- Returns
- true if there is a file with this path, else false.
◆ getOsSeparator()
char dart::dynamics::AssimpInputResourceRetrieverAdaptor::getOsSeparator |
( |
| ) |
const |
|
override |
Returns the system specific directory separator.
- Returns
- System specific directory separator
◆ Open()
Assimp::IOStream * dart::dynamics::AssimpInputResourceRetrieverAdaptor::Open |
( |
const char * |
pFile, |
|
|
const char * |
pMode = "rb" |
|
) |
| |
|
override |
Open a new file with a given path.
When the access to the file is finished, call Close() to release all associated resources (or the virtual dtor of the IOStream).
- Parameters
-
pFile | Path to the file |
pMode | Desired file I/O mode. Required are: "wb", "w", "wt", "rb", "r", "rt". |
- Returns
- New IOStream interface allowing the lib to access the underlying file.
◆ mResourceRetriever