MySQL 8.0.39
Source Code Documentation
mysql_component_imp.h
Go to the documentation of this file.
1/* Copyright (c) 2016, 2024, 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 designed to work 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 either included with
13the program or referenced in the documentation.
14
15This program is distributed in the hope that it will be useful,
16but WITHOUT ANY WARRANTY; without even the implied warranty of
17MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18GNU General Public License, version 2.0, for more details.
19
20You should have received a copy of the GNU General Public License
21along with this program; if not, write to the Free Software
22Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
23
24#ifndef MYSQL_COMPONENT_H
25#define MYSQL_COMPONENT_H
26
28#include <vector>
29#include "my_metadata.h"
30
31/**
32 Wraps st_mysql_component_t component data conforming ABI into C++ object.
33*/
35 public:
36 mysql_component(mysql_component_t *component_data, my_string urn);
37
38 const char *name_c_str() const;
39 const char *urn_c_str() const;
40 const my_string &get_urn() const;
41
42 std::vector<const mysql_service_ref_t *> get_provided_services() const;
43 std::vector<mysql_service_placeholder_ref_t *> get_required_services() const;
44
45 const mysql_component_t *get_data() const;
46
47 private:
50};
51
52#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:40
Wraps st_mysql_component_t component data conforming ABI into C++ object.
Definition: mysql_component_imp.h:34
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:84
my_string m_urn
Definition: mysql_component_imp.h:49
const my_string & get_urn() const
Gets original URN used to load this component.
Definition: mysql_component.cc:61
const mysql_component_t * get_data() const
Gets underlying component data structure.
Definition: mysql_component.cc:99
const char * urn_c_str() const
Gets original URN used to load this component.
Definition: mysql_component.cc:53
mysql_component(mysql_component_t *component_data, my_string urn)
Definition: mysql_component.cc:29
mysql_component_t * m_component_data
Definition: mysql_component_imp.h:48
const char * name_c_str() const
Gets name of this component.
Definition: mysql_component.cc:44
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:69
std::string my_string
Definition: my_metadata.h:31
Carries information on the specific Component, all Service Implementations it provides,...
Definition: dynamic_loader.h:263