nexuslua
Loading...
Searching...
No Matches
nexuslua::Configuration Class Reference

stores internal and user configuration More...

#include <configuration.hpp>

Public Member Functions

 Configuration ()
virtual ~Configuration ()=default
template<typename T>
GetInternal (const std::string_view &key)
LuaTable GetTable ()
void SetTable (const LuaTable &t)

Static Public Attributes

static constexpr std::string_view internal {"internal"}
 the name of the SubTable the contains the list of internal values, like the following
static constexpr std::string_view luaStartNewThreadTime {"luaStartNewThreadTime"}
 stores a double value in seconds that is used to decide after which non-idle time an agent replicates, i. e. creates another hardware thread to distribute work load.
static constexpr std::string_view logMessages {"logMessages"}
 stores a bool value (default false); if true, all nexuslua messages are logged to "nexuslua.log" in the user folder (see cbeam::filesystem::get_user_data_dir)
static constexpr std::string_view logReplication {"logReplication"}
 stores a bool value (default false); if true, each time an agent is replicated a corresponding log entry is created in file "nexuslua.log" in the user folder (see cbeam::filesystem::get_user_data_dir)

Detailed Description

stores internal and user configuration

The configuration be accessed via nexuslua setconfig and getconfig or via C++.

Constructor & Destructor Documentation

◆ Configuration()

nexuslua::Configuration::Configuration ( )
inline

◆ ~Configuration()

virtual nexuslua::Configuration::~Configuration ( )
virtualdefault

Member Function Documentation

◆ GetInternal()

template<typename T>
T nexuslua::Configuration::GetInternal ( const std::string_view & key)
inline
Parameters
keyget the given configuration value

◆ GetTable()

LuaTable nexuslua::Configuration::GetTable ( )
inline

◆ SetTable()

void nexuslua::Configuration::SetTable ( const LuaTable & t)
inline
Parameters
treplace the configuration table, including the internal configuration

Member Data Documentation

◆ internal

std::string_view nexuslua::Configuration::internal {"internal"}
staticconstexpr

the name of the SubTable the contains the list of internal values, like the following

◆ logMessages

std::string_view nexuslua::Configuration::logMessages {"logMessages"}
staticconstexpr

stores a bool value (default false); if true, all nexuslua messages are logged to "nexuslua.log" in the user folder (see cbeam::filesystem::get_user_data_dir)

◆ logReplication

std::string_view nexuslua::Configuration::logReplication {"logReplication"}
staticconstexpr

stores a bool value (default false); if true, each time an agent is replicated a corresponding log entry is created in file "nexuslua.log" in the user folder (see cbeam::filesystem::get_user_data_dir)

◆ luaStartNewThreadTime

std::string_view nexuslua::Configuration::luaStartNewThreadTime {"luaStartNewThreadTime"}
staticconstexpr

stores a double value in seconds that is used to decide after which non-idle time an agent replicates, i. e. creates another hardware thread to distribute work load.


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