Go to the documentation of this file.
42 auto* ctorPtr = wordConstructorTable(writeType);
50 *wordConstructorTablePtr_
61 const word& writeType,
65 auto* ctorPtr = dictConstructorTable(writeType);
73 *dictConstructorTablePtr_
94 fName +=
'_' + valueSets[i];
109 if (
points.hasVectorAxis())
188 valueSetPtrs[i] = &valueSets[i];
206 template<
class VSType>
213 for (
direction d=0; d<VSType::nComponents; d++)
220 os << value.component(d);
232 os << token::SPACE << token::TAB;
243 return writeVS(value,
os);
254 return writeVS(value,
os);
265 return writeVS(value,
os);
276 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.
const dictionary formatOptions
#define forAll(list, i)
Loop across all elements in list.
Generic templated field type.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
#define FatalErrorInLookup(lookupTag, lookupName, lookupTable)
Report an error message using Foam::FatalError.
OBJstream os(runTime.globalPath()/outputName)
Holds list of sampling positions.
errorManipArg< error, int > exit(error &err, const int errNo=1)
writer()
Default construct.
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.