![]() |
Version: 1.0 |
This class stores the configuration data loaded from file. All data are placed in the config global variable that can be accessed anywhere in the code. More...
#include <config_data.h>
Public Member Functions | |
ConfigData () | |
ConfigData (std::string &algorithm_name, const std::string &mask_name, bool use_frequencies=false) | |
std::filesystem::path | GetDotCodePath (const std::string &out_base_name) |
std::filesystem::path | GetDotOutPath (const std::string &out_base_name) |
std::filesystem::path | GetForestCodePath (const std::string &out_base_name) |
std::filesystem::path | GetFrequenciesPath (const std::string &datasets_name) const |
std::filesystem::path | GetCustomOdtPath (const std::string &custom_suffix) const |
std::string | GetDatasetsString (const std::string &separator=", ") |
void | UpdateAlgoNameWithDatasets () |
void | SetDescription (std::string description) |
Public Attributes | |
std::string | description_ = "" |
std::string | config_file_ = "config.yaml" |
std::filesystem::path | global_output_path_ |
std::filesystem::path | algorithm_output_path_ |
std::filesystem::path | global_input_path_ |
std::string | algorithm_name_ |
std::string | mask_name_ |
std::string | dot_background_color_ = "\"transparent\"" |
std::string | dot_output_format_ = ".pdf" |
std::string | dot_ranksep_ = "0.5" |
std::string | dotcode_suffix_ = "_dotcode.txt" |
std::filesystem::path | dotcode_path_ |
std::string | odt_suffix_ = "_odt.txt" |
std::filesystem::path | odt_path_ |
std::string | code_suffix_ = "_code.cpp" |
std::filesystem::path | code_path_ |
std::string | treecode_suffix_ = "_tree_code.inc.h" |
std::filesystem::path | treecode_path_ |
std::string | forestcode_suffix_ = "_forest_code.inc.h" |
std::filesystem::path | forestcode_path_ |
std::string | treedagcode_suffix_ = "_tree_dag_code.inc.h" |
std::filesystem::path | treedagcode_path_ |
std::string | forestdagcode_suffix_ = "_forest_dag_code.inc.h" |
std::filesystem::path | forestdagcode_path_ |
std::string | rstable_suffix_ = "_rstable.yaml" |
std::filesystem::path | rstable_path_ |
std::vector< std::string > | datasets_ |
std::vector< std::filesystem::path > | datasets_path_ |
std::string | frequencies_local_path_ = "frequencies" |
std::filesystem::path | frequencies_path_ |
std::string | frequencies_suffix_ = ".bin" |
std::filesystem::path | ctbe_rstable_path_ |
std::string | chaincode_rstable_filename_ = "ChainCode_rstable.yaml" |
std::filesystem::path | chaincode_rstable_path_ |
std::string | ctbe_rstable_filename_ = "ctbe_rstable.yaml" |
bool | force_odt_generation_ = false |
This class stores the configuration data loaded from file. All data are placed in the config global variable that can be accessed anywhere in the code.
Definition at line 20 of file config_data.h.
|
inline |
Definition at line 85 of file config_data.h.
ConfigData::ConfigData | ( | std::string & | algorithm_name, |
const std::string & | mask_name, | ||
bool | use_frequencies = false |
||
) |
|
inline |
Definition at line 110 of file config_data.h.
|
inline |
Definition at line 114 of file config_data.h.
|
inline |
Definition at line 90 of file config_data.h.
|
inline |
Definition at line 95 of file config_data.h.
|
inline |
Definition at line 100 of file config_data.h.
|
inline |
Definition at line 105 of file config_data.h.
|
inline |
Definition at line 134 of file config_data.h.
|
inline |
Definition at line 130 of file config_data.h.
std::string ConfigData::algorithm_name_ |
Definition at line 30 of file config_data.h.
std::filesystem::path ConfigData::algorithm_output_path_ |
Definition at line 28 of file config_data.h.
std::string ConfigData::chaincode_rstable_filename_ = "ChainCode_rstable.yaml" |
Definition at line 77 of file config_data.h.
std::filesystem::path ConfigData::chaincode_rstable_path_ |
Definition at line 80 of file config_data.h.
std::filesystem::path ConfigData::code_path_ |
Definition at line 49 of file config_data.h.
std::string ConfigData::code_suffix_ = "_code.cpp" |
Definition at line 48 of file config_data.h.
std::string ConfigData::config_file_ = "config.yaml" |
Name of the configuration file
Definition at line 24 of file config_data.h.
std::string ConfigData::ctbe_rstable_filename_ = "ctbe_rstable.yaml" |
Definition at line 81 of file config_data.h.
std::filesystem::path ConfigData::ctbe_rstable_path_ |
Definition at line 76 of file config_data.h.
std::vector<std::string> ConfigData::datasets_ |
Definition at line 67 of file config_data.h.
std::vector<std::filesystem::path> ConfigData::datasets_path_ |
Definition at line 68 of file config_data.h.
std::string ConfigData::description_ = "" |
Algorithm's description
Definition at line 22 of file config_data.h.
std::string ConfigData::dot_background_color_ = "\"transparent\"" |
Definition at line 34 of file config_data.h.
std::string ConfigData::dot_output_format_ = ".pdf" |
Definition at line 35 of file config_data.h.
std::string ConfigData::dot_ranksep_ = "0.5" |
Definition at line 36 of file config_data.h.
std::filesystem::path ConfigData::dotcode_path_ |
Definition at line 41 of file config_data.h.
std::string ConfigData::dotcode_suffix_ = "_dotcode.txt" |
Definition at line 40 of file config_data.h.
bool ConfigData::force_odt_generation_ = false |
Definition at line 83 of file config_data.h.
std::filesystem::path ConfigData::forestcode_path_ |
Definition at line 55 of file config_data.h.
std::string ConfigData::forestcode_suffix_ = "_forest_code.inc.h" |
Definition at line 54 of file config_data.h.
std::filesystem::path ConfigData::forestdagcode_path_ |
Definition at line 60 of file config_data.h.
std::string ConfigData::forestdagcode_suffix_ = "_forest_dag_code.inc.h" |
Definition at line 59 of file config_data.h.
std::string ConfigData::frequencies_local_path_ = "frequencies" |
Definition at line 71 of file config_data.h.
std::filesystem::path ConfigData::frequencies_path_ |
Definition at line 72 of file config_data.h.
std::string ConfigData::frequencies_suffix_ = ".bin" |
Definition at line 73 of file config_data.h.
std::filesystem::path ConfigData::global_input_path_ |
Definition at line 29 of file config_data.h.
std::filesystem::path ConfigData::global_output_path_ |
Definition at line 27 of file config_data.h.
std::string ConfigData::mask_name_ |
Definition at line 31 of file config_data.h.
std::filesystem::path ConfigData::odt_path_ |
Definition at line 45 of file config_data.h.
std::string ConfigData::odt_suffix_ = "_odt.txt" |
Definition at line 44 of file config_data.h.
std::filesystem::path ConfigData::rstable_path_ |
Definition at line 64 of file config_data.h.
std::string ConfigData::rstable_suffix_ = "_rstable.yaml" |
Definition at line 63 of file config_data.h.
std::filesystem::path ConfigData::treecode_path_ |
Definition at line 53 of file config_data.h.
std::string ConfigData::treecode_suffix_ = "_tree_code.inc.h" |
Definition at line 52 of file config_data.h.
std::filesystem::path ConfigData::treedagcode_path_ |
Definition at line 58 of file config_data.h.
std::string ConfigData::treedagcode_suffix_ = "_tree_dag_code.inc.h" |
Definition at line 57 of file config_data.h.