|
Geant4 11.4.0
Toolkit for the simulation of the passage of particles through matter
|
#include <PoPI.hpp>
Public Member Functions | |
| PhysicalQuantity (HAPI::Node const &a_node, PQ_class a_class) | |
| virtual | ~PhysicalQuantity () |
| PQ_class | Class (void) const |
| std::string const & | tag (void) const |
| std::string const & | label (void) const |
| std::string const & | valueString (void) const |
| std::string const & | unit (void) const |
| void | toXMLList (std::vector< std::string > &a_XMLList, std::string const &a_indent1) const |
| virtual std::string | valueToString (void) const =0 |
The base class for all PhysicalQuantity classes.
| PoPI::PhysicalQuantity::PhysicalQuantity | ( | HAPI::Node const & | a_node, |
| PQ_class | a_class ) |
| a_node | [in] The HAPI::Node node to be parsed. |
| a_class | [in] The class of the physical quantity. |
Definition at line 30 of file PoPI_physicalQuantity.cc.
Referenced by PoPI::PQ_double::PQ_double(), PoPI::PQ_double::PQ_double(), PoPI::PQ_fraction::PQ_fraction(), PoPI::PQ_integer::PQ_integer(), and PoPI::PQ_string::PQ_string().
|
virtual |
Definition at line 42 of file PoPI_physicalQuantity.cc.
|
inline |
Returns the value of the m_class member.
Definition at line 416 of file PoPI.hpp.
Referenced by PoPI::getPhysicalQuantityAsDouble().
|
inline |
|
inline |
| void PoPI::PhysicalQuantity::toXMLList | ( | std::vector< std::string > & | a_XMLList, |
| std::string const & | a_indent1 ) const |
Adds the contents of this to a_XMLList where each item in a_XMLList is one line (without linefeeds) to output as an XML representation of this.
| a_XMLList | [in] The list to add an XML output representation of this to. |
| a_indent1 | [in] The amount of indentation to added to each line added to a_XMLList. |
Definition at line 53 of file PoPI_physicalQuantity.cc.
|
inline |
Returns the value of the m_unit member.
Definition at line 420 of file PoPI.hpp.
Referenced by PoPI::Nucleus::energy().
|
inline |
Returns the value of the valueString member.
Definition at line 419 of file PoPI.hpp.
Referenced by PoPI::PQ_string::value(), PoPI::PQ_fraction::valueToString(), and PoPI::PQ_string::valueToString().
|
pure virtual |
Implemented in PoPI::PQ_double, PoPI::PQ_fraction, PoPI::PQ_integer, and PoPI::PQ_string.
Referenced by toXMLList().