Public Member Functions | Private Attributes | List of all members
fhicl::detail::ParameterMetadata Class Reference

#include <ParameterMetadata.h>

Public Member Functions

 ParameterMetadata ()=default
 
 ParameterMetadata (Name const &name=Name(), Comment const &comment=Comment(""), par_style const parStyle=par_style::NTYPES, par_type const parType=par_type::NTYPES)
 
std::string const & key () const
 
std::string const & name () const
 
std::string const & comment () const
 
bool has_default () const
 
bool is_optional () const
 
bool is_conditional () const
 
par_type type () const
 
void set_par_style (par_style const vt)
 

Private Attributes

std::string key_ {}
 
std::string name_ {}
 
std::string comment_ {}
 
par_style parStyle_ {par_style::NTYPES}
 
par_type parType_ {par_type::NTYPES}
 

Detailed Description

Definition at line 16 of file ParameterMetadata.h.

Constructor & Destructor Documentation

fhicl::detail::ParameterMetadata::ParameterMetadata ( )
default
fhicl::detail::ParameterMetadata::ParameterMetadata ( Name const &  name = Name(),
Comment const &  comment = Comment(""),
par_style const  parStyle = par_style::NTYPES,
par_type const  parType = par_type::NTYPES 
)
inline

Definition at line 20 of file ParameterMetadata.h.

25  , name_{name.value}
26  , comment_{comment.value}
27  , parStyle_{parStyle}
28  , parType_{parType}
29  {}
std::string const & name() const
std::string const & comment() const
static std::string full_key(std::string const &key)

Member Function Documentation

std::string const& fhicl::detail::ParameterMetadata::comment ( ) const
inline

Definition at line 42 of file ParameterMetadata.h.

43  {
44  return comment_;
45  }
bool fhicl::detail::ParameterMetadata::has_default ( ) const
inline
bool fhicl::detail::ParameterMetadata::is_conditional ( ) const
inline
bool fhicl::detail::ParameterMetadata::is_optional ( ) const
inline
std::string const& fhicl::detail::ParameterMetadata::key ( ) const
inline

Definition at line 32 of file ParameterMetadata.h.

33  {
34  return key_;
35  }
std::string const& fhicl::detail::ParameterMetadata::name ( ) const
inline

Definition at line 37 of file ParameterMetadata.h.

38  {
39  return name_;
40  }
void fhicl::detail::ParameterMetadata::set_par_style ( par_style const  vt)
inline

Definition at line 76 of file ParameterMetadata.h.

77  {
78  parStyle_ = vt;
79  }
par_type fhicl::detail::ParameterMetadata::type ( ) const
inline

Definition at line 70 of file ParameterMetadata.h.

71  {
72  return parType_;
73  }

Member Data Documentation

std::string fhicl::detail::ParameterMetadata::comment_ {}
private

Definition at line 84 of file ParameterMetadata.h.

std::string fhicl::detail::ParameterMetadata::key_ {}
private

Definition at line 82 of file ParameterMetadata.h.

std::string fhicl::detail::ParameterMetadata::name_ {}
private

Definition at line 83 of file ParameterMetadata.h.

par_style fhicl::detail::ParameterMetadata::parStyle_ {par_style::NTYPES}
private

Definition at line 85 of file ParameterMetadata.h.

par_type fhicl::detail::ParameterMetadata::parType_ {par_type::NTYPES}
private

Definition at line 86 of file ParameterMetadata.h.


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