The SWC-DB Configurations C++ namespace 'SWC::Config'. More...
Namespaces | |
Property | |
The SWC-DB Property C++ namespace 'SWC::Config::Property'. | |
Classes | |
class | Parser |
class | ParserConfig |
class | Properties |
class | Settings |
Typedefs | |
typedef Core::Vector< std::string > | Strings |
typedef Core::Vector< int64_t > | Int64s |
typedef Core::Vector< double > | Doubles |
Variables | |
const uint64_t | K = 1000 |
const uint64_t | KiB = 1024 |
const uint64_t | M = K * 1000 |
const uint64_t | MiB = KiB * 1024 |
const uint64_t | G = M * 1000 |
const uint64_t | GiB = MiB * 1024 |
const uint64_t | T = G * 1000 |
const uint64_t | TiB = GiB * 1024 |
The SWC-DB Configurations C++ namespace 'SWC::Config'.
typedef Core::Vector<double> SWC::Config::Doubles |
Definition at line 19 of file Property.h.
typedef Core::Vector<int64_t> SWC::Config::Int64s |
Definition at line 18 of file Property.h.
typedef Core::Vector<std::string> SWC::Config::Strings |
Definition at line 17 of file Property.h.
Config::Property::Value_bool::Ptr SWC::Config::boo | ( | ) |
Definition at line 100 of file PropertiesParser.cc.
References SWC::Config::Property::Value::SKIPPABLE.
Config::Property::Value_bool::Ptr SWC::Config::boo | ( | const bool & | v | ) |
Definition at line 21 of file PropertiesParser.cc.
Referenced by SWC::Config::ParserConfig::add(), SWC::FS::apply_broker(), SWC::FS::apply_ceph(), SWC::FS::apply_hadoop(), SWC::FS::apply_hadoop_jvm(), SWC::FS::apply_local(), init_app_options(), init_comm_options(), and SWC::Config::Settings::init_options().
Config::Property::Value_double::Ptr SWC::Config::f64 | ( | ) |
Definition at line 120 of file PropertiesParser.cc.
References SWC::Config::Property::Value::SKIPPABLE.
Config::Property::Value_double::Ptr SWC::Config::f64 | ( | const double & | v | ) |
Definition at line 41 of file PropertiesParser.cc.
Config::Property::Value_doubles::Ptr SWC::Config::f64s | ( | ) |
Definition at line 136 of file PropertiesParser.cc.
References SWC::Config::Property::Value::SKIPPABLE.
Config::Property::Value_doubles::Ptr SWC::Config::f64s | ( | Doubles && | v | ) |
Definition at line 57 of file PropertiesParser.cc.
Config::Property::Value_bool_g::Ptr SWC::Config::g_boo | ( | const bool & | v | ) |
Definition at line 65 of file PropertiesParser.cc.
Referenced by SWC::Config::Settings::init_options().
Config::Property::Value_enum_g::Ptr SWC::Config::g_enum | ( | const int32_t & | v, |
Property::Value_enum_g::OnChg_t && | cb, | ||
Property::Value_enum_g::FromString_t && | from_string, | ||
Property::Value_enum_g::Repr_t && | repr | ||
) |
Definition at line 89 of file PropertiesParser.cc.
References SWC::Config::Property::from_string().
Referenced by SWC::FS::apply_broker(), init_app_options(), init_client_options(), and SWC::Config::Settings::init_options().
Config::Property::Value_uint16_g::Ptr SWC::Config::g_i16 | ( | const uint16_t & | v | ) |
Definition at line 73 of file PropertiesParser.cc.
Referenced by init_client_options().
Config::Property::Value_int32_g::Ptr SWC::Config::g_i32 | ( | const int32_t & | v | ) |
Definition at line 77 of file PropertiesParser.cc.
Referenced by SWC::FS::apply_broker(), SWC::FS::apply_ceph(), SWC::FS::apply_hadoop(), SWC::FS::apply_hadoop_jvm(), SWC::FS::apply_local(), and init_client_options().
Config::Property::Value_uint64_g::Ptr SWC::Config::g_i64 | ( | const uint64_t & | v | ) |
Definition at line 81 of file PropertiesParser.cc.
Config::Property::Value_uint8_g::Ptr SWC::Config::g_i8 | ( | const uint8_t & | v | ) |
Definition at line 69 of file PropertiesParser.cc.
Referenced by init_client_options().
Config::Property::Value_strings_g::Ptr SWC::Config::g_strs | ( | Strings && | v | ) |
Definition at line 85 of file PropertiesParser.cc.
Referenced by init_client_options().
Config::Property::Value_uint16::Ptr SWC::Config::i16 | ( | ) |
Definition at line 108 of file PropertiesParser.cc.
References SWC::Config::Property::Value::SKIPPABLE.
Config::Property::Value_uint16::Ptr SWC::Config::i16 | ( | const uint16_t & | v | ) |
Definition at line 29 of file PropertiesParser.cc.
Referenced by SWC::FS::apply_broker(), SWC::FS::apply_hadoop(), SWC::FS::apply_hadoop_jvm(), and init_client_options().
Config::Property::Value_int32::Ptr SWC::Config::i32 | ( | ) |
Definition at line 112 of file PropertiesParser.cc.
References SWC::Config::Property::Value::SKIPPABLE.
Config::Property::Value_int32::Ptr SWC::Config::i32 | ( | const int32_t & | v | ) |
Definition at line 33 of file PropertiesParser.cc.
Referenced by SWC::FS::apply_broker(), SWC::FS::apply_ceph(), SWC::FS::apply_hadoop(), SWC::FS::apply_local(), and init_app_options().
Config::Property::Value_int64::Ptr SWC::Config::i64 | ( | ) |
Definition at line 116 of file PropertiesParser.cc.
References SWC::Config::Property::Value::SKIPPABLE.
Config::Property::Value_int64::Ptr SWC::Config::i64 | ( | const int64_t & | v | ) |
Definition at line 37 of file PropertiesParser.cc.
Referenced by init_app_options().
Config::Property::Value_int64s::Ptr SWC::Config::i64s | ( | ) |
Definition at line 132 of file PropertiesParser.cc.
References SWC::Config::Property::Value::SKIPPABLE.
Config::Property::Value_int64s::Ptr SWC::Config::i64s | ( | Int64s && | v | ) |
Definition at line 53 of file PropertiesParser.cc.
Config::Property::Value_uint8::Ptr SWC::Config::i8 | ( | ) |
Definition at line 104 of file PropertiesParser.cc.
References SWC::Config::Property::Value::SKIPPABLE.
Config::Property::Value_uint8::Ptr SWC::Config::i8 | ( | const uint8_t & | v | ) |
Definition at line 25 of file PropertiesParser.cc.
Referenced by init_app_options().
void SWC::Config::init_app_options | ( | Settings * | settings | ) |
Definition at line 166 of file load_generator.cc.
References SWC::Config::ParserConfig::add_options(), boo(), SWC::Config::Settings::cmdline_desc, SWC::Core::Encoder::DEFAULT, SWC::Config::ParserConfig::definition(), SWC::DB::Types::from_string_col_type(), SWC::Utils::LoadGenerator::from_string_distrib(), SWC::Utils::LoadGenerator::from_string_distrib_course(), SWC::Core::Encoder::from_string_encoding(), SWC::DB::Types::from_string_range_seq(), g_enum(), SWC::Config::ParserConfig::get_default(), i32(), i64(), i8(), init_client_options(), init_comm_options(), SWC::LOG_ERROR, SWC::DB::Types::repr_col_type(), SWC::Utils::LoadGenerator::repr_distrib(), SWC::Utils::LoadGenerator::repr_distrib_course(), SWC::Core::Encoder::repr_encoding(), SWC::DB::Types::repr_range_seq(), SWC::Utils::LoadGenerator::SEQUENTIAL, SWC::Utils::LoadGenerator::STEP, str(), SWC::Config::Settings::usage_str(), and SWC::Config::Property::Value::zero_token().
Referenced by SWC::Env::Config::init(), SWC::Config::Settings::init(), main(), and run().
SWC_SHOULD_NOT_INLINE void SWC::Config::init_client_options | ( | Settings * | settings | ) |
Definition at line 13 of file Settings.cc.
References SWC::Config::ParserConfig::add_options(), SWC::Config::Settings::cmdline_desc, SWC::Core::Encoder::from_string_encoding(), g_enum(), g_i16(), g_i32(), g_i8(), g_strs(), i16(), SWC::Core::Encoder::repr_encoding(), and SWC_DEFAULT_COMM_ENCODER.
Referenced by init_app_options().
SWC_SHOULD_NOT_INLINE void SWC::Config::init_comm_options | ( | Settings * | settings | ) |
Definition at line 13 of file Settings.cc.
References SWC::Config::ParserConfig::add_options(), boo(), SWC::Config::Settings::file_desc, str(), and strs().
Referenced by init_app_options().
SWC_SHOULD_NOT_INLINE void SWC::Config::init_fs_options | ( | Settings * | settings | ) |
Definition at line 13 of file Settings.cc.
References SWC::Config::ParserConfig::add_options(), SWC::Config::Settings::file_desc, and str().
void SWC::Config::init_post_cmd_args | ( | Settings * | settings | ) |
Definition at line 64 of file Settings.h.
References SWC::Config::Properties::get_str(), and SWC::Config::Settings::parse_file().
Referenced by SWC::Env::Config::init(), SWC::Config::Settings::init(), and main().
std::ostream & SWC::Config::operator<< | ( | std::ostream & | os, |
const Parser & | prs | ||
) |
Definition at line 597 of file PropertiesParser.cc.
References SWC::Config::Parser::print().
std::ostream & SWC::Config::operator<< | ( | std::ostream & | os, |
const ParserConfig & | cfg | ||
) |
Definition at line 341 of file PropertiesParser.cc.
References SWC::Config::ParserConfig::print().
Config::Property::Value_string::Ptr SWC::Config::str | ( | ) |
Definition at line 124 of file PropertiesParser.cc.
References SWC::Config::Property::Value::SKIPPABLE.
Config::Property::Value_string::Ptr SWC::Config::str | ( | std::string && | v | ) |
Definition at line 45 of file PropertiesParser.cc.
Referenced by SWC::Config::Parser::add_opt(), SWC::FS::apply_broker(), SWC::FS::apply_ceph(), SWC::FS::apply_hadoop(), SWC::FS::apply_hadoop_jvm(), SWC::FS::apply_local(), init_app_options(), init_comm_options(), init_fs_options(), SWC::Config::Settings::init_options(), SWC::Comm::Resolver::is_ipv4_address(), SWC::Comm::Resolver::is_ipv6_address(), SWC::Config::Property::Value_bool::set_from(), and SWC::Config::Property::Value_bool_g::set_from().
Config::Property::Value_strings::Ptr SWC::Config::strs | ( | ) |
Definition at line 128 of file PropertiesParser.cc.
References SWC::Config::Property::Value::SKIPPABLE.
Config::Property::Value_strings::Ptr SWC::Config::strs | ( | Strings && | v | ) |
Definition at line 49 of file PropertiesParser.cc.
Referenced by SWC::FS::apply_broker(), SWC::FS::apply_ceph(), SWC::FS::apply_hadoop(), SWC::FS::apply_hadoop_jvm(), SWC::FS::apply_local(), init_comm_options(), and SWC::Config::Settings::init_options().
const uint64_t SWC::Config::G = M * 1000 |
Definition at line 25 of file Property.h.
const uint64_t SWC::Config::GiB = MiB * 1024 |
Definition at line 26 of file Property.h.
const uint64_t SWC::Config::K = 1000 |
Definition at line 21 of file Property.h.
const uint64_t SWC::Config::KiB = 1024 |
Definition at line 22 of file Property.h.
const uint64_t SWC::Config::M = K * 1000 |
Definition at line 23 of file Property.h.
const uint64_t SWC::Config::MiB = KiB * 1024 |
Definition at line 24 of file Property.h.
const uint64_t SWC::Config::T = G * 1000 |
Definition at line 27 of file Property.h.
Referenced by SWC::DB::Cell::Serial::Value::FieldUpdate_MATH::apply(), SWC::DB::Cell::Serial::Value::FieldUpdate_LIST::apply(), SWC::DB::Cell::Serial::Value::FieldUpdate_LIST_ITEMS< UpdateField_T, ValueT >::apply(), SWC::Core::ArraysArray< ArrayT, SizeT, SIZE, SPLIT >::get(), SWC::Core::ArraysArraysVector< ArraysArrayT >::get(), SWC::Core::VectorsVector< Core::Vector< VectorT, uint32_t, 1 >, VectorT, 8192 >::get(), SWC::DB::Cells::Mutable::get(), and SWC::Config::Property::Value::get_pointer().
const uint64_t SWC::Config::TiB = GiB * 1024 |
Definition at line 28 of file Property.h.