MySQL 9.1.0
Source Code Documentation
|
This class is to be used to provide parameters to bindings in a transparent and generic way. More...
#include <gcs_types.h>
Public Member Functions | |
void | add_parameter (const std::string &name, const std::string &value) |
Adds a parameter to the parameter catalog. More... | |
const std::string * | get_parameter (const std::string &name) const |
Retrieves a parameter from the object. More... | |
bool | check_parameters (const std::vector< std::string > ¶ms) const |
Check whether any of the parameters were provided. More... | |
bool | check_parameters (const char *params[], int size) const |
Check whether any of the parameters were provided. More... | |
void | add_parameters_from (const Gcs_interface_parameters &p) |
Adds the parameters provided to the existing set of parameters. More... | |
void | clear () |
Clears all parameters. More... | |
Gcs_interface_parameters () | |
virtual | ~Gcs_interface_parameters ()=default |
Private Attributes | |
std::map< std::string, std::string > | parameters |
This class is to be used to provide parameters to bindings in a transparent and generic way.
Each binding must document which parameters it needs and it is the responsibility of the client to provide them at initialize() time.
|
inline |
|
virtualdefault |
void Gcs_interface_parameters::add_parameter | ( | const std::string & | name, |
const std::string & | value | ||
) |
Adds a parameter to the parameter catalog.
If the value already exists, it is overridden by the new one.
name | the name of the parameter |
value | value of the parameter |
|
inline |
Adds the parameters provided to the existing set of parameters.
p | Parameters to add. |
bool Gcs_interface_parameters::check_parameters | ( | const char * | params[], |
int | size | ||
) | const |
Check whether any of the parameters were provided.
params | list of parameters. |
size | number of parameters. |
bool Gcs_interface_parameters::check_parameters | ( | const std::vector< std::string > & | params | ) | const |
Check whether any of the parameters were provided.
params | list of parameters. |
|
inline |
Clears all parameters.
const std::string * Gcs_interface_parameters::get_parameter | ( | const std::string & | name | ) | const |
Retrieves a parameter from the object.
|
private |