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

Interface used for persisting Lua objects. More...

#include <persist_lua.h>

Inheritance diagram for lua_persist_writer:
lua_persist_basic_writer

Public Member Functions

virtual ~lua_persist_writer ()=default
 
virtual lua_Stateget_stack ()=0
 
virtual void write_stack_object (int iIndex)=0
 
virtual void write_byte_stream (const uint8_t *pBytes, size_t iCount)=0
 
virtual void set_error (const char *sError)=0
 
virtual void fast_write_stack_object (int iIndex)=0
 
template<class T >
void write_uint (T tValue)
 
template<class T >
void write_int (T tValue)
 
template<class T >
void write_float (T fValue)
 

Detailed Description

Interface used for persisting Lua objects.

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

Constructor & Destructor Documentation

◆ ~lua_persist_writer()

virtual lua_persist_writer::~lua_persist_writer ( )
virtualdefault

Member Function Documentation

◆ fast_write_stack_object()

virtual void lua_persist_writer::fast_write_stack_object ( int  iIndex)
pure virtual

Implemented in lua_persist_basic_writer.

◆ get_stack()

virtual lua_State * lua_persist_writer::get_stack ( )
pure virtual

Implemented in lua_persist_basic_writer.

◆ set_error()

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

Implemented in lua_persist_basic_writer.

◆ write_byte_stream()

virtual void lua_persist_writer::write_byte_stream ( const uint8_t *  pBytes,
size_t  iCount 
)
pure virtual

Implemented in lua_persist_basic_writer.

◆ write_float()

template<class T >
void lua_persist_writer::write_float ( fValue)
inline

◆ write_int()

template<class T >
void lua_persist_writer::write_int ( tValue)
inline

◆ write_stack_object()

virtual void lua_persist_writer::write_stack_object ( int  iIndex)
pure virtual

Implemented in lua_persist_basic_writer.

◆ write_uint()

template<class T >
void lua_persist_writer::write_uint ( tValue)
inline

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