ls1-MarDyn
ls1-MarDyn molecular dynamics code
|
The Coordinate3D class eases the handling of x y z coordinates in xml input. More...
#include <Coordinate3D.h>
Public Member Functions | |
Coordinate3D (XMLfileUnits &xmlconfig, std::string nodename=std::string(".")) | |
constructor directly reading in xml structure More... | |
void | readXML (XMLfileUnits &xmlconfig) |
Read in XML configuration for x y z coordinate. More... | |
double | x () |
Get x component of coordinate. | |
double | y () |
Get y component of coordinate. | |
double | z () |
Get z component of coordinate. | |
void | get (double vec[3]) |
obtain coordinate vector values | |
The Coordinate3D class eases the handling of x y z coordinates in xml input.
Coordinate3D::Coordinate3D | ( | XMLfileUnits & | xmlconfig, |
std::string | nodename = std::string(".") |
||
) |
constructor directly reading in xml structure
[in] | xmlconfig | xml config file object |
[in] | nodename | node path holding the x y z structure to be parsed by readXML |
void Coordinate3D::readXML | ( | XMLfileUnits & | xmlconfig | ) |
Read in XML configuration for x y z coordinate.
The following xml object structure is handled by this method: