Geant4 11.4.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
PoPI::PQ_string Class Reference

#include <PoPI.hpp>

Inheritance diagram for PoPI::PQ_string:

Public Member Functions

 PQ_string (HAPI::Node const &a_node)
virtual ~PQ_string ()
std::string value (void) const
std::string value (char const *a_unit) const
std::string value (std::string const &a_unit) const
virtual std::string valueToString (void) const
Public Member Functions inherited from PoPI::PhysicalQuantity
 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

Detailed Description

The physical quantity class represented as a string.

Definition at line 496 of file PoPI.hpp.

Constructor & Destructor Documentation

◆ PQ_string()

PoPI::PQ_string::PQ_string ( HAPI::Node const & a_node)
Parameters
a_node[in] The HAPI::Node node to be parsed.

Definition at line 233 of file PoPI_physicalQuantity.cc.

233 :
235
236}
PhysicalQuantity(HAPI::Node const &a_node, PQ_class a_class)

◆ ~PQ_string()

PoPI::PQ_string::~PQ_string ( )
virtual

Definition at line 241 of file PoPI_physicalQuantity.cc.

241 {
242
243}

Member Function Documentation

◆ value() [1/3]

std::string PoPI::PQ_string::value ( char const * a_unit) const

◆ value() [2/3]

std::string PoPI::PQ_string::value ( std::string const & a_unit) const
inline

Returns the value of the m_value member in units of a_unit.

Definition at line 504 of file PoPI.hpp.

Referenced by value().

◆ value() [3/3]

std::string PoPI::PQ_string::value ( void ) const
inline

Returns the value returned by calling the valueString methods.

Definition at line 502 of file PoPI.hpp.

◆ valueToString()

std::string PoPI::PQ_string::valueToString ( void ) const
virtual

Returns the string value of this.

Returns
The string value of this.

Implements PoPI::PhysicalQuantity.

Definition at line 264 of file PoPI_physicalQuantity.cc.

264 {
265
266 return( valueString( ) );
267}
std::string const & valueString(void) const
Definition PoPI.hpp:419

The documentation for this class was generated from the following files: