inputOutput.hh
void addArrayBool(const char *array, const bool newArray=false)
Creates an emtpy array for bools if necessary.
void addMatrixDouble(const char *matrix, const int i, const int j, const double value)
Adds a double to an matrix.
F get_(const std::map< const char *, F, ltstr > &map, const char *name) const
std::map< const char *, std::map< int, bool > *, ltstr > boolArrays_
Hash of arrays of bools.
Definition: inputOutput.hh:345
void addArrayInt(const char *array, const int number, const int value)
Adds an int to an array.
const std::map< int, std::complex< double > > & getMapComplex(const char *array) const
Returns a reference to the requested map.
void addArray_(std::map< const char *, std::map< F, G, H > *, ltstr > &map, const char *array, const bool newArray=false)
void addMatrixInt(const char *array, const bool newMatrix=false)
Creates an empty matrix for integer if necessary.
double getMatrixDouble(const char *array, const int i, const int j) const
Returns a double from an matrix.
void addComplex(const char *name, const std::complex< double > value)
Adds a complex double to the hash of doubles.
virtual std::ostream & info(std::ostream &os) const
Returns information in an output stream.
std::complex< double > getArrayComplex(const char *array, const int number) const
Returns a complex double from an array.
int getArrayInt(const char *array, const int number) const
Returns a int from an array.
Definition: inputOutput.hh:41
void addArray_(std::map< const char *, std::map< F, G, H > *, ltstr > &map, const char *array, const F number, const G value)
void mapMatrixOutputMatlab_(std::ostream &os, const std::map< const char *, std::map< MultiIndex< 2 >, F, ltidx > *, ltstr > &map, const std::string brackets="[]") const
Matlab output of one mapping of an matrix.
bool operator()(const char *s1, const char *s2) const
Definition: inputOutput.hh:42
Indicates that a requested parameter is not present.
Definition: inputOutput.hh:29
void addArrayComplex(const char *array, const int number, const std::complex< double > value)
Adds a complex double to an array.
std::complex< double > getComplex(const char *name) const
Returns a complex double from the hash of doubles.
std::map< const char *, std::map< MultiIndex< 2 >, int, ltidx > *, ltstr > intMatrices_
Hash of matrices of integer.
Definition: inputOutput.hh:352
std::map< const char *, std::map< int, int > *, ltstr > intArrays_
Hash of arrays of ints.
Definition: inputOutput.hh:343
const std::map< int, bool > & getMapBool(const char *array) const
Returns a reference to the requested map.
void mapOutputMatlab_(std::ostream &os, const std::map< const char *, F, ltstr > &map) const
Matlab output of one mapping.
void addArrayDouble(const char *array, const bool newArray=false)
Creates an empty array for doubles if necessary.
double getDouble(const char *name) const
Returns a double from the hash of doubles.
InOutParameters(const InOutParameters &i)
Copy constructor.
MissingParameter(const std::string ¶meter)
Constructor.
int getMatrixInt(const char *array, const int i, const int j) const
Returns a integer from an matrix.
const std::map< int, F > & getMap_(const std::map< const char *, std::map< int, F > *, ltstr > &map, const char *array) const
void addMatrixDouble(const char *array, const bool newMatrix=false)
Creates an empty matrix for doubles if necessary.
int getInt(const char *name, const int value=INT_MAX) const
Returns an int from the hash of ints.
virtual std::ostream & info(std::ostream &os) const
Returns information in an output stream.
void addArrayInt(const char *array, const bool newArray=false)
Creates an empty array for ints if necessary
void addString(const char *name, const char *value)
Adds a string to the hash of strings.
std::map< const char *, std::map< MultiIndex< 2 >, double, ltidx > *, ltstr > doubleMatrices_
Hash of matrices of doubles.
Definition: inputOutput.hh:349
void addMatrixInt(const char *matrix, const int i, const int j, const int value)
Adds a integer to an matrix.
void clear_(std::map< const char *, F, ltstr > &map)
clears one mapping
struct yy_buffer_state * YY_BUFFER_STATE
The buffer representing the input file (for the parser)
Definition: inputOutput.hh:467
void addBool(const char *name, const int value)
Adds a bool to the hash of bools.
const std::map< int, double > & getMapDouble(const char *array) const
Returns a reference to the requested map.
virtual ~InputParser()
std::string getArrayString(const char *array, const int number) const
Returns a string from an array.
void append(const InOutParameters &inout, bool arrayAppend=true)
Appends inout.
double getDouble(const char *name, const double value) const
Returns a double from the hash of doubles.
Definition: multiArray.hh:43
bool getArrayBool(const char *array, const int number) const
Returns a bool from an array.
void addInt(const char *name, const int value)
Adds an int to the hash of ints.
void addArrayDouble(const char *array, const int number, const double value)
Adds a double to an array.
double getArrayDouble(const char *array, const int number) const
Returns a double from an array.
std::map< const char *, std::map< int, double > *, ltstr > doubleArrays_
Hash of arrays of doubles.
Definition: inputOutput.hh:336
void mapArrayOutputMatlab_(std::ostream &os, const std::map< const char *, std::map< int, F > *, ltstr > &map, const std::string brackets="[]") const
Matlab output of one mapping of an array.
bool getBool(const char *name, const bool value) const
Returns a bool from the hash of bools.
void addArrayString(const char *array, const bool newArray=false)
Creates an empty array for strings if necessary.
std::ostream & storeMatlab(std::ostream &os, const char *name, const std::string description="") const
Output as matlab function, which gives a object back.
const std::map< int, std::string > & getMapString(const char *array) const
Returns a reference to the requested map.
void addArrayString(const char *array, const int number, const char *value)
Adds a string to an array.
std::string getString(const char *name, const char *value=0) const
Returns a string from the hash of strings.
void storeMatlab(const char *filename, const std::string description="") const
Output as matlab function, which gives a object back.
void clear_(std::map< const char *, std::map< G, F > *, ltstr > &map)
const std::map< int, int > & getMapInt(const char *array) const
Returns a reference to the requested map.
virtual ~InOutParameters()
virtual std::ostream & info(std::ostream &os) const
Returns information in an output stream.
void add_(std::map< const char *, F, ltstr > &map, const char *name, const F value)
Adds a entrance value of type F to field name.
bool quiet_
Suppress output of current time, machine name etc. in the output.
Definition: inputOutput.hh:481
std::map< const char *, std::map< int, std::complex< double > > *, ltstr > complexArrays_
Hash of arrays of complex.
Definition: inputOutput.hh:339
bool operator()(const MultiIndex< 2 > &i1, const MultiIndex< 2 > &i2) const
Definition: inputOutput.hh:48
void addArrayBool(const char *array, const int number, const int value)
Adds a bool to an array.
void addArrayComplex(const char *array, const bool newArray=false)
Creates an empty array for complex doubles if necessary.
YY_BUFFER_STATE current_buffer_
The current input buffer (for the parser)
Definition: inputOutput.hh:472
G getArray_(const std::map< const char *, std::map< F, G, H > *, ltstr > &map, const char *array, const F number) const
bool getBool(const char *name) const
Returns a bool from the hash of bools.
void addDouble(const char *name, const double value)
Adds a double to the hash of doubles.
std::map< const char *, std::complex< double >, ltstr > complex_
Hash of complex doubles.
Definition: inputOutput.hh:327
std::map< const char *, std::map< int, std::string > *, ltstr > stringArrays_
Hash of arrays of strings.
Definition: inputOutput.hh:341
Definition: inputOutput.hh:47