37#ifndef tkproperty_list_H
38#define tkproperty_list_H
40#include "tkn_config.h"
58 struct property_string {
64 using properties = std::map<tkstring, property_string>;
69 properties fProperties;
71 map <tkstring, shared_ptr<tkmeasure>> fDataProperties;
96 shared_ptr<tkmeasure>
get(
const tkstring &_property)
const;
109 virtual void add_property(
const tkstring &_name,
const shared_ptr<tkmeasure> &_property,
const tkstring &_value_str=
"",
const tkstring &_unit_str=
"!");
Contains list of properties.
tkstring get_property_unit(const tkstring &_property) const
get the property unnit as a string
void list_data_properties(const tkstring &_opt="*") const
list the available tkmeasure properties
bool has_property(const tkstring &_property) const
to check if the property is available
shared_ptr< tkmeasure > get(const tkstring &_property) const
get the property as tkmeasure
tkstring get_property_type(const tkstring &_property) const
get the property type as a string
tkproperty_list(tkstring _name)
virtual ~tkproperty_list()=default
tkstring get_property(const tkstring &_property) const
get the property value as a string
vector< shared_ptr< tkmeasure > > get_data_properties(const tkstring &_opt="*")
get a vector of data properties according to a regular expression
void list_properties(const tkstring &_opt="*") const
list the available properties
const auto & get_properties() const
get the properties map
std::string with usefull tricks from TString (ROOT) and KVString (KaliVeda) and more....