Public Types | Public Member Functions | Public Attributes | List of all members
fhicl::extended_value Class Reference

#include "/cvmfs/nova.opensciencegrid.org/externals/fhiclcpp/v4_06_10/source/fhiclcpp/extended_value.h"

Public Types

using atom_t = std::string
 
using complex_t = std::pair< std::string, std::string >
 
using sequence_t = std::vector< extended_value >
 
using table_t = shims::map< std::string, extended_value >
 

Public Member Functions

 extended_value ()=default
 
 extended_value (bool const in_prolog, value_tag const tag, boost::any const value, Protection const protection, std::string const &src={})
 
 extended_value (bool const in_prolog, value_tag const tag, boost::any const value, std::string const &src={})
 
bool is_a (value_tag t) const
 
std::string to_string () const
 
void set_prolog (bool new_prolog_state)
 
void set_src_info (std::string const &src)
 
std::string pretty_src_info () const
 
 operator atom_t () const
 
 operator complex_t () const
 
 operator sequence_t () const
 
 operator table_t () const
 

Public Attributes

bool in_prolog {false}
 
value_tag tag {UNKNOWN}
 
boost::any value {}
 
std::string src_info {}
 
Protection protection {Protection::NONE}
 

Detailed Description

Definition at line 37 of file extended_value.h.

Member Typedef Documentation

Definition at line 39 of file extended_value.h.

Definition at line 40 of file extended_value.h.

Definition at line 41 of file extended_value.h.

Definition at line 42 of file extended_value.h.

Constructor & Destructor Documentation

fhicl::extended_value::extended_value ( )
default
fhicl::extended_value::extended_value ( bool const  in_prolog,
value_tag const  tag,
boost::any const  value,
Protection const  protection,
std::string const &  src = {} 
)
inline

Definition at line 46 of file extended_value.h.

References src_info.

50  {})
52  , tag{tag}
53  , value{value}
54  , src_info{src}
56  {}
const XML_Char int const XML_Char * value
Definition: expat.h:331
fhicl::extended_value::extended_value ( bool const  in_prolog,
value_tag const  tag,
boost::any const  value,
std::string const &  src = {} 
)
inline

Definition at line 58 of file extended_value.h.

References src_info.

61  {})
63  {}
const XML_Char int const XML_Char * value
Definition: expat.h:331

Member Function Documentation

bool fhicl::extended_value::is_a ( value_tag  t) const
inline

Definition at line 66 of file extended_value.h.

References set_prolog(), string, tag, and to_string().

Referenced by fhicl::detail::decode().

67  {
68  return t == tag;
69  }
fhicl::extended_value::operator atom_t ( ) const
inline

Definition at line 83 of file extended_value.h.

References value.

83 { return boost::any_cast<atom_t>(value); }
fhicl::extended_value::operator complex_t ( ) const
inline

Definition at line 85 of file extended_value.h.

References value.

85 { return boost::any_cast<complex_t>(value); }
std::pair< std::string, std::string > complex_t
fhicl::extended_value::operator sequence_t ( ) const
inline

Definition at line 87 of file extended_value.h.

References value.

87 { return boost::any_cast<sequence_t>(value); }
std::vector< extended_value > sequence_t
fhicl::extended_value::operator table_t ( ) const
inline

Definition at line 89 of file extended_value.h.

References value.

89 { return boost::any_cast<table_t>(value); }
shims::map< std::string, extended_value > table_t
std::string fhicl::extended_value::pretty_src_info ( ) const

Referenced by set_src_info().

void fhicl::extended_value::set_prolog ( bool  new_prolog_state)

Referenced by is_a().

void fhicl::extended_value::set_src_info ( std::string const &  src)
inline

Definition at line 76 of file extended_value.h.

References pretty_src_info(), src_info, and string.

77  {
78  src_info = src;
79  }
std::string fhicl::extended_value::to_string ( ) const

Referenced by is_a().

Member Data Documentation

bool fhicl::extended_value::in_prolog {false}

Definition at line 91 of file extended_value.h.

Referenced by art::detail::exists_outside_prolog().

Protection fhicl::extended_value::protection {Protection::NONE}

Definition at line 95 of file extended_value.h.

std::string fhicl::extended_value::src_info {}

Definition at line 94 of file extended_value.h.

Referenced by extended_value(), and set_src_info().

value_tag fhicl::extended_value::tag {UNKNOWN}

Definition at line 92 of file extended_value.h.

Referenced by is_a().

boost::any fhicl::extended_value::value {}

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