![SWC-DB logo](logo.svg) |
SWC-DB
v0.5.12 C++ documentations
SWC-DB© (Super Wide Column Database) - High Performance Scalable Database (https://github.com/kashirin-alex/swc-db)
|
Go to the documentation of this file.
6 #ifndef swcdb_core_config_Config_h
7 #define swcdb_core_config_Config_h
29 typedef std::shared_ptr<Settings>
Ptr;
47 void init(
int argc,
char *argv[],
54 void load_files_by(const
char* fileprop,
bool allow_unregistered);
56 void parse_file(const std::
string& fname, const
char* onchg);
58 void init_process(
bool with_pid_file, const
char* port_cfg =
nullptr);
60 std::
string usage_str(const
char *usage =
nullptr);
72 DynFile(std::string&& a_filename) noexcept
73 : filename(std::move(a_filename)), modified(0) {
76 : filename(std::move(other.filename)),
77 modified(other.modified) {
86 return other == filename;
89 bool operator==(
const std::string& other)
const noexcept {
107 typedef std::shared_ptr<Config>
Ptr;
109 SWC_SHOULD_NOT_INLINE
130 return m_env->m_settings;
150 #ifdef SWC_IMPL_SOURCE
154 #endif // swcdb_core_config_Config_h
Parser::Options m_cmd_args
static void reset() noexcept
void init_process(bool with_pid_file, const char *port_cfg=nullptr)
std::shared_ptr< Settings > Ptr
Settings & operator=(const Settings &)=delete
static SWC::Config::Settings::Ptr & settings()
void init_app_options(Settings *settings)
Core::Vector< DynFile > m_dyn_files
SWC_CAN_INLINE bool operator==(const std::string &other) const noexcept
static SWC_SHOULD_NOT_INLINE void init(int argc, char **argv, SWC::Config::Settings::init_option_t init_app_options, SWC::Config::Settings::init_option_t init_post_cmd_args)
const std::string filename
Settings & operator=(Settings &&)=delete
ParserConfig cmdline_desc
SWC_CAN_INLINE ~DynFile() noexcept
std::shared_ptr< Config > Ptr
SWC_CAN_INLINE DynFile(std::string &&a_filename) noexcept
void parse_file(const std::string &fname, const char *onchg)
bool str_eq(const char *s1, const char *s2) noexcept SWC_ATTRIBS((SWC_ATTRIB_O3))
SWC::Config::Settings::Ptr m_settings
std::string usage_str(const char *usage=nullptr)
The SWC-DB C++ namespace 'SWC'.
Settings(const Settings &)=delete
Settings(Settings &&)=delete
SWC_CAN_INLINE bool operator==(const DynFile &other) const noexcept
DynFile & operator=(DynFile &&)=delete
static void set(Ptr env) noexcept
DynFile(DynFile &&other) noexcept
void init(int argc, char *argv[], init_option_t app, init_option_t post_cmd_args)
void init_post_cmd_args(Settings *settings)
void parse_args(int argc, char *argv[])
void load_files_by(const char *fileprop, bool allow_unregistered)
DynFile(const DynFile &)=delete
void init_option_t(Settings *)
DynFile & operator=(const DynFile &)=delete
void check_dynamic_files() noexcept