Go to the documentation of this file.
42 auto cstrIter = wordConstructorTablePtr_->cfind(writeType);
44 if (!cstrIter.found())
50 *wordConstructorTablePtr_
71 fName +=
'_' + valueSets[i];
86 if (
points.hasVectorAxis())
107 writeCoord(
points, pointi, os);
125 writeCoord(
points, pointi, os);
167 valueSetPtrs[i] = &valueSets[i];
185 template<
class VSType>
192 for (
direction d=0; d<VSType::nComponents; d++)
199 os << value.component(d);
211 os << token::SPACE << token::TAB;
222 return writeVS(value, os);
233 return writeVS(value, os);
244 return writeVS(value, os);
255 return writeVS(value, os);
Functions used by OpenFOAM that are specific to POSIX compliant operating systems and need to be repl...
Ostream & writeVS(const VSType &, Ostream &) const
A class for handling words, derived from Foam::string.
A class for handling file names.
List< T > values(const HashTable< T, Key, Hash > &tbl, const bool doSort=false)
List of values from HashTable, optionally sorted.
fileName getBaseName(const coordSet &, const wordList &) const
Generates filename from coordSet and sampled fields.
virtual void write(const coordSet &, const wordList &, const List< const Field< Type > * > &, Ostream &) const =0
General entry point for writing.
virtual ~writer()=0
Destructor.
#define forAll(list, i)
Loop across all elements in list.
Generic templated field type.
#define FatalErrorInLookup(lookupTag, lookupName, lookupTable)
Report an error message using Foam::FatalError.
Holds list of sampling positions.
errorManipArg< error, int > exit(error &err, const int errNo=1)
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
void writeTable(const coordSet &, const List< Type > &, Ostream &) const
Writes single-column ascii write. Column 1 is coordSet coordinate,.
void write(vtk::formatter &fmt, const Type &val, const label n=1)
Component-wise write of a value (N times)
void writeCoord(const coordSet &, const label sampleI, Ostream &) const
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
virtual void writeSeparator(Ostream &os) const
Writes a separator. Used by write functions.
static autoPtr< writer > New(const word &writeFormat)
Return a reference to the selected writer.