MySQL 9.0.0
Source Code Documentation
mysql_component Class Reference

Wraps st_mysql_component_t component data conforming ABI into C++ object. More...

#include <mysql_component_imp.h>

Inheritance diagram for mysql_component:
[legend]

Public Member Functions

 mysql_component (mysql_component_t *component_data, my_string urn)
 
const char * name_c_str () const
 Gets name of this component. More...
 
const char * urn_c_str () const
 Gets original URN used to load this component. More...
 
const my_stringget_urn () const
 Gets original URN used to load this component. More...
 
std::vector< const mysql_service_ref_t * > get_provided_services () const
 Gets list of all service implementations provided by this component. More...
 
std::vector< mysql_service_placeholder_ref_t * > get_required_services () const
 Gets list of services required by this component to work. More...
 
const mysql_component_tget_data () const
 Gets underlying component data structure. More...
 

Private Attributes

mysql_component_tm_component_data
 
my_string m_urn
 

Additional Inherited Members

Detailed Description

Wraps st_mysql_component_t component data conforming ABI into C++ object.

Constructor & Destructor Documentation

◆ mysql_component()

mysql_component::mysql_component ( mysql_component_t component_data,
my_string  urn 
)

Member Function Documentation

◆ get_data()

const mysql_component_t * mysql_component::get_data ( ) const

Gets underlying component data structure.

Returns
Component data structure.

◆ get_provided_services()

std::vector< const mysql_service_ref_t * > mysql_component::get_provided_services ( ) const

Gets list of all service implementations provided by this component.

Returns
List of service implementations.

◆ get_required_services()

std::vector< mysql_service_placeholder_ref_t * > mysql_component::get_required_services ( ) const

Gets list of services required by this component to work.

Returns
List of service names.

◆ get_urn()

const my_string & mysql_component::get_urn ( ) const

Gets original URN used to load this component.

Returns
Reference to string object with URN. Pointer is valid till component is not unloaded.

◆ name_c_str()

const char * mysql_component::name_c_str ( ) const

Gets name of this component.

Returns
Pointer to component name. Pointer is valid till component is not unloaded.

◆ urn_c_str()

const char * mysql_component::urn_c_str ( ) const

Gets original URN used to load this component.

Returns
Pointer to URN. Pointer is valid till component is not unloaded.

Member Data Documentation

◆ m_component_data

mysql_component_t* mysql_component::m_component_data
private

◆ m_urn

my_string mysql_component::m_urn
private

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