|
Zero
0.1.0
|
Start-up parameters for the storage engine. See OPTIONS. More...
#include <sm_options.h>
Public Member Functions | |
| sm_options () | |
| sm_options (const sm_options &other) | |
| int64_t | get_int_option (const std::string &option_name, int64_t default_value) const |
| bool | get_bool_option (const std::string &option_name, bool default_value) const |
| const std::string & | get_string_option (const std::string &option_name, const std::string &default_value) const |
| void | set_int_option (const std::string &option_name, int64_t value) |
| void | set_bool_option (const std::string &option_name, bool value) |
| void | set_string_option (const std::string &option_name, const std::string &value) |
Private Attributes | |
| std::map< std::string, int64_t > | _int_options |
| std::map< std::string, bool > | _bool_options |
| std::map< std::string, std::string > | _string_options |
Start-up parameters for the storage engine. See OPTIONS.
This class represents the entire set of parameters our storage engine needs while start-up. It consists of integer parameters, such as buffer pool size, boolean parameters and string parameters, such as log drive path. They are exposed simply as a map of parameter name and the value. NOTE This class is header-only. No need to link to anything.
|
inline |
empty constructor.
|
inline |
copy constructor.
|
inline |
Returns the value of the specified boolean start up parameter.
| [in] | option_name | name of the parameter |
| [in] | default_value | value to return if the parameter does not exist. |
|
inline |
Returns the value of the specified integer start up parameter.
| [in] | option_name | name of the parameter |
| [in] | default_value | value to return if the parameter does not exist. |
|
inline |
Returns the value of the specified string start up option.
| [in] | option_name | name of the option |
| [in] | default_value | value to return if the option does not exist. |
|
inline |
Sets the value of the specified boolean start up option.
| [in] | option_name | name of the option |
| [in] | value | value of the option. |
|
inline |
Sets the value of the specified integer start up option.
| [in] | option_name | name of the option |
| [in] | value | value of the option. |
|
inline |
Sets the value of the specified string start up option.
| [in] | option_name | name of the option |
| [in] | value | value of the option. |
|
private |
All boolean options, key=option name.
|
private |
All integer options, key=option name.
|
private |
All string options, key=option name.
1.8.12