Graphics::TextAsset Class Reference

#include <Asset.h>

Inheritance diagram for Graphics::TextAsset:
Collaboration diagram for Graphics::TextAsset:

Public Member Functions

 TextAsset (String &&content)
 
 TextAsset (AssetID id)
 
 TextAsset (IDataSourceStream *stream)
 
 TextAsset (AssetID id, IDataSourceStream *stream)
 
 TextAsset (const FSTR::String &fstr)
 
 TextAsset (AssetID id, const char *text, size_t length)
 
 TextAsset (AssetID id, const String &s)
 
 TextAsset (AssetID id, String &&s)
 
size_t getLength () const
 
size_t read (uint32_t offset, char *buffer, size_t length) const
 
char read (uint32_t offset) const
 
String readString (size_t maxlen) const
 
void write (MetaWriter &meta) const override
 
- Public Member Functions inherited from Graphics::AssetTemplate< AssetType::Text >
virtual Type type () const override
 
 Asset ()
 
 Asset (ID id)
 
- Public Member Functions inherited from Graphics::Asset
 Asset ()
 
 Asset (ID id)
 
bool operator== (ID id) const
 
ID id () const
 
virtual Type type () const =0
 
virtual String getTypeStr () const
 
- Public Member Functions inherited from LinkedObjectTemplate< Asset >
Asset * getNext () const
 
bool insertAfter (Asset *object)
 
Iterator begin () const
 
Iterator end () const
 
Iterator cbegin () const
 
Iterator cend () const
 
- Public Member Functions inherited from LinkedObject
virtual ~LinkedObject ()
 
virtual LinkedObjectnext () const
 
bool insertAfter (LinkedObject *object)
 
bool operator== (const LinkedObject &other) const
 
bool operator!= (const LinkedObject &other) const
 

Additional Inherited Members

- Public Types inherited from Graphics::Asset
enum  Type { Type::XX }
 
using List = LinkedObjectListTemplate< Asset >
 
using OwnedList = OwnedLinkedObjectListTemplate< Asset >
 
using ID = AssetID
 
- Public Types inherited from LinkedObjectTemplate< Asset >
using Iterator = IteratorTemplate< Asset, Asset *, Asset & >
 
using ConstIterator = IteratorTemplate< const Asset, const Asset *, const Asset & >
 
- Static Public Attributes inherited from Graphics::AssetTemplate< AssetType::Text >
static constexpr Asset::Type assetType
 

Constructor & Destructor Documentation

◆ TextAsset() [1/8]

Graphics::TextAsset::TextAsset ( String &&  content)
inline

◆ TextAsset() [2/8]

Graphics::TextAsset::TextAsset ( AssetID  id)
inline

◆ TextAsset() [3/8]

Graphics::TextAsset::TextAsset ( IDataSourceStream stream)
inline

◆ TextAsset() [4/8]

Graphics::TextAsset::TextAsset ( AssetID  id,
IDataSourceStream stream 
)
inline

◆ TextAsset() [5/8]

Graphics::TextAsset::TextAsset ( const FSTR::String fstr)
inline

◆ TextAsset() [6/8]

Graphics::TextAsset::TextAsset ( AssetID  id,
const char *  text,
size_t  length 
)
inline

◆ TextAsset() [7/8]

Graphics::TextAsset::TextAsset ( AssetID  id,
const String s 
)
inline

◆ TextAsset() [8/8]

Graphics::TextAsset::TextAsset ( AssetID  id,
String &&  s 
)
inline

Member Function Documentation

◆ getLength()

size_t Graphics::TextAsset::getLength ( ) const
inline

◆ read() [1/2]

char Graphics::TextAsset::read ( uint32_t  offset) const
inline

◆ read() [2/2]

size_t Graphics::TextAsset::read ( uint32_t  offset,
char *  buffer,
size_t  length 
) const
inline

◆ readString()

String Graphics::TextAsset::readString ( size_t  maxlen) const
inline

◆ write()

void Graphics::TextAsset::write ( MetaWriter meta) const
inlineoverridevirtual

Reimplemented from Graphics::Asset.


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