DART  6.10.1
dart::dynamics::AssimpInputResourceAdaptor Class Reference

#include <AssimpInputResourceAdaptor.hpp>

Inheritance diagram for dart::dynamics::AssimpInputResourceAdaptor:

Public Member Functions

 AssimpInputResourceAdaptor (const common::ResourcePtr &_resource)
 
virtual ~AssimpInputResourceAdaptor ()
 
std::size_t Read (void *pvBuffer, std::size_t pSize, std::size_t pCount) override
 Read from the file. More...
 
std::size_t Write (const void *pvBuffer, std::size_t pSize, std::size_t pCount) override
 Not implemented. This is a read-only stream. More...
 
aiReturn Seek (std::size_t pOffset, aiOrigin pOrigin) override
 Set the read/write cursor of the file. More...
 
std::size_t Tell () const override
 Get the current position of the read/write cursor. More...
 
std::size_t FileSize () const override
 Returns filesize. More...
 
void Flush () override
 Not implemented. This is a read-only stream. More...
 

Private Attributes

common::ResourcePtr mResource
 

Constructor & Destructor Documentation

◆ AssimpInputResourceAdaptor()

dart::dynamics::AssimpInputResourceAdaptor::AssimpInputResourceAdaptor ( const common::ResourcePtr _resource)
explicit

◆ ~AssimpInputResourceAdaptor()

dart::dynamics::AssimpInputResourceAdaptor::~AssimpInputResourceAdaptor ( )
virtual

Member Function Documentation

◆ FileSize()

std::size_t dart::dynamics::AssimpInputResourceAdaptor::FileSize ( ) const
override

Returns filesize.

Returns the filesize.

◆ Flush()

void dart::dynamics::AssimpInputResourceAdaptor::Flush ( )
override

Not implemented. This is a read-only stream.

◆ Read()

std::size_t dart::dynamics::AssimpInputResourceAdaptor::Read ( void *  pvBuffer,
std::size_t  pSize,
std::size_t  pCount 
)
override

Read from the file.

See fread() for more details

◆ Seek()

aiReturn dart::dynamics::AssimpInputResourceAdaptor::Seek ( std::size_t  pOffset,
aiOrigin  pOrigin 
)
override

Set the read/write cursor of the file.

Note that the offset is negative for aiOrigin_END. See fseek() for more details

◆ Tell()

std::size_t dart::dynamics::AssimpInputResourceAdaptor::Tell ( ) const
override

Get the current position of the read/write cursor.

See ftell() for more details

◆ Write()

std::size_t dart::dynamics::AssimpInputResourceAdaptor::Write ( const void *  pvBuffer,
std::size_t  pSize,
std::size_t  pCount 
)
override

Not implemented. This is a read-only stream.

Member Data Documentation

◆ mResource

common::ResourcePtr dart::dynamics::AssimpInputResourceAdaptor::mResource
private