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