49 std::list<std::string> components;
50 std::list<double> componentsFractions;
51 std::list<int> componentsWeights;
61 void set_value(
const std::string& property, T value);
75 std::cout <<
"parser> Setting value " << std::setw(25) << std::left <<
property << value << std::endl;
79 {
set(
this,property,value);}
80 catch (
const std::runtime_error&)
82 std::cerr <<
"Error: parser> unknown material option \"" <<
property <<
"\" with value \"" << value <<
"\"" << std::endl;
Representation of arrays used in tokens.
Class that provides introspection to its members.
void set(Material *instance, const std::string &name, double value)
Parser namespace for GMAD language. Combination of Geant4 and MAD.
std::string state
"solid", "liquid", or "gas"
void PublishMembers()
publish members so these can be looked up from parser
void print() const
printout
void set_value(const std::string &property, T value)
set methods by property name and value