Leosac  0.8.0
Open Source Access Control
Leosac::Tools::RuntimeOptions Class Reference

Holds informations about runtime options, such as "is this a verbose run" or path to configurations files. More...

#include <runtimeoptions.hpp>

+ Collaboration diagram for Leosac::Tools::RuntimeOptions:

Public Member Functions

 RuntimeOptions ()
 
 ~RuntimeOptions ()=default
 
 RuntimeOptions (const RuntimeOptions &other)=delete
 
RuntimeOptionsoperator= (const RuntimeOptions &other)=delete
 
bool has_param (const std::string &key) const
 
void set_param (const std::string &key, const std::string &value)
 
const std::string & get_param (const std::string &key) const
 
bool is_strict () const
 
void set_strict (bool v)
 

Private Attributes

std::map< std::string, std::string > _params
 
bool strict_
 

Static Private Attributes

static const std::string DefaultEmptyParam
 

Detailed Description

Holds informations about runtime options, such as "is this a verbose run" or path to configurations files.

Definition at line 42 of file runtimeoptions.hpp.

Constructor & Destructor Documentation

◆ RuntimeOptions() [1/2]

RuntimeOptions::RuntimeOptions ( )
explicit

Definition at line 32 of file runtimeoptions.cpp.

◆ ~RuntimeOptions()

Leosac::Tools::RuntimeOptions::~RuntimeOptions ( )
default

◆ RuntimeOptions() [2/2]

Leosac::Tools::RuntimeOptions::RuntimeOptions ( const RuntimeOptions other)
delete

Member Function Documentation

◆ get_param()

const std::string & RuntimeOptions::get_param ( const std::string &  key) const

Definition at line 41 of file runtimeoptions.cpp.

◆ has_param()

bool RuntimeOptions::has_param ( const std::string &  key) const

Definition at line 50 of file runtimeoptions.cpp.

◆ is_strict()

bool RuntimeOptions::is_strict ( ) const

Definition at line 55 of file runtimeoptions.cpp.

◆ operator=()

RuntimeOptions& Leosac::Tools::RuntimeOptions::operator= ( const RuntimeOptions other)
delete

◆ set_param()

void RuntimeOptions::set_param ( const std::string &  key,
const std::string &  value 
)

Definition at line 36 of file runtimeoptions.cpp.

◆ set_strict()

void RuntimeOptions::set_strict ( bool  v)

Definition at line 60 of file runtimeoptions.cpp.

Member Data Documentation

◆ _params

std::map<std::string, std::string> Leosac::Tools::RuntimeOptions::_params
private

Definition at line 66 of file runtimeoptions.hpp.

◆ DefaultEmptyParam

const std::string RuntimeOptions::DefaultEmptyParam
staticprivate

Definition at line 44 of file runtimeoptions.hpp.

◆ strict_

bool Leosac::Tools::RuntimeOptions::strict_
private

Definition at line 67 of file runtimeoptions.hpp.


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