Scorum
Public Member Functions | Public Attributes | Protected Member Functions | Friends | List of all members
scorum::config_api Class Reference

#include <config_api.hpp>

Public Member Functions

boost::program_options::options_description get_options_descriptions () const
 
void set_options (const boost::program_options::variables_map &options)
 
const std::string & api_name () const
 
template<typename MemberType >
void get_option_description (bpo::options_description_easy_init &options, const char *member_name) const
 
template<typename MemberType >
void set_option (const bpo::variables_map &options, MemberType &member, const char *member_name)
 

Public Attributes

const uint32_t & max_blockchain_history_depth
 
const uint32_t & max_blocks_history_depth
 
const uint32_t & max_budgets_list_size
 
const uint32_t & max_discussions_list_size
 
const uint32_t & lookup_limit
 
const uint32_t & tags_to_analize_count
 
const uint32_t & max_timestamp_range_in_s
 

Protected Member Functions

 config_api ()=delete
 
 config_api (const std::string &api_name)
 
 config_api (config_api &)
 

Friends

config_apiget_api_config (std::string api_name)
 

Detailed Description

Definition at line 13 of file config_api.hpp.

Constructor & Destructor Documentation

◆ config_api() [1/3]

scorum::config_api::config_api ( )
protecteddelete

◆ config_api() [2/3]

scorum::config_api::config_api ( const std::string &  api_name)
protected

Definition at line 13 of file config_api.cpp.

◆ config_api() [3/3]

scorum::config_api::config_api ( config_api config)
protected

Definition at line 25 of file config_api.cpp.

Member Function Documentation

◆ api_name()

const std::string& scorum::config_api::api_name ( ) const
inline

Definition at line 37 of file config_api.hpp.

◆ get_option_description()

template<typename MemberType >
void scorum::config_api::get_option_description ( bpo::options_description_easy_init &  options,
const char *  member_name 
) const

Definition at line 79 of file config_api.cpp.

◆ get_options_descriptions()

bpo::options_description scorum::config_api::get_options_descriptions ( ) const

Definition at line 48 of file config_api.cpp.

◆ set_option()

template<typename MemberType >
void scorum::config_api::set_option ( const bpo::variables_map &  options,
MemberType &  member,
const char *  member_name 
)

Definition at line 86 of file config_api.cpp.

◆ set_options()

void scorum::config_api::set_options ( const boost::program_options::variables_map &  options)

Definition at line 62 of file config_api.cpp.

Friends And Related Function Documentation

◆ get_api_config

config_api& get_api_config ( std::string  api_name)
friend

Definition at line 114 of file config_api.cpp.

Member Data Documentation

◆ lookup_limit

const uint32_t& scorum::config_api::lookup_limit

Definition at line 30 of file config_api.hpp.

◆ max_blockchain_history_depth

const uint32_t& scorum::config_api::max_blockchain_history_depth

Definition at line 26 of file config_api.hpp.

◆ max_blocks_history_depth

const uint32_t& scorum::config_api::max_blocks_history_depth

Definition at line 27 of file config_api.hpp.

◆ max_budgets_list_size

const uint32_t& scorum::config_api::max_budgets_list_size

Definition at line 28 of file config_api.hpp.

◆ max_discussions_list_size

const uint32_t& scorum::config_api::max_discussions_list_size

Definition at line 29 of file config_api.hpp.

◆ max_timestamp_range_in_s

const uint32_t& scorum::config_api::max_timestamp_range_in_s

Definition at line 32 of file config_api.hpp.

◆ tags_to_analize_count

const uint32_t& scorum::config_api::tags_to_analize_count

Definition at line 31 of file config_api.hpp.


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