Falaise  4.0.1
SuperNEMO Software Toolkit
Public Types | Public Member Functions | List of all members
falaise::app::metadata_scanner Class Reference

Metadata scanner. More...

#include <falaise/app/metadata_utils.h>

Public Types

typedef boost::variant< bool, int, double, std::string > prop_value_type
 

Public Member Functions

 metadata_scanner (const datatools::multi_properties &)
 Constructor. More...
 
bool check_section (const std::string &section_name_, const std::string &section_type_) const
 
const datatools::propertiesget_section (const std::string &section_name_, const std::string &section_type_) const
 
bool find_boolean (const std::string &section_name_, const std::string &section_type_, const std::string &propKey_, bool &propValue_) const
 
bool find_integer (const std::string &section_name_, const std::string &section_type_, const std::string &propKey_, int &propValue_) const
 
bool find_size (const std::string &section_name_, const std::string &section_type_, const std::string &propKey_, std::size_t &propValue_) const
 
bool find_real (const std::string &section_name_, const std::string &section_type_, const std::string &propKey_, double &propValue_) const
 
bool find_string (const std::string &section_name_, const std::string &section_type_, const std::string &propKey_, std::string &propValue_) const
 
bool find_path (const std::string &section_name_, const std::string &section_type_, const std::string &propKey_, std::string &propValue_) const
 

Detailed Description

Metadata scanner.

Member Typedef Documentation

◆ prop_value_type

typedef boost::variant<bool, int, double, std::string> falaise::app::metadata_scanner::prop_value_type

Constructor & Destructor Documentation

◆ metadata_scanner()

falaise::app::metadata_scanner::metadata_scanner ( const datatools::multi_properties )

Constructor.

Member Function Documentation

◆ check_section()

bool falaise::app::metadata_scanner::check_section ( const std::string &  section_name_,
const std::string &  section_type_ 
) const

◆ find_boolean()

bool falaise::app::metadata_scanner::find_boolean ( const std::string &  section_name_,
const std::string &  section_type_,
const std::string &  propKey_,
bool &  propValue_ 
) const

◆ find_integer()

bool falaise::app::metadata_scanner::find_integer ( const std::string &  section_name_,
const std::string &  section_type_,
const std::string &  propKey_,
int &  propValue_ 
) const

◆ find_path()

bool falaise::app::metadata_scanner::find_path ( const std::string &  section_name_,
const std::string &  section_type_,
const std::string &  propKey_,
std::string &  propValue_ 
) const

◆ find_real()

bool falaise::app::metadata_scanner::find_real ( const std::string &  section_name_,
const std::string &  section_type_,
const std::string &  propKey_,
double &  propValue_ 
) const

◆ find_size()

bool falaise::app::metadata_scanner::find_size ( const std::string &  section_name_,
const std::string &  section_type_,
const std::string &  propKey_,
std::size_t &  propValue_ 
) const

◆ find_string()

bool falaise::app::metadata_scanner::find_string ( const std::string &  section_name_,
const std::string &  section_type_,
const std::string &  propKey_,
std::string &  propValue_ 
) const

◆ get_section()

const datatools::properties& falaise::app::metadata_scanner::get_section ( const std::string &  section_name_,
const std::string &  section_type_ 
) const

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