 |
JSBSim Flight Dynamics Model
1.1.11 (13 Feb 2022)
An Open Source Flight Dynamics and Control Software Library in C++
|
30 #ifndef FGPARAMETERVALUE_H
31 #define FGPARAMETERVALUE_H
39 #include "math/FGRealValue.h"
40 #include "math/FGPropertyValue.h"
41 #include "input_output/FGXMLElement.h"
49 class FGPropertyManager;
71 <<
"The element <" << el->
GetName()
72 <<
"> must either contain a value number or a property name."
74 throw invalid_argument(
"FGParameterValue: Illegal argument defining: " + el->
GetName());
84 double GetValue(
void)
const override {
return param->GetValue(); }
85 bool IsConstant(
void)
const override {
return param->IsConstant(); }
87 std::string GetName(
void)
const override {
90 return v->GetNameWithSign();
92 return to_string(param->GetValue());
95 bool IsLateBound(
void)
const {
97 return v !=
nullptr && v->IsLateBound();
100 FGParameter_ptr param;
103 if (is_number(value)) {
112 typedef SGSharedPtr<FGParameterValue> FGParameterValue_ptr;
unsigned int GetNumDataLines(void)
Returns the number of lines of data stored.
Represents various types of parameters.
Represents a property value which can use late binding.
Represents a either a real value or a property value.
std::string GetDataLine(unsigned int i=0)
Gets a line of data belonging to an element.
const std::string & GetName(void) const
Retrieves the element name.
std::string ReadFrom(void) const
Return a string that contains a description of the location where the current XML element was read fr...