Go to the documentation of this file.
57 return this->getBaseName(
points, valueSetNames) +
".agr";
72 <<
"@ title \"" <<
points.name() <<
'"' <<
nl
73 <<
"@ xaxis label " <<
'"' <<
points.axis() <<
'"' <<
nl;
77 os <<
"@ s" << i <<
" legend " <<
'"'
78 << valueSetNames[i] <<
'"' <<
nl
79 <<
"@target G0.S" << i <<
nl;
81 this->writeTable(
points, *valueSets[i], os);
91 const bool writeTracks,
98 if (valueSets.size() != valueSetNames.
size())
101 <<
"Number of variables:" << valueSetNames.
size() <<
endl
102 <<
"Number of valueSets:" << valueSets.size()
105 if (trackPoints.
size() > 0)
109 <<
"@ title \"" << trackPoints[0].name() <<
'"' <<
nl
110 <<
"@ xaxis label " <<
'"' << trackPoints[0].axis() <<
'"' <<
nl;
115 forAll(trackPoints, trackI)
119 os <<
"@ s" << sI <<
" legend " <<
'"'
120 << valueSetNames[i] <<
"_track" << i <<
'"' <<
nl
121 <<
"@target G0.S" << sI <<
nl;
122 this->writeTable(trackPoints[trackI], valueSets[i][trackI], os);
xmgraceSetWriter()
Construct null.
A class for handling file names.
#define forAll(list, i)
Loop across all elements in list.
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.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
A templated 1D list of pointers to objects of type <T>, where the size of the array is known and used...
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.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
label size() const
Return the number of elements in the PtrList.
void size(const label)
Override size to be inconsistent with allocated storage.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...