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());
std::string GetAttributeValue(const std::string &key)
Retrieves an attribute.
Encapsulates the JSBSim simulation executive.
bool Load(Element *el) override
Init the output directives from an XML file.
FGOutputFile(FGFDMExec *fdmex)
Constructor.
virtual void CloseFile(void)
Closes the file.
void SetOutputName(const std::string &fname) override
Overwrites the name identifier under which the output will be logged.
bool InitModel(void) override
Initializes the instance.
void SetStartNewOutput(void) override
Reset the output prior to a restart of the simulation.
virtual bool OpenFile(void)=0
Opens the file.
Abstract class to provide functions generic to all the output directives.
bool Load(Element *el) override
Init the output directives from an XML file (implement the FGModel interface).
bool InitModel(void) override
Init the output model according to its configitation.