43 #include "FGOutputFile.h" 44 #include "input_output/FGXMLElement.h" 50 IDENT(IdSrc,
"$Id: FGOutputFile.cpp,v 1.10 2017/02/25 14:23:18 bcoconni Exp $");
51 IDENT(IdHdr,ID_OUTPUTFILE);
68 if (Filename.isNull()) {
69 Filename = SGPath(Name);
82 if (runID_postfix >= 0) {
84 string::size_type dot = Name.find_last_of(
'.');
85 if (dot != string::npos) {
86 buf << Name.substr(0, dot) <<
'_' << runID_postfix++ << Name.substr(dot);
88 buf << Name <<
'_' << runID_postfix++;
90 Filename = SGPath(buf.str());
void SetStartNewOutput(void)
Reset the output prior to a restart of the simulation.
std::string GetAttributeValue(const std::string &key)
Retrieves an attribute.
virtual bool InitModel(void)
Init the output model according to its configitation.
bool InitModel(void)
Initializes the instance.
virtual void CloseFile(void)
Closes the file.
void SetOutputName(const std::string &fname)
Overwrites the name identifier under which the output will be logged.
bool Load(Element *el)
Init the output directives from an XML file.
virtual bool Load(Element *el)
Init the output directives from an XML file (implement the FGModel interface).
Abstract class to provide functions generic to all the output directives.
Encapsulates the JSBSim simulation executive.
virtual bool OpenFile(void)=0
Opens the file.