Go to the documentation of this file.
56 return this->getBaseName(
points, valueSetNames) +
".csv";
69 writeHeader(
points,valueSetNames,os);
76 columns[i] = valueSets[i];
79 this->writeTable(
points, columns, os);
86 const bool writeTracks,
93 writeHeader(
points[0],valueSetNames,os);
95 if (valueSets.size() != valueSetNames.
size())
98 <<
"Number of variables:" << valueSetNames.
size() <<
endl
99 <<
"Number of valueSets:" << valueSets.size()
110 columns[i] = &valueSets[i][trackI];
113 this->writeTable(
points[trackI], columns, os);
137 writeCoordHeader(
points, os);
145 os << valueSetNames[i];
161 writeCoordHeader(
points, os);
165 for (
label j=0; j<Type::nComponents; j++)
171 os << valueSetNames[i] <<
"_" << j;
186 if (
points.hasVectorAxis())
virtual void write(const coordSet &, const wordList &, const List< const Field< Type > * > &, Ostream &) const
General entry point for writing.
A class for handling file names.
virtual fileName getFileName(const coordSet &, const wordList &) const
Generate file name with correct extension.
#define forAll(list, i)
Loop across all elements in list.
Ostream & endl(Ostream &os)
Add newline and flush stream.
virtual ~csvSetWriter()
Destructor.
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...
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...
void writeHeader(const coordSet &, const wordList &, Ostream &) const
csvSetWriter()
Construct null.
virtual void writeSeparator(Ostream &) const
Writes a separator. Used by write functions.
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,...
void writeCoordHeader(const coordSet &, Ostream &) const