MySQL 8.4.1
Source Code Documentation
manifest::Manifest_reader Class Referencefinal

#include <manifest.h>

Public Member Functions

 Manifest_reader (const std::string executable_path, const std::string instance_path, std::string json_schema=manifest_version_1_0)
 
 ~Manifest_reader ()=default
 
bool file_present () const
 
bool empty () const
 
bool ro () const
 
std::string manifest_file () const
 
bool read_local_manifest () const
 
bool components (std::string &components_string) const
 

Private Member Functions

template<typename T >
bool get_element (const std::string element_name, T &element_value) const
 Get an element value from JSON document. More...
 

Private Attributes

std::string config_file_path_
 Configuration file path. More...
 
rapidjson::Document schema_
 Schema Document. More...
 
rapidjson::Document data_
 Configuration data in JSON. More...
 
bool file_present_
 File status. More...
 
bool valid_
 Validity of configuration data. More...
 
bool empty_
 content More...
 
bool ro_
 RO flag. More...
 

Constructor & Destructor Documentation

◆ Manifest_reader()

manifest::Manifest_reader::Manifest_reader ( const std::string  executable_path,
const std::string  instance_path,
std::string  json_schema = manifest_version_1_0 
)
inlineexplicit

◆ ~Manifest_reader()

manifest::Manifest_reader::~Manifest_reader ( )
default

Member Function Documentation

◆ components()

bool manifest::Manifest_reader::components ( std::string &  components_string) const
inline

◆ empty()

bool manifest::Manifest_reader::empty ( ) const
inline

◆ file_present()

bool manifest::Manifest_reader::file_present ( ) const
inline

◆ get_element()

template<typename T >
bool manifest::Manifest_reader::get_element ( const std::string  element_name,
T &  element_value 
) const
inlineprivate

Get an element value from JSON document.

Assumption: Type is compatible with Get() function and type of element is matching with template argument.

Parameters
[in]element_nameName of the element being searched
[out]element_valueValue of the element
Returns
status of search operation
Return values
trueElement found. Refer to element_value
falseElement missing.

◆ manifest_file()

std::string manifest::Manifest_reader::manifest_file ( ) const
inline

◆ read_local_manifest()

bool manifest::Manifest_reader::read_local_manifest ( ) const
inline

◆ ro()

bool manifest::Manifest_reader::ro ( ) const
inline

Member Data Documentation

◆ config_file_path_

std::string manifest::Manifest_reader::config_file_path_
private

Configuration file path.

◆ data_

rapidjson::Document manifest::Manifest_reader::data_
private

Configuration data in JSON.

◆ empty_

bool manifest::Manifest_reader::empty_
private

content

◆ file_present_

bool manifest::Manifest_reader::file_present_
private

File status.

◆ ro_

bool manifest::Manifest_reader::ro_
private

RO flag.

◆ schema_

rapidjson::Document manifest::Manifest_reader::schema_
private

Schema Document.

◆ valid_

bool manifest::Manifest_reader::valid_
private

Validity of configuration data.


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