Go to the documentation of this file.
59 return this->getBaseName(
points, valueSetNames) +
".agr";
74 <<
"@ title \"" <<
points.name() <<
'"' <<
nl
75 <<
"@ xaxis label " <<
'"' <<
points.axis() <<
'"' <<
nl;
79 os <<
"@ s" << i <<
" legend " <<
'"'
80 << valueSetNames[i] <<
'"' <<
nl
81 <<
"@target G0.S" << i <<
nl;
83 this->writeTable(
points, *valueSets[i], os);
93 const bool writeTracks,
100 if (valueSets.size() != valueSetNames.size())
103 <<
"Number of variables:" << valueSetNames.size() <<
endl
104 <<
"Number of valueSets:" << valueSets.size()
107 if (trackPoints.size() > 0)
111 <<
"@ title \"" << trackPoints[0].name() <<
'"' <<
nl
112 <<
"@ xaxis label " <<
'"' << trackPoints[0].axis() <<
'"' <<
nl;
117 forAll(trackPoints, trackI)
121 os <<
"@ s" << sI <<
" legend " <<
'"'
122 << valueSetNames[i] <<
"_track" << i <<
'"' <<
nl
123 <<
"@target G0.S" << sI <<
nl;
124 this->writeTable(trackPoints[trackI], valueSets[i][trackI], os);
xmgraceSetWriter()
Construct null.
A class for handling file names.
virtual void write(const coordSet &, const wordList &, const List< const Field< Type > * > &, Ostream &) const
General entry point for writing.
Ostream & endl(Ostream &os)
Add newline and flush stream.
#define forAll(list, i)
Loop across all elements in list.
Generic templated field type.
A list of pointers to objects of type <T>, with allocation/deallocation management of the pointers....
virtual ~xmgraceSetWriter()
Destructor.
virtual fileName getFileName(const coordSet &, const wordList &) const
Generate file name with correct extension.
Base class for graphics format writing. Entry points are.
Holds list of sampling positions.
errorManipArg< error, int > exit(error &err, const int errNo=1)
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...