51 void set_value(std::string property, T value,
bool bExit =
false);
62 std::cout <<
"parser> Setting value " << std::setw(25) << std::left <<
property << value << std::endl;
66 {
set(
this,property,value);}
67 catch(
const std::runtime_error&)
69 std::cerr <<
"Error: parser> unknown atom option \"" <<
property <<
"\" with value \"" << value <<
"\"" << std::endl;
73 {std::rethrow_exception(std::current_exception());}
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 set_value(std::string property, T value, bool bExit=false)
set methods by property name and value
void print() const
printout
void PublishMembers()
publish members so these can be looked up from parser