Sese Framework  2.3.0
A cross-platform framework
Loading...
Searching...
No Matches
sese::res::Resource Class Reference

Static resources. More...

#include <Resource.h>

Public Types

using Ptr = std::shared_ptr<Resource>
 

Public Member Functions

 Resource (std::string name, const void *buf, size_t size)
 
ResourceStream::Ptr getStream ()
 Get static resource stream.
 
const std::string & getName () const
 Get the resource name.
 
size_t getSize () const
 Get the resource size.
 

Protected Attributes

std::string name {}
 
const void * buf {}
 
size_t size {}
 

Detailed Description

Static resources.

Member Typedef Documentation

◆ Ptr

using sese::res::Resource::Ptr = std::shared_ptr<Resource>

Constructor & Destructor Documentation

◆ Resource()

sese::res::Resource::Resource ( std::string name,
const void * buf,
size_t size )

Member Function Documentation

◆ getName()

const std::string & sese::res::Resource::getName ( ) const
inlinenodiscard

Get the resource name.

Returns
Resource name

References name.

◆ getSize()

size_t sese::res::Resource::getSize ( ) const
inlinenodiscard

Get the resource size.

Returns
Resource size

References size.

◆ getStream()

sese::res::ResourceStream::Ptr sese::res::Resource::getStream ( )

Get static resource stream.

Returns
Stream

References SESE_MAKE_RES_STREAM.

Member Data Documentation

◆ buf

const void* sese::res::Resource::buf {}
protected

◆ name

std::string sese::res::Resource::name {}
protected

Referenced by getName().

◆ size

size_t sese::res::Resource::size {}
protected

Referenced by getSize().


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