71 void set_value(std::string property, T value);
82 std::cout <<
"tunnel> Setting value " << std::setw(25) << std::left <<
property << value << std::endl;
86 {
set(
this,property,value);}
87 catch(
const std::runtime_error&)
89 std::cerr <<
"Error: tunnel> unknown option \"" <<
property <<
"\" with value " << value <<
"\"" << std::endl;
Class that provides introspection to its members.
void set(Tunnel *instance, const std::string &name, double value)
double aper1
radius, aperture parameters
void PublishMembers()
Publish members.
std::string soilMaterial
soil
std::string startElement
start and end element by name
double thickness
tunnel geometry parameters
std::string material
material
void set_value(std::string property, T value)
set methods by property name and value
std::string type
geometry type
double offsetX
offset x and y
void print() const
print some properties
Parser namespace for GMAD language. Combination of Geant4 and MAD.