Class for storing input data. More...
#include <storage.h>
Public Member Functions | |
Storage () | |
Constructor. | |
~Storage () | |
Destructor. | |
void | add (const int_st_t &val) |
Add integer value. | |
void | add (const double_st_t &val) |
Add double precision value. | |
void | add (const int_vec_st_t &val) |
Add integer vector. | |
void | add (const double_vec_st_t &val) |
Add double precision vector. | |
void | add (const string_st_t &val) |
Add string. | |
int | get_int (const std::string &name) const |
Get integer value. | |
double | get_double (const std::string &name) const |
Get double precision value. | |
std::vector< int > | get_int_vec (const std::string &name) const |
Get integer vector. | |
std::vector< double > | get_double_vec (const std::string &name) const |
Get double precision vector. | |
std::string | get_string (const std::string &name) const |
Get string. | |
void | set_int (const std::string &name, int val) |
Set integer value. | |
void | set_double (const std::string &name, double val) |
Set double precision value. | |
void | set_int_vec (const std::string &name, const std::vector< int > &val) |
Set integer vector. | |
void | set_double_vec (const std::string &name, const std::vector< double > &val) |
Get double precision vector. | |
void | set_string (const std::string &name, const std::string &val) |
Get string. | |
std::vector< std::string > | find_int (const std::string &name) const |
Get possible integer keywords. | |
std::vector< std::string > | find_double (const std::string &name) const |
Get possible double keywords. | |
std::vector< std::string > | find_int_vec (const std::string &name) const |
Get possible integer vector keywords. | |
std::vector< std::string > | find_double_vec (const std::string &name) const |
Get possible double vector keywords. | |
std::vector< std::string > | find_string (const std::string &name) const |
Get possible string keywords. | |
void | print (bool vals=false) const |
Print contents (vector values, too?) | |
Private Attributes | |
std::vector< int_st_t > | ints |
Stack of integers. | |
std::vector< double_st_t > | doubles |
Stack of doubles. | |
std::vector< int_vec_st_t > | intvec |
Stack of integer arrays. | |
std::vector< double_vec_st_t > | doublevec |
Stack of double precision arrays. | |
std::vector< string_st_t > | strings |
String array. | |
Class for storing input data.