40 std::string apertureType;
54 void set_value(std::string name, T value,
bool bExit =
true);
65 std::cout <<
"aperture> setting value " << std::setw(25) << std::left
66 <<
property << value << std::endl;
70 {
set(
this, property, value);}
71 catch (
const std::runtime_error&)
73 std::cerr <<
"Error: aperture> unknown option \"" <<
property
74 <<
"\" with value \"" << value <<
"\"" << std::endl;
78 {std::rethrow_exception(std::current_exception());}
void PublishMembers()
publish members
void print() const
Print some properties.
void set_value(std::string name, T value, bool bExit=true)
Set methods by property name and value.
Class that provides introspection to its members.
void set(Aperture *instance, const std::string &name, double value)
Parser namespace for GMAD language. Combination of Geant4 and MAD.