DART  6.7.3
dart::dynamics::AssimpInputResourceRetrieverAdaptor Class Reference

#include <AssimpInputResourceAdaptor.hpp>

Inheritance diagram for dart::dynamics::AssimpInputResourceRetrieverAdaptor:

Public Member Functions

 AssimpInputResourceRetrieverAdaptor (const common::ResourceRetrieverPtr &_resourceRetriever)
 
virtual ~AssimpInputResourceRetrieverAdaptor ()
 
bool Exists (const char *pFile) const override
 Tests for the existence of a file at the given path. More...
 
char getOsSeparator () const override
 Returns the system specific directory separator. More...
 
Assimp::IOStream * Open (const char *pFile, const char *pMode="rb") override
 Open a new file with a given path. More...
 
void Close (Assimp::IOStream *pFile) override
 Closes the given file and releases all resources associated with it. More...
 

Private Attributes

common::ResourceRetrieverPtr mResourceRetriever
 

Constructor & Destructor Documentation

◆ AssimpInputResourceRetrieverAdaptor()

dart::dynamics::AssimpInputResourceRetrieverAdaptor::AssimpInputResourceRetrieverAdaptor ( const common::ResourceRetrieverPtr _resourceRetriever)
explicit

◆ ~AssimpInputResourceRetrieverAdaptor()

dart::dynamics::AssimpInputResourceRetrieverAdaptor::~AssimpInputResourceRetrieverAdaptor ( )
virtual

Member Function Documentation

◆ Close()

void dart::dynamics::AssimpInputResourceRetrieverAdaptor::Close ( Assimp::IOStream *  pFile)
override

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

Parameters
pFileThe 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
pFilePath to the file
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
pFilePath to the file
pModeDesired file I/O mode. Required are: "wb", "w", "wt", "rb", "r", "rt".
Returns
New IOStream interface allowing the lib to access the underlying file.

Member Data Documentation

◆ mResourceRetriever

common::ResourceRetrieverPtr dart::dynamics::AssimpInputResourceRetrieverAdaptor::mResourceRetriever
private