CeresEngine 0.2.0
A game development framework
Loading...
Searching...
No Matches
CeresEngine::Text Class Reference

#include <CeresEngine/Resource/Text.hpp>

Inheritance diagram for CeresEngine::Text:
CeresEngine::TResource< Text > CeresEngine::Resource CeresEngine::IReflectable

Public Member Functions

const StringgetContent () const noexcept
 The text content string.
 
void setContent (const String &content)
 The text content string.
 
 TResource (ResourceData &data, InputStream &dataStream)
 
- Public Member Functions inherited from CeresEngine::TResource< Text >
ResourceHandle< TextgetResourceHandle () const noexcept
 Generates a hash for the provided type.
 
SPtr< TextgetShared () noexcept
 Gets a shared pointer to the resource.
 
SPtr< const TextgetShared () const noexcept
 Gets a shared pointer to the resource.
 
const ResourceTypeInfogetResourceType () const noexcept override
 Returns the resource type information descriptor.
 
 TResource (ResourceData &data, InputStream &dataStream)
 
void serialize (OutputStream &dataStream) const override
 Serializes a resource by writing data to dataStream.
 
- Public Member Functions inherited from CeresEngine::Resource
 Resource ()
 Default constructor for the Resource class.
 
 Resource (ResourceData &data)
 Creates a new Resource instance by passing a ResourceData instance.
 
virtual ~Resource () noexcept=default
 Resource virtual destructor.
 
ResourceManagergetResourceManager () const noexcept
 
HResource getResourceHandle () const noexcept
 Generates a hash for the provided type.
 
UUID getResourceID () const noexcept
 
HResource getParentResource () const noexcept
 A parent resource to which this resource is attached to.
 
SPtr< ResourceMetadatagetResourceMetadata () const noexcept
 A pointer to the user-defined resource metadata.
 
const PackagePtrgetPackage () const noexcept
 The package from which the resource was loaded from.
 
template<typename T = Resource>
SPtr< TgetShared () noexcept
 Gets a shared pointer to the resource.
 
template<typename T = Resource>
SPtr< const TgetShared () const noexcept
 Gets a shared pointer to the resource.
 
 Resource (ResourceData &data, InputStream &dataStream)
 Creates a new resource by reading data from dataStream.
 
- Public Member Functions inherited from CeresEngine::IReflectable
virtual ~IReflectable () noexcept=default
 

Static Public Member Functions

template<typename Processor >
static constexpr void reflect (Processor &&RTTI)
 Executes the given processor for every field of the struct.
 
- Static Public Member Functions inherited from CeresEngine::Resource
template<typename Processor >
static constexpr void reflect (Processor &&RTTI)
 Executes the given processor for every field of the struct.
 

Private Attributes

String mContent
 The text content string.
 

Additional Inherited Members

- Protected Member Functions inherited from CeresEngine::Resource
HResourceStream createStream (const ResourceStreamFlags &flags=ResourceStreamFlag::Default)
 Creates a new resource stream.
 
void destroyStream (HResourceStream &stream)
 Destroys a stream.
 
void markAsDirty ()
 Marks the resource as dirty.
 

Member Function Documentation

◆ getContent()

const String & CeresEngine::Text::getContent ( ) const
inlinenoexcept

The text content string.

◆ reflect()

template<typename Processor >
static constexpr void CeresEngine::Text::reflect ( Processor &&  RTTI)
inlinestaticconstexpr

Executes the given processor for every field of the struct.

Parameters
RTTIThe processor to be ran for every field.

◆ setContent()

void CeresEngine::Text::setContent ( const String content)

The text content string.

◆ TResource()

CeresEngine::TResource< T, Base >::TResource ( ResourceData data,
InputStream dataStream 
)
inlineexplicit

Member Data Documentation

◆ mContent

String CeresEngine::Text::mContent
private

The text content string.


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