 |
JSBSim Flight Dynamics Model
1.1.11 (13 Feb 2022)
An Open Source Flight Dynamics and Control Software Library in C++
|
43 #include "FGOutputFile.h"
44 #include "input_output/FGXMLElement.h"
65 if (Filename.isNull()) {
66 Filename = SGPath(Name);
79 if (runID_postfix >= 0) {
81 string::size_type dot = Name.find_last_of(
'.');
82 if (dot != string::npos) {
83 buf << Name.substr(0, dot) <<
'_' << runID_postfix++ << Name.substr(dot);
85 buf << Name <<
'_' << runID_postfix++;
87 Filename = SGPath(buf.str());
virtual void CloseFile(void)
Closes the file.
Encapsulates the JSBSim simulation executive.
Abstract class to provide functions generic to all the output directives.
std::string GetAttributeValue(const std::string &key)
Retrieves an attribute.
bool InitModel(void) override
Init the output model according to its configitation.
bool InitModel(void) override
Initializes the instance.
virtual bool OpenFile(void)=0
Opens the file.
void SetOutputName(const std::string &fname) override
Overwrites the name identifier under which the output will be logged.
bool Load(Element *el) override
Init the output directives from an XML file.
void SetStartNewOutput(void) override
Reset the output prior to a restart of the simulation.
bool Load(Element *el) override
Init the output directives from an XML file (implement the FGModel interface).