![]() |
![]() |
DD4hep - The AIDA detector description toolkit for high energy physics experiments
DD4hep
Rev:Unversioneddirectory
|
Concrete type dependent grammar definition. More...
#include <BasicGrammar_inl.h>
Public Member Functions | |
Grammar () | |
Standarsd constructor. More... | |
virtual | ~Grammar () |
Default destructor. More... | |
virtual const std::type_info & | type () const |
PropertyGrammar overload: Access to the type information. More... | |
virtual const std::string & | type_name () const |
Access to the type information name. More... | |
virtual size_t | sizeOf () const |
Access the object size (sizeof operator) More... | |
virtual std::string | str (const void *ptr) const |
PropertyGrammar overload: Serialize a property to a string. More... | |
virtual bool | fromString (void *ptr, const std::string &value) const |
PropertyGrammar overload: Retrieve value from string. More... | |
virtual int | evaluate (void *ptr, const std::string &value) const |
Evaluate string value if possible before calling boost::spirit. More... | |
![]() | |
BasicGrammar () | |
Default constructor. More... | |
virtual | ~BasicGrammar () |
Default destructor. More... | |
Private Attributes | |
std::string | m_typeName |
Cached type information name. More... | |
Additional Inherited Members | |
![]() | |
template<typename TYPE > | |
static const BasicGrammar & | instance () |
Instance factory. More... | |
static void | invalidConversion (const std::type_info &from, const std::type_info &to) |
Error callback on invalid conversion. More... | |
static void | invalidConversion (const std::string &value, const std::type_info &to) |
Error callback on invalid conversion. More... | |
Concrete type dependent grammar definition.
Definition at line 63 of file BasicGrammar_inl.h.
DD4hep::Grammar< TYPE >::Grammar | ( | ) |
Standarsd constructor.
Definition at line 86 of file BasicGrammar_inl.h.
References DD4hep::typeName().
|
virtual |
Default destructor.
Definition at line 91 of file BasicGrammar_inl.h.
|
virtual |
Evaluate string value if possible before calling boost::spirit.
Definition at line 110 of file BasicGrammar_inl.h.
|
virtual |
PropertyGrammar overload: Retrieve value from string.
Implements DD4hep::BasicGrammar.
Definition at line 115 of file BasicGrammar_inl.h.
References DD4hep::BasicGrammar::invalidConversion(), and DD4hep::Parsers::parse().
|
virtual |
Access the object size (sizeof operator)
Implements DD4hep::BasicGrammar.
Definition at line 105 of file BasicGrammar_inl.h.
|
virtual |
PropertyGrammar overload: Serialize a property to a string.
Serialize a property to a string.
Implements DD4hep::BasicGrammar.
Definition at line 142 of file BasicGrammar_inl.h.
References DD4hep::Utils::toStream().
|
virtual |
PropertyGrammar overload: Access to the type information.
Implements DD4hep::BasicGrammar.
Definition at line 95 of file BasicGrammar_inl.h.
|
virtual |
Access to the type information name.
PropertyGrammar overload: Access to the type information.
Implements DD4hep::BasicGrammar.
Definition at line 100 of file BasicGrammar_inl.h.
|
private |
Cached type information name.
Definition at line 65 of file BasicGrammar_inl.h.