SWC-DB  v0.5.12 C++ documentations
SWC-DB© (Super Wide Column Database) - High Performance Scalable Database (https://github.com/kashirin-alex/swc-db)
SWC::Env::Config Class Referencefinal

#include <swcdb/core/config/Settings.h>

+ Collaboration diagram for SWC::Env::Config:

Public Types

typedef std::shared_ptr< ConfigPtr
 

Public Member Functions

 Config ()
 
 ~Config () noexcept
 

Static Public Member Functions

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)
 
static void set (Ptr env) noexcept
 
static Ptrget ()
 
static SWC::Config::Settings::Ptrsettings ()
 
static void reset () noexcept
 

Private Attributes

SWC::Config::Settings::Ptr m_settings
 

Static Private Attributes

static Ptr m_env = nullptr
 

Detailed Description

Definition at line 103 of file Settings.h.

Member Typedef Documentation

◆ Ptr

typedef std::shared_ptr<Config> SWC::Env::Config::Ptr

Definition at line 107 of file Settings.h.

Constructor & Destructor Documentation

◆ Config()

SWC::Env::Config::Config ( )
inline

Definition at line 137 of file Settings.h.

Referenced by get().

+ Here is the caller graph for this function:

◆ ~Config()

SWC::Env::Config::~Config ( )
inlinenoexcept

Definition at line 139 of file Settings.h.

Member Function Documentation

◆ get()

static Ptr& SWC::Env::Config::get ( )
inlinestatic

Definition at line 122 of file Settings.h.

References Config(), and m_env.

Referenced by init(), and SWC::Utils::run().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ init()

static SWC_SHOULD_NOT_INLINE void SWC::Env::Config::init ( int  argc,
char **  argv,
SWC::Config::Settings::init_option_t  init_app_options,
SWC::Config::Settings::init_option_t  init_post_cmd_args 
)
inlinestatic

Definition at line 110 of file Settings.h.

References get(), SWC::Config::init_app_options(), and SWC::Config::init_post_cmd_args().

Referenced by main(), and run().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ reset()

static void SWC::Env::Config::reset ( )
inlinestaticnoexcept

Definition at line 133 of file Settings.h.

References m_env.

Referenced by SWC::Broker::exiting(), SWC::FsBroker::exiting(), SWC::Manager::exiting(), SWC::Ranger::exiting(), SWC::ThriftBroker::exiting(), main(), and run().

+ Here is the caller graph for this function:

◆ set()

static void SWC::Env::Config::set ( Ptr  env)
inlinestaticnoexcept

Definition at line 118 of file Settings.h.

References m_env.

Referenced by swcdb_utils_apply_cfg().

+ Here is the caller graph for this function:

◆ settings()

Member Data Documentation

◆ m_env

Ptr SWC::Env::Config::m_env = nullptr
inlinestaticprivate

Definition at line 143 of file Settings.h.

Referenced by get(), reset(), set(), and settings().

◆ m_settings

SWC::Config::Settings::Ptr SWC::Env::Config::m_settings
private

Definition at line 142 of file Settings.h.


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