|
|
| BytesResource ()=default |
| | This is for serialization do not use directly.
|
|
| BytesResource (std::string url, std::vector< uint8_t > bytes, ResourceLocator::ConstPtr parent=nullptr) |
|
| BytesResource (std::string url, const uint8_t *bytes, size_t bytes_len, ResourceLocator::ConstPtr parent=nullptr) |
|
| BytesResource (const BytesResource &)=default |
|
BytesResource & | operator= (const BytesResource &)=default |
|
| BytesResource (BytesResource &&)=default |
|
BytesResource & | operator= (BytesResource &&)=default |
| bool | isFile () const override final |
| | Returns true if the located resource is a local file.
|
| std::string | getUrl () const override final |
| | Get the original URL used to locate the file.
|
| std::string | getFilePath () const override final |
| | Get the file path of the resource. Only valid if isFile() is true.
|
| std::vector< uint8_t > | getResourceContents () const override final |
| | Get the resource as bytes. This function may block.
|
| std::shared_ptr< std::istream > | getResourceContentStream () const override final |
| | Get the resource as a std::istream. This function and the returned stream may block.
|
| Resource::Ptr | locateResource (const std::string &url) const override final |
| | Locate a resource based on a URL.
|
|
bool | operator== (const BytesResource &rhs) const |
|
bool | operator!= (const BytesResource &rhs) const |
|
bool | operator== (const Resource &rhs) const |
|
bool | operator!= (const Resource &rhs) const |
|
bool | operator== (const ResourceLocator &rhs) const |
|
bool | operator!= (const ResourceLocator &rhs) const |