57 if (
debug_lvl & 2) cout <<
"Destroyed: FGModelFunctions" << endl;
89 if (fType.empty() || fType ==
"pre")
91 else if (fType ==
"template") {
124 prefunc->cacheValue(
true);
136 postfunc->cacheValue(
true);
144 if (prefunc->GetName() ==
name)
155 string FunctionStrings;
158 if (!FunctionStrings.empty())
159 FunctionStrings += delimeter;
161 FunctionStrings += prefunc->GetName();
165 if (!FunctionStrings.empty())
166 FunctionStrings += delimeter;
168 FunctionStrings += postfunc->GetName();
171 return FunctionStrings;
181 if (buf.tellp() > 0) buf << delimeter;
182 buf << prefunc->GetValue();
186 if (buf.tellp() > 0) buf << delimeter;
187 buf << postfunc->GetValue();
std::string GetAttributeValue(const std::string &key)
Retrieves an attribute.
Element * FindElement(const std::string &el="")
Searches for a specified element.
Element * FindNextElement(const std::string &el="")
Searches for the next element as specified.
void AddTemplateFunc(const std::string &name, Element *el)
FGPropertyManager * GetPropertyManager(void)
Returns a pointer to the property manager object.
Represents a mathematical function.
std::vector< FGFunction * > PreFunctions
std::string GetFunctionValues(const std::string &delimeter) const
Gets the function values.
std::vector< FGFunction * > PostFunctions
std::string GetFunctionStrings(const std::string &delimeter) const
Gets the strings for the current set of functions.
FGPropertyReader LocalProperties
void RunPostFunctions(void)
void PostLoad(Element *el, FGFDMExec *fdmex, std::string prefix="")
bool Load(Element *el, FGFDMExec *fdmex, std::string prefix="")
virtual bool InitModel(void)
void RunPreFunctions(void)
FGFunction * GetPreFunction(const std::string &name)
Get one of the "pre" function.
void PreLoad(Element *el, FGFDMExec *fdmex, std::string prefix="")
virtual ~FGModelFunctions()