Silicon
A realtime platform for creating interactive media.
Si::PlainTextAsset Class Reference

#include <Asset.hpp>

Inheritance diagram for Si::PlainTextAsset:
Collaboration diagram for Si::PlainTextAsset:

Public Member Functions

 PlainTextAsset (std::string path)
 
const std::stringGetText () const
 
- Public Member Functions inherited from Si::Asset
const std::stringGetPath () const
 
Vector< std::uint8_t > & GetBytes ()
 
virtual ~Asset ()
 

Additional Inherited Members

- Static Public Member Functions inherited from Si::Asset
template<typename T >
static std::shared_ptr< T > GetNow (const std::string &asset_path)
 
template<typename T >
static Future< std::shared_ptr< T > > Get (const std::string &asset_path)
 
- Protected Member Functions inherited from Si::Asset
 Asset (std::string path)
 
- Protected Attributes inherited from Si::Asset
Vector< std::uint8_tm_data
 

Detailed Description

Definition at line 92 of file Asset.hpp.

Constructor & Destructor Documentation

◆ PlainTextAsset()

Si::PlainTextAsset::PlainTextAsset ( std::string  path)
explicit

Definition at line 88 of file Asset.cpp.

Member Function Documentation

◆ GetText()

const std::string & Si::PlainTextAsset::GetText ( ) const

Definition at line 95 of file Asset.cpp.


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