MySQL 9.1.0
Source Code Documentation
|
The metadata class used by both the registry and the dynamic loader services to store and manage metadata information related to specified objects. More...
#include <my_metadata.h>
Classes | |
class | const_iterator |
The data type of the iterator used. More... | |
Public Member Functions | |
my_metadata () | |
my_metadata (my_metadata &other) | |
bool | set_value (const char *name, const char *value) |
Sets a value for the name specified. More... | |
bool | get_value (const char *name, const char **value) |
Gets value for the name specified. More... | |
const_iterator | create_iterator () |
Creates an iterator over the metadata. More... | |
Static Public Member Functions | |
static bool | release_iterator (const_iterator *iter) |
Frees an iterator over the metadata. More... | |
Protected Attributes | |
my_unordered_string_to_string_map | data |
The metadata class used by both the registry and the dynamic loader services to store and manage metadata information related to specified objects.
|
default |
|
default |
my_metadata::const_iterator my_metadata::create_iterator | ( | ) |
Creates an iterator over the metadata.
Positions on the first value.
bool my_metadata::get_value | ( | const char * | name, |
const char ** | value | ||
) |
Gets value for the name specified.
The value is unmodified if not found. Doesn't copy the result value, so it requires synchronization to prevent other threads to modify structure.
name | The name string of the metadata pair. | |
[out] | value | The value string of the metadata pair. |
false | success |
true | failure |
|
static |
Frees an iterator over the metadata.
Iterator must be allocated through create_iterator();
iter | Pointer to the iterator to release. |
false | success |
true | failure |
bool my_metadata::set_value | ( | const char * | name, |
const char * | value | ||
) |
Sets a value for the name specified.
Adds to the metadata list if absent. Copies the data into the structure, original values don't need to be around after this function is called.
name | The name string of the metadata pair to be added. |
value | The value string of the metadata pair. |
false | success |
true | failure |
|
protected |