CorsixTH engine (the C++ part)
Open source implementation of Theme Hospital
Loading...
Searching...
No Matches
Public Member Functions | List of all members
lua_persist_reader Class Referenceabstract

Interface used for depersisting Lua objects. More...

#include <persist_lua.h>

Inheritance diagram for lua_persist_reader:
lua_persist_basic_reader

Public Member Functions

virtual ~lua_persist_reader ()=default
 
virtual lua_Stateget_stack ()=0
 
virtual bool read_stack_object ()=0
 
virtual bool read_byte_stream (uint8_t *pBytes, size_t iCount)=0
 
virtual void set_error (const char *sError)=0
 
template<class T >
bool read_uint (T &tValue)
 
template<class T >
bool read_int (T &tValue)
 
template<class T >
bool read_float (T &fValue)
 

Detailed Description

Interface used for depersisting Lua objects.

When userdata are depersisted, they get an instance of this interface for reading binary data and other Lua objects.

Constructor & Destructor Documentation

◆ ~lua_persist_reader()

virtual lua_persist_reader::~lua_persist_reader ( )
virtualdefault

Member Function Documentation

◆ get_stack()

virtual lua_State * lua_persist_reader::get_stack ( )
pure virtual

Implemented in lua_persist_basic_reader.

◆ read_byte_stream()

virtual bool lua_persist_reader::read_byte_stream ( uint8_t *  pBytes,
size_t  iCount 
)
pure virtual

Implemented in lua_persist_basic_reader.

◆ read_float()

template<class T >
bool lua_persist_reader::read_float ( T &  fValue)
inline

◆ read_int()

template<class T >
bool lua_persist_reader::read_int ( T &  tValue)
inline

◆ read_stack_object()

virtual bool lua_persist_reader::read_stack_object ( )
pure virtual

Implemented in lua_persist_basic_reader.

◆ read_uint()

template<class T >
bool lua_persist_reader::read_uint ( T &  tValue)
inline

◆ set_error()

virtual void lua_persist_reader::set_error ( const char sError)
pure virtual

Implemented in lua_persist_basic_reader.


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