CAPIO-CL 1.2.0
CAPIO-CL: Cross Application Programmable I/O - Coordination Language
Loading...
Searching...
No Matches
capiocl::configuration::CapioClConfiguration Class Reference

Load configuration and store it from a CAPIO-CL TOML configuration file. More...

#include <configuration.h>

Public Member Functions

void load (const std::filesystem::path &path)
void getParameter (const std::string &key, int *value) const
void getParameter (const std::string &key, std::string *value) const

Protected Member Functions

void set (const std::string &key, std::string value)
void set (const ConfigurationEntry &entry)

Friends

class engine::Engine

Detailed Description

Load configuration and store it from a CAPIO-CL TOML configuration file.

Member Function Documentation

◆ getParameter() [1/2]

void capiocl::configuration::CapioClConfiguration::getParameter ( const std::string & key,
int * value ) const

Get a string value

Parameters
keykey of option to get
valuereference in which value will be stored

◆ getParameter() [2/2]

void capiocl::configuration::CapioClConfiguration::getParameter ( const std::string & key,
std::string * value ) const

Get a integer value

Parameters
keykey of option to get
valuereference in which value will be stored

◆ load()

void capiocl::configuration::CapioClConfiguration::load ( const std::filesystem::path & path)

Load a configuiration from a TOML file

Parameters
path

◆ set() [1/2]

void capiocl::configuration::CapioClConfiguration::set ( const ConfigurationEntry & entry)
protected

Set a capio-cl configuration option through a ConfigurationEntry object

Parameters
entry

◆ set() [2/2]

void capiocl::configuration::CapioClConfiguration::set ( const std::string & key,
std::string value )
protected

Set a key value pair explicitly

Parameters
keyOption key name
valueValue

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