#include <Expression.hpp>
Public Member Functions | |
| Expression (void) | |
| Empty constructor. | |
| Expression (const std::string &str) | |
| Constructor. | |
| Expression (const Expression &rhs) | |
| Copy constructor. | |
| ~Expression (void) | |
| Destructor. | |
| Expression & | operator= (const Expression &rhs) |
| Assignment operator. | |
| bool | set (const std::string name, double value) |
| Sets a variable in the expression to the input value. | |
| bool | set (const char *name, double value) |
| Sets a variable in the expression to the input value. | |
| bool | setGPSConstants (void) |
| Sets multiple variables in the expression to constants associated with GPS. | |
| bool | setRinexObs (const RinexObsData::RinexObsTypeMap &rotm) |
| Sets multiple variables in the expression using values stored in a RinexObsType stucture. | |
| bool | setSvObsEpoch (const SvObsEpoch &soe) |
| Sets multiple variables in the expression using values stored in a RinexObsType stucture. | |
| bool | canEvaluate (void) |
| Checks in advance if all variables have been set. | |
| double | evaluate (void) throw (ExpressionException) |
| Returns the numerical value of the expression. | |
| void | print (std::ostream &ostr) const |
| Writes the expression out to a stream. | |
|
|
Empty constructor.
Definition at line 168 of file Expression.cpp. |
|
|
Constructor.
Definition at line 154 of file Expression.cpp. |
|
|
Copy constructor.
Definition at line 175 of file Expression.cpp. References Expression::print(). |
|
|
Destructor.
Definition at line 252 of file Expression.cpp. |
|
|
Checks in advance if all variables have been set.
Definition at line 553 of file Expression.cpp. |
|
|
Returns the numerical value of the expression. Note that if the expression contains variables, those variables must be set. Definition at line 176 of file Expression.hpp. Referenced by main(). |
|
|
Assignment operator.
Definition at line 183 of file Expression.cpp. References Expression::print(). |
|
|
Writes the expression out to a stream.
Definition at line 182 of file Expression.hpp. Referenced by Expression::Expression(), main(), and Expression::operator=(). |
|
||||||||||||
|
Sets a variable in the expression to the input value. All instances of the variable are set to this value. This is required before an expression can be evaluated, if the expression contains variables. In the search, case is not important (e.g., "c" and "C" would be a match).
Definition at line 134 of file Expression.hpp. |
|
||||||||||||
|
Sets a variable in the expression to the input value. All instances of the variable are set to this value. This is required before an expression can be evaluated, if the expression contains variables.
Definition at line 526 of file Expression.cpp. References gpstk::StringUtils::upperCase(). Referenced by main(), Expression::setGPSConstants(), Expression::setRinexObs(), and Expression::setSvObsEpoch(). |
|
|
Sets multiple variables in the expression to constants associated with GPS. Predefined variables include: PI; C (meters per second); L1 and L2, carrier frequencies in cycles per second; WL1 and WL2, carrier wavelengths. As with other variables, the case is insensitive.
Definition at line 574 of file Expression.cpp. References gpstk::C_MPS, gpstk::L1_FREQ_GPS, gpstk::L1_MULT_GPS, gpstk::L2_FREQ_GPS, gpstk::L2_MULT_GPS, gpstk::OSC_FREQ_GPS, gpstk::PI, and Expression::set(). Referenced by main(). |
|
|
Sets multiple variables in the expression using values stored in a RinexObsType stucture. This structure is nested within the RinexObsData class.
Definition at line 592 of file Expression.cpp. References Expression::set(). Referenced by main(). |
|
|
Sets multiple variables in the expression using values stored in a RinexObsType stucture. This structure is nested within the RinexObsData class.
Definition at line 606 of file Expression.cpp. References Expression::set(). |
1.3.9.1