52 void set_value(std::string property, T value);
63 std::cout <<
"parser> Setting value " << std::setw(25) << std::left <<
property << value << std::endl;
67 {
set(
this,property,value);}
68 catch(
const std::runtime_error&)
70 std::cerr <<
"Error: parser> unknown atom option \"" <<
property <<
"\" with value \"" << value <<
"\"" << std::endl;
Class that provides introspection to its members.
void set(Atom *instance, const std::string &name, double value)
Parser namespace for GMAD language. Combination of Geant4 and MAD.
void print() const
printout
void set_value(std::string property, T value)
set methods by property name and value
void PublishMembers()
publish members so these can be looked up from parser