39 struct no_data : std::logic_error {
no_data() : std::logic_error(
"neogfx::i_resource::no_data") {} };
40 struct const_data : std::logic_error {
const_data() : std::logic_error(
"neogfx::i_resource::const_data") {} };
52 virtual const void*
cdata()
const = 0;
53 virtual const void*
data()
const = 0;
55 virtual std::size_t
size()
const = 0;
virtual hash_digest_type const & hash() const =0
data_type hash_digest_type
virtual bool is_empty() const =0
virtual double downloading_progress() const =0
virtual bool available() const =0
virtual bool error() const =0
virtual bool downloading() const =0
virtual const void * cdata() const =0
virtual const void * data() const =0
virtual std::size_t size() const =0
virtual ~i_resource()=default
virtual i_string const & uri() const =0
virtual i_string const & error_string() const =0
neolib::i_vector< uint8_t > data_type
#define declare_event(declName,...)