neoGFX
Cross-platform C++ app/game engine
Loading...
Searching...
No Matches
neogfx::resource Class Reference

#include <resource.hpp>

Inheritance diagram for neogfx::resource:
neolib::reference_counted< Base, DeallocateOnRelease >

Public Types

typedef neolib::vector< uint8_t > data_type
 
typedef data_type hash_digest_type
 

Public Member Functions

 define_declared_event (Downloaded, downloaded) define_declared_event(FailedToDownload
 
 resource ()=delete
 
 resource (i_resource_manager &aManager, std::string const &aUri)
 
 resource (i_resource_manager &aManager, std::string const &aUri, const void *aData, std::size_t aSize)
 
 ~resource ()
 
bool available () const override
 
bool downloading () const override
 
double downloading_progress () const override
 
bool error () const override
 
i_string const & error_string () const override
 
i_string const & uri () const override
 
bool is_empty () const override
 
const void * cdata () const override
 
const void * data () const override
 
void * data () override
 
std::size_t size () const override
 
hash_digest_type const & hash () const override
 
- Public Member Functions inherited from neolib::reference_counted< Base, DeallocateOnRelease >
 reference_counted () noexcept
 
 reference_counted (const reference_counted &aOther) noexcept
 
 ~reference_counted ()
 
reference_countedoperator= (const reference_counted &)
 
void add_ref () const noexcept override
 
void release () const override
 
int32_t use_count () const noexcept override
 
const base_type * release_and_take_ownership () const override
 
base_type * release_and_take_ownership () override
 
void pin () const noexcept override
 
void unpin () const override
 
i_ref_control_blockcontrol_block () override
 

Detailed Description

Definition at line 30 of file resource.hpp.

Member Typedef Documentation

◆ data_type

Definition at line 36 of file resource.hpp.

◆ hash_digest_type

Definition at line 37 of file resource.hpp.

Constructor & Destructor Documentation

◆ resource() [1/3]

neogfx::resource::resource ( )
delete

◆ resource() [2/3]

neogfx::resource::resource ( i_resource_manager aManager,
std::string const &  aUri 
)

◆ resource() [3/3]

neogfx::resource::resource ( i_resource_manager aManager,
std::string const &  aUri,
const void *  aData,
std::size_t  aSize 
)

◆ ~resource()

neogfx::resource::~resource ( )

Member Function Documentation

◆ available()

bool neogfx::resource::available ( ) const
override

◆ cdata()

const void * neogfx::resource::cdata ( ) const
override

◆ data() [1/2]

const void * neogfx::resource::data ( ) const
override

◆ data() [2/2]

void * neogfx::resource::data ( )
override

◆ define_declared_event()

neogfx::resource::define_declared_event ( Downloaded  ,
downloaded   
)

◆ downloading()

bool neogfx::resource::downloading ( ) const
override

◆ downloading_progress()

double neogfx::resource::downloading_progress ( ) const
override

◆ error()

bool neogfx::resource::error ( ) const
override

◆ error_string()

i_string const & neogfx::resource::error_string ( ) const
override

◆ hash()

hash_digest_type const & neogfx::resource::hash ( ) const
override

◆ is_empty()

bool neogfx::resource::is_empty ( ) const
override

◆ size()

std::size_t neogfx::resource::size ( ) const
override

◆ uri()

i_string const & neogfx::resource::uri ( ) const
override

The documentation for this class was generated from the following file: