47 if (separateSegments_)
63 separateSegments_(
true)
70 separateSegments_(true)
91 #undef TypeValueSetsConstArg
94 if (!
isDir(outputDir))
101 outputDir/setName +
".xy",
107 separateSegments_ =
set.segments() !=
identity(
set.size());
114 os << oss.
str().c_str();
rawSetWriter(const IOstream::streamFormat writeFormat, const IOstream::compressionType writeCompression)
Construct given write options.
A class for handling file names.
#define TypeValueSetsConstArg(Type, nullArg)
A list of keyword definitions, which are a keyword followed by any number of values (e...
void writeTableHeader(const coordSet &set, const wordList &valueSetNames, #define TypeValueSetsConstArg(Type, nullArg) Ostream &os, const bool align=false, const unsigned long alignPad=0) const
Write multi-column table header.
IOstream::compressionType writeCompression_
Write compression.
Base class for writing coordinate sets with data.
virtual void writeSegmentSeparator(Ostream &os) const
Write a segment separator.
labelList identity(const label len)
Create identity map (map[i] == i) of given length.
virtual void writeValueSeparator(Ostream &os) const
Write a value separator.
Macros for easy insertion into run-time selection tables.
void writeTable(const coordSet &set, #define TypeValueSetsConstArg(Type, nullArg) Ostream &os, const bool align=false) const
Write multi-column table of data.
Functions used by OpenFOAM that are specific to POSIX compliant operating systems and need to be repl...
Holds list of sampling positions.
Pre-declare SubField and related Field type.
bool isDir(const fileName &, const bool followLink=true)
Does the name exist as a directory in the file system?
streamFormat
Enumeration for the format of data in the stream.
virtual void write(const fileName &outputDir, const fileName &setName, const coordSet &set, const wordList &valueSetNames #define TypeValueSetsConstArg(Type, nullArg)) const
Write a coordSet and associated data.
A templated 1D list of pointers to objects of type <T>, where the size of the array is known and used...
compressionType
Enumeration for the format of data in the stream.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
addToRunTimeSelectionTable(ensightPart, ensightPartCells, istream)
defineTypeNameAndDebug(combustionModel, 0)
bool mkDir(const fileName &, mode_t=0777)
Make a directory and return an error if it could not be created.
static const versionNumber currentVersion
Current version number.
string str() const
Return the string.
FOR_ALL_FIELD_TYPES(DefineFvWallInfoType)
Output to memory buffer stream.
#define TypeValueSetsParameter(Type, nullArg)
virtual ~rawSetWriter()
Destructor.