69 if (
debug_lvl & 2) cout <<
" FGModel Base Class" << endl;
76 if (
debug_lvl & 2) cout <<
"Destroyed: FGModel" << endl;
91 if (
debug_lvl & 4) cout <<
"Entering Run() for model " <<
Name << endl;
93 if (
rate == 1)
return false;
97 if (
exe_ctr++ == 1)
return false;
115 if (!document)
return false;
119 <<
" Read model '" << document->
GetName()
120 <<
"' while expecting model '" << el->
GetName() <<
"'" << endl;
129 if (document != el) {
180 if (from == 0) cout <<
"Instantiated: FGModel" << endl;
181 if (from == 1) cout <<
"Destroyed: FGModel" << endl;
const std::string & GetName(void) const
Retrieves the element name.
void SetParent(Element *p)
This function sets the value of the parent class attribute to the supplied Element pointer.
std::string ReadFrom(void) const
Return a string that contains a description of the location where the current XML element was read fr...
void AddChildElement(Element *el)
Adds a child element to the list of children stored for this element.
void MergeAttributes(Element *el)
Merges the attributes of the current element with another element.
Element * FindElement(const std::string &el="")
Searches for a specified element.
Element * FindNextElement(const std::string &el="")
Searches for the next element as specified.
FGPropertyReader LocalProperties
bool Load(Element *el, FGFDMExec *fdmex, std::string prefix="")
virtual bool InitModel(void)
Element_ptr Open(Element *el)
FGPropertyManager * PropertyManager
bool InitModel(void) override
FGModel(FGFDMExec *)
Constructor.
virtual SGPath FindFullPathName(const SGPath &path) const
bool Upload(Element *el, bool preLoad)
Uploads this model in memory.
virtual void Debug(int from)
~FGModel() override
Destructor.
virtual bool Run(bool Holding)
Runs the model; called by the Executive.
SGPath CheckPathName(const SGPath &path, const SGPath &filename)