53 <<
"The element <" << el->
GetName()
54 <<
"> must either contain a value number or a property name."
56 throw std::invalid_argument(
"FGParameterValue: Illegal argument defining: " + el->
GetName());
67 double GetValue(
void)
const override {
return param->GetValue(); }
68 bool IsConstant(
void)
const override {
return param->IsConstant(); }
76 return std::to_string(param->GetValue());
94 param =
new FGPropertyValue(value, pm);
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...
unsigned int GetNumDataLines(void)
Returns the number of lines of data stored.
std::string GetDataLine(unsigned int i=0)
Gets a line of data belonging to an element.
double GetValue(void) const override
bool IsLateBound(void) const
std::string GetName(void) const override
bool IsConstant(void) const override
FGParameterValue(Element *el, FGPropertyManager *pm)
FGParameterValue(const std::string &value, FGPropertyManager *pm)
Represents various types of parameters.
Represents a property value which can use late binding.
bool IsLateBound(void) const
virtual std::string GetNameWithSign(void) const
SGSharedPtr< FGParameter > FGParameter_ptr
SGSharedPtr< FGParameterValue > FGParameterValue_ptr
static double atof(const string &str)
bool is_number(const std::string &str)