Auxiliary data structure to read equations.
More...
#include <JEquation_t.hh>
Auxiliary data structure to read equations.
Definition at line 23 of file JEquation_t.hh.
◆ getEquationParameters()
Get equation parameters.
- Returns
- equation parameters
Definition at line 31 of file JEquation_t.hh.
32 {
33 static JEquationParameters equation("=", ",", "./", "#");
34
35 return equation;
36 }
◆ setEquationParameters()
Set equation parameters.
- Parameters
-
equation | equation parameters |
Definition at line 44 of file JEquation_t.hh.
45 {
47 }
static JEquationParameters & getEquationParameters()
Get equation parameters.
◆ make_equation()
template<class T >
static equation_type< T > JLANG::JEquation::make_equation |
( |
const std::string & | key, |
|
|
const T & | value ) |
|
inlinestaticinherited |
Auxiliary method to create equation type.
- Parameters
-
Definition at line 117 of file JEquation.hh.
118 {
119 return equation_type<T>(
key,
value);
120 }
◆ getKey()
const std::string & JLANG::JEquation::getKey |
( |
| ) |
const |
|
inlineinherited |
◆ getSeparator()
const char JLANG::JEquation::getSeparator |
( |
| ) |
const |
|
inlineinherited |
Get separator.
- Returns
- separator
Definition at line 174 of file JEquation.hh.
◆ getValue()
const std::string & JLANG::JEquation::getValue |
( |
| ) |
const |
|
inlineinherited |
◆ setEquation() [1/2]
Set equation.
- Parameters
-
- Returns
- this equation
Definition at line 317 of file JEquation.hh.
318 {
320
321 istringstream in(buffer);
322
323 in.imbue(locale(in.getloc(), facet.clone()));
324
325 in >> *this;
326
327 return *this;
328 }
◆ setEquation() [2/2]
Set this equation to its value.
- Parameters
-
- Returns
- this equation
Definition at line 337 of file JEquation.hh.
338 {
340
341 return *this;
342 }
const std::string & getValue() const
Get value.
JEquation & setEquation(const std::string &buffer, const JEquationFacet &facet)
Set equation.
◆ valueOf()
Extract equation.
- Parameters
-
- Returns
- equation
Definition at line 352 of file JEquation.hh.
353 {
355 }
JEquation()
Default constructor.
◆ toString()
std::string JLANG::JEquation::toString |
( |
| ) |
const |
|
inlineinherited |
Convert equation to string.
- Returns
- string
Definition at line 363 of file JEquation.hh.
364 {
365 std::string buffer;
366
370
371 return buffer;
372 }
const std::string & getKey() const
Get key.
const char getSeparator() const
Get separator.
◆ operator>>
std::istream & operator>> |
( |
std::istream & | in, |
|
|
JEquation_t & | equation ) |
|
friend |
Read equation from input stream.
- Parameters
-
in | input stream |
equation | equation |
- Returns
- input stream
Definition at line 57 of file JEquation_t.hh.
58 {
61
63
65
66
67
68 return in;
69 }
Facet class to specify parsing of equations in currect locale (see class JLANG::JEquation).
Simple data structure to support I/O of equations (see class JLANG::JEquation).
General purpose equation class.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
◆ key
◆ sep
char JLANG::JEquation::sep |
|
protectedinherited |
◆ value
The documentation for this struct was generated from the following file: