![]() |
MySQL 9.3.0
Source Code Documentation
|
A service acquiring registry query convenience class. More...
#include <my_registry_query.h>
Public Member Functions | |
My_registry_query_and_acquire (const char *service_name, const mysql_service_registry_t *reg, const mysql_service_registry_query_t *reg_query=nullptr) | |
My_registry_query_and_acquire (const My_registry_query_and_acquire &other)=delete | |
My_registry_query_and_acquire (My_registry_query_and_acquire &&other)=delete | |
~My_registry_query_and_acquire () | |
bool | init () |
Call this method to populate the data into the class. More... | |
void | reset () |
Properly releases and disposes of all the references. More... | |
Private Attributes | |
const std::string | m_service_name |
const mysql_service_registry_t * | m_registry |
My_registry_query_string | m_string_list |
A service acquiring registry query convenience class.
Uses the My_registry_query_string class to get a list of service names matching the pattern, acquires references for these and keeps them until the instance's destruction.
Typical use pattern is:
|
inline |
|
delete |
|
delete |
|
inline |
|
inline |
Call this method to populate the data into the class.
true | failure |
false | success |
|
inline |
Properly releases and disposes of all the references.
Called by the destructor too
|
private |
|
private |
|
private |