Savarese Software Research Corporation
lua/Properties.h File Reference
Include dependency graph for lua/Properties.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  PropertiesToTable
struct  PropertiesToTable::PushValue

Functions

void properties_to_table (const PropertiesToTable &to_table, const Properties &properties)
void properties_to_table (lua_State *state, const Properties &properties)
 Converts a Properties instance to a Lua table, pushing the resulting table onto the Lua stack.
void table_to_properties (lua_State *state, Properties &properties)
 Copies a Lua table into a Properties instance.
void swig_table_to_properties (void *state, Properties &properties)
 This function is a kluge to work around a SWIG library relocation error.
properties_ptr load_properties (lua_State *state, const std::string &filename) SSRC_DECL_THROW(LuaCallError)
properties_ptr load_string_properties (lua_State *state, const std::string &code_str) SSRC_DECL_THROW(LuaCallError)
properties_ptr load_properties (const std::string &filename)
properties_ptr load_string_properties (const std::string &code_str)

Function Documentation

properties_ptr load_properties ( lua_State *  state,
const std::string filename 
)

Definition at line 211 of file Properties.cc.

References load_properties().

Referenced by load_properties(), load_string_properties(), and ssrc_wispers_load_config().

properties_ptr load_properties ( const std::string filename) [inline]

Definition at line 138 of file lua/Properties.h.

References load_properties().

properties_ptr load_string_properties ( lua_State *  state,
const std::string code_str 
)

Definition at line 218 of file Properties.cc.

References load_properties().

Referenced by load_string_properties(), and ssrc_wispers_load_string_config().

properties_ptr load_string_properties ( const std::string code_str) [inline]

Definition at line 146 of file lua/Properties.h.

References load_string_properties().

void properties_to_table ( const PropertiesToTable &  to_table,
const Properties &  properties 
) [inline]

Definition at line 105 of file lua/Properties.h.

Referenced by Relay::finish_post(), and properties_to_table().

void properties_to_table ( lua_State *  state,
const Properties &  properties 
) [inline]

Converts a Properties instance to a Lua table, pushing the resulting table onto the Lua stack.

Parameters:
stateA pointer to the Lua state in which to return the table.
propertiesThe Properties instance to convert.

Definition at line 121 of file lua/Properties.h.

References properties_to_table().

void swig_table_to_properties ( void *  state,
Properties &  properties 
)

This function is a kluge to work around a SWIG library relocation error.

For some reason, table_to_properties doesn't resolve when called within a SWIG wrapper function. Removing lua_State* from the function signature allows the function to be located, which then resolves table_to_properties within the same relocation unit instead of crossing module boundaries.

Definition at line 180 of file Properties.cc.

References table_to_properties().

void table_to_properties ( lua_State *  state,
Properties &  properties 
)

Copies a Lua table into a Properties instance.

Tables must either be pure arrays of primitive values, pure arrays of tables, or a zero-length table with key value pairs where all the keys are strings.

Parameters:
stateA pointer to the Lua state containing the table to convert at the top of the stack.
propertiesThe Properties instance to convert.

Definition at line 110 of file Properties.cc.

References convert< bool >(), convert< lua_Number >(), convert< string >(), and table_to_properties().

Referenced by swig_table_to_properties(), and table_to_properties().


Savarese Software Research Corporation
Copyright © 2006-2011 Savarese Software Research Corporation. All rights reserved.