MySQL 8.0.32
Source Code Documentation
Plugin_info Class Reference

Version independent plugin data storage, defines conversion from existing versions and enables writing the data as a JSON text. More...

#include <plugin.h>

Public Member Functions

 Plugin_info (const Plugin_v1 &plugin)
 Constructor. More...
 

Static Public Member Functions

static std::string get_abi_version_str (uint32_t ver)
 converts ABI version integer to string representation More...
 
static std::string get_plugin_version_str (uint32_t ver)
 converts plugin version integer to string representation More...
 

Private Member Functions

void print_as_json (std::ostream &out_stream) const
 

Static Private Member Functions

static void copy_to_list (std::list< std::string > &out_list, const char **in_list, size_t in_list_size)
 

Private Attributes

uint32_t abi_version
 
std::string arch_descriptor
 
std::string brief
 
uint32_t plugin_version
 
std::list< std::string > requires_plugins
 
std::list< std::string > conflicts
 

Friends

std::ostream & operator<< (std::ostream &stream, const Plugin_info &plugin_info)
 prints the JSON representation of the Plugin_info object to the selected output stream More...
 

Detailed Description

Version independent plugin data storage, defines conversion from existing versions and enables writing the data as a JSON text.

Application class, enables testing of the application through the selecting input parameters and regular and error outputs.

Constructor & Destructor Documentation

◆ Plugin_info()

Plugin_info::Plugin_info ( const Plugin_v1 plugin)
explicit

Constructor.

Parameters
pluginconstructor from v1 of Plugin struct

Member Function Documentation

◆ copy_to_list()

void Plugin_info::copy_to_list ( std::list< std::string > &  out_list,
const char **  in_list,
size_t  in_list_size 
)
staticprivate

◆ get_abi_version_str()

std::string Plugin_info::get_abi_version_str ( uint32_t  ver)
static

converts ABI version integer to string representation

Parameters
verinteger representation to convert

◆ get_plugin_version_str()

std::string Plugin_info::get_plugin_version_str ( uint32_t  ver)
static

converts plugin version integer to string representation

Parameters
verinteger representation to convert

◆ print_as_json()

void Plugin_info::print_as_json ( std::ostream &  out_stream) const
private

Friends And Related Function Documentation

◆ operator<<

std::ostream & operator<< ( std::ostream &  stream,
const Plugin_info plugin_info 
)
friend

prints the JSON representation of the Plugin_info object to the selected output stream

Member Data Documentation

◆ abi_version

uint32_t Plugin_info::abi_version
private

◆ arch_descriptor

std::string Plugin_info::arch_descriptor
private

◆ brief

std::string Plugin_info::brief
private

◆ conflicts

std::list<std::string> Plugin_info::conflicts
private

◆ plugin_version

uint32_t Plugin_info::plugin_version
private

◆ requires_plugins

std::list<std::string> Plugin_info::requires_plugins
private

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