mcx::cmd_line::Config

mcx::cmd_line::Config

Public Functions

Name
Config() =default
Config(std::vector< Component > components)
Config(std::vector< Component > components, SystemMode mode)
~Config() =default
bool load(const std::string & file)
std::string version() const
std::string toString() const
license::License license() const
template <typename T >
T
get(const std::string & name) const
std::string path(std::string path) const
Task task(std::string path) const
Server server(std::string path) const
SystemMode mode(std::string path ={}) const
SystemMode systemMode(std::string path ={}) const
Realtime realtime(std::string path ={}) const
nlohmann::json find(const std::string & path) const

Public Functions Documentation

function Config

Config() =default

function Config

explicit Config(
    std::vector< Component > components
)

function Config

Config(
    std::vector< Component > components,
    SystemMode mode
)

function ~Config

~Config() =default

function load

bool load(
    const std::string & file
)

function version

std::string version() const

function toString

std::string toString() const

function license

license::License license() const

function get

template <typename T >
inline T get(
    const std::string & name
) const

function path

std::string path(
    std::string path
) const

function task

Task task(
    std::string path
) const

function server

Server server(
    std::string path
) const

function mode

SystemMode mode(
    std::string path ={}
) const

function systemMode

SystemMode systemMode(
    std::string path ={}
) const

function realtime

Realtime realtime(
    std::string path ={}
) const

function find

nlohmann::json find(
    const std::string & path
) const

Updated on 2022-04-05 at 16:21:26 +0200