Base class of all resources. More...
#include <resource.h>
Public Member Functions | |
virtual | ~Resource ()=0 |
Destructs the resource. More... | |
Querying | |
std::string | getId () const |
Returns the ID of the resource. More... | |
bool | hasFinished () |
Has the resource finished? More... | |
bool | hasFinished () const noexcept |
Has the resource finished? More... | |
bool | hasSucceeded () |
Has the resource succeeded? More... | |
bool | hasSucceeded () const noexcept |
Has the resource succeeded? More... | |
bool | hasFailed () |
Has the resource failed? More... | |
bool | hasFailed () const noexcept |
Has the resource failed? More... | |
std::string | getError () |
Returns the error message (if any). More... | |
std::string | getError () const |
Returns the error message (if any). More... | |
Disabled | |
Resource (const Resource &)=delete | |
Resource (Resource &&)=delete | |
Resource & | operator= (const Resource &)=delete |
Resource & | operator= (Resource &&)=delete |
Protected Attributes | |
std::unique_ptr< internal::ResourceImpl > | pimpl |
Private implementation. More... | |
Base class of all resources.
|
pure virtualdefault |
Destructs the resource.
|
delete |
|
delete |
std::string retdec::Resource::getError | ( | ) |
Returns the error message (if any).
The output from this function is meaningful only if hasFinished() returns true
and hasFailed() returns true
.
May access the API.
std::string retdec::Resource::getError | ( | ) | const |
Returns the error message (if any).
The output from this function is meaningful only if hasFinished() returns true
and hasFailed() returns true
.
Does not access the API.
std::string retdec::Resource::getId | ( | ) | const |
Returns the ID of the resource.
Does not access the API.
bool retdec::Resource::hasFailed | ( | ) |
Has the resource failed?
The output from this function is meaningful only if hasFinished() returns true
.
May access the API.
|
noexcept |
Has the resource failed?
The output from this function is meaningful only if hasFinished() returns true
.
Does not access the API.
bool retdec::Resource::hasFinished | ( | ) |
Has the resource finished?
May access the API.
|
noexcept |
Has the resource finished?
Does not access the API.
bool retdec::Resource::hasSucceeded | ( | ) |
Has the resource succeeded?
The output from this function is meaningful only if hasFinished() returns true
.
May access the API.
|
noexcept |
Has the resource succeeded?
The output from this function is meaningful only if hasFinished() returns true
.
Does not access the API.
|
protected |
Private implementation.