Small machine-readable result file of a calculator: one "key value unit" line per quantity (unit "-" if dimensionless), after a "#" header. Meant for scripts, tutorials and regression tests.
More...
#include <resultfile.h>
|
| | ResultFile (const std::string &title) |
| void | Add (const std::string &key, double value, const std::string &unit) |
| void | Add (const std::string &key, Index value) |
| void | Add (const std::string &key, const std::string &value) |
| void | Write (const std::string &filename) const |
Small machine-readable result file of a calculator: one "key value unit" line per quantity (unit "-" if dimensionless), after a "#" header. Meant for scripts, tutorials and regression tests.
Definition at line 42 of file resultfile.h.
◆ ResultFile()
| votca::xtp::ResultFile::ResultFile |
( |
const std::string & | title | ) |
|
|
inlineexplicit |
◆ Add() [1/3]
| void votca::xtp::ResultFile::Add |
( |
const std::string & | key, |
|
|
const std::string & | value ) |
|
inline |
◆ Add() [2/3]
| void votca::xtp::ResultFile::Add |
( |
const std::string & | key, |
|
|
double | value, |
|
|
const std::string & | unit ) |
|
inline |
◆ Add() [3/3]
| void votca::xtp::ResultFile::Add |
( |
const std::string & | key, |
|
|
Index | value ) |
|
inline |
◆ Write()
| void votca::xtp::ResultFile::Write |
( |
const std::string & | filename | ) |
const |
|
inline |
◆ text_
| std::stringstream votca::xtp::ResultFile::text_ |
|
private |
The documentation for this class was generated from the following file: