33 #ifndef DART_COMMON_LOCALRESOURCE_HPP_
34 #define DART_COMMON_LOCALRESOURCE_HPP_
57 std::size_t
tell()
override;
63 std::size_t
read(
void* _buffer, std::size_t _size, std::size_t _count)
override;
Definition: LocalResource.hpp:42
std::FILE * mFile
Definition: LocalResource.hpp:66
bool isGood() const
Returns true if the resource is open and in a valid state.
Definition: LocalResource.cpp:68
LocalResource(const LocalResource &_other)=delete
std::size_t tell() override
Return the current value of the position indicator.
Definition: LocalResource.cpp:130
LocalResource(const std::string &_path)
Definition: LocalResource.cpp:43
virtual ~LocalResource()
Definition: LocalResource.cpp:55
std::size_t getSize() override
Return the size of the resource, in bytes.
Definition: LocalResource.cpp:74
bool seek(ptrdiff_t _origin, SeekType _mode) override
Set the position indicator to a new position.
Definition: LocalResource.cpp:158
std::size_t read(void *_buffer, std::size_t _size, std::size_t _count) override
Read _count element, each of size _size, into _buffer.
Definition: LocalResource.cpp:192
LocalResource & operator=(const LocalResource &_other)=delete
Resource provides file-like access to a resource loaded from URI.
Definition: Resource.hpp:49
SeekType
Position to seek relative to.
Definition: Resource.hpp:52
Definition: BulletCollisionDetector.cpp:63