MySQL 8.0.32
Source Code Documentation
mysql_component_imp.h
Go to the documentation of this file.
1/* Copyright (c) 2016, 2022, Oracle and/or its affiliates.
2
3This program is free software; you can redistribute it and/or modify
4it under the terms of the GNU General Public License, version 2.0,
5as published by the Free Software Foundation.
6
7This program is also distributed with certain software (including
8but not limited to OpenSSL) that is licensed under separate terms,
9as designated in a particular file or component or in included license
10documentation. The authors of MySQL hereby grant you an additional
11permission to link the program and your derivative works with the
12separately licensed software that they have included with MySQL.
13
14This program is distributed in the hope that it will be useful,
15but WITHOUT ANY WARRANTY; without even the implied warranty of
16MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17GNU General Public License, version 2.0, for more details.
18
19You should have received a copy of the GNU General Public License
20along with this program; if not, write to the Free Software
21Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
22
23#ifndef MYSQL_COMPONENT_H
24#define MYSQL_COMPONENT_H
25
27#include <vector>
28#include "my_metadata.h"
29
30/**
31 Wraps st_mysql_component_t component data conforming ABI into C++ object.
32*/
34 public:
35 mysql_component(mysql_component_t *component_data, my_string urn);
36
37 const char *name_c_str() const;
38 const char *urn_c_str() const;
39 const my_string &get_urn() const;
40
41 std::vector<const mysql_service_ref_t *> get_provided_services() const;
42 std::vector<mysql_service_placeholder_ref_t *> get_required_services() const;
43
44 const mysql_component_t *get_data() const;
45
46 private:
49};
50
51#endif /* MYSQL_COMPONENT_H */
The metadata class used by both the registry and the dynamic loader services to store and manage meta...
Definition: my_metadata.h:39
Wraps st_mysql_component_t component data conforming ABI into C++ object.
Definition: mysql_component_imp.h:33
std::vector< mysql_service_placeholder_ref_t * > get_required_services() const
Gets list of services required by this component to work.
Definition: mysql_component.cc:83
my_string m_urn
Definition: mysql_component_imp.h:48
const my_string & get_urn() const
Gets original URN used to load this component.
Definition: mysql_component.cc:60
const mysql_component_t * get_data() const
Gets underlying component data structure.
Definition: mysql_component.cc:98
const char * urn_c_str() const
Gets original URN used to load this component.
Definition: mysql_component.cc:52
mysql_component(mysql_component_t *component_data, my_string urn)
Definition: mysql_component.cc:28
mysql_component_t * m_component_data
Definition: mysql_component_imp.h:47
const char * name_c_str() const
Gets name of this component.
Definition: mysql_component.cc:43
std::vector< const mysql_service_ref_t * > get_provided_services() const
Gets list of all service implementations provided by this component.
Definition: mysql_component.cc:68
std::string my_string
Definition: my_metadata.h:30
Carries information on the specific Component, all Service Implementations it provides,...
Definition: dynamic_loader.h:262