30#ifndef FGPARAMETERVALUE_H
31#define FGPARAMETERVALUE_H
37#include "math/FGRealValue.h"
38#include "math/FGPropertyValue.h"
39#include "input_output/FGXMLElement.h"
40#include "input_output/string_utilities.h"
48class FGPropertyManager;
72 err <<
"The element <" << el->
GetName()
73 <<
"> must either contain a value number or a property name.\n";
78 FGParameterValue(
const std::string& value, std::shared_ptr<FGPropertyManager> pm,
81 param =
new FGRealValue(atof_locale_c(value.c_str()));
88 double GetValue(
void)
const override {
return param->GetValue(); }
89 bool IsConstant(
void)
const override {
return param->IsConstant(); }
91 std::string GetName(
void)
const override {
94 return v->GetNameWithSign();
96 return param->GetName();
99 bool IsLateBound(
void)
const {
101 return v !=
nullptr && v->IsLateBound();
104 FGParameter_ptr param;
107typedef SGSharedPtr<FGParameterValue> FGParameterValue_ptr;
const std::string & GetName(void) const
Retrieves the element name.
std::string GetDataLine(unsigned int i=0)
Gets a line of data belonging to an element.
unsigned int GetNumDataLines(void)
Returns the number of lines of data stored.
Represents a either a real value or a property value.
Represents various types of parameters.
Represents a property value which can use late binding.
Main namespace for the JSBSim Flight Dynamics Model.