Savarese Software Research Corporation
LoadConfig Class Reference

Dynamically loads the code necessary to read a configuration file, reads the configuration file, converts it to a properties_ptr, and unloads the code. More...

#include <LoadConfig.h>

List of all members.

Public Member Functions

 LoadConfig (const boost::filesystem::path &module_dir) SSRC_DECL_THROW(NS_SSRC_WSPR_UTILITY
properties_ptr operator() (const std::string &filename) const SSRC_DECL_THROW(LuaCallError)
properties_ptr load_from_string (const std::string &code_str) const SSRC_DECL_THROW(LuaCallError)

Detailed Description

Dynamically loads the code necessary to read a configuration file, reads the configuration file, converts it to a properties_ptr, and unloads the code.

This function is intended for use by programs that don't use Lua for anything other than reading configuration files.

Definition at line 41 of file LoadConfig.h.


Constructor & Destructor Documentation

LoadConfig::LoadConfig ( const boost::filesystem::path &  module_dir) [inline]

Definition at line 48 of file LoadConfig.h.


Member Function Documentation

properties_ptr LoadConfig::load_from_string ( const std::string code_str) const [inline]

Definition at line 67 of file LoadConfig.h.

properties_ptr LoadConfig::operator() ( const std::string filename) const [inline]

Definition at line 55 of file LoadConfig.h.


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

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