35 #ifndef surfaceWriter_H
36 #define surfaceWriter_H
84 (writeFormat, writeCompression)
104 const word& writeType,
112 const word& writeType,
144 const bool writePointValues
159 const bool writePointValues
176 (field##Type##Values)
223 template<
class ... Args>
230 const bool writePointValues,
235 #define DeclareFieldTypeValues(Type, nullArg) \
236 UPtrList<const Field<Type>> field##Type##Values;
238 #undef DeclareFieldTypeValues
244 , field##Type##Values
259 , field##Type##Values
streamFormat
Enumeration for the format of data in the stream.
compressionType
Enumeration for the format of data in the stream.
A templated 1D list of pointers to objects of type <T>, where the size of the array is known and used...
A templated 1D list of pointers to objects of type <T>, where the size of the array is known and used...
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
A list of keyword definitions, which are a keyword followed by any number of values (e....
A class for handling file names.
static void unpackTypeValueSets(wordList &valueSetNames #define TypeValueSetsNonConstArg(Type, nullArg))
Helper for variadic write.
Base class for surface writers.
virtual ~surfaceWriter()
Destructor.
IOstream::streamFormat writeFormat_
Write format.
surfaceWriter(const IOstream::streamFormat writeFormat, const IOstream::compressionType writeCompression)
Construct given write options.
virtual void write(const fileName &outputDir, const fileName &surfaceName, const pointField &points, const faceList &faces, const wordList &fieldNames, const bool writePointValues #define FieldTypeValuesConstArg(Type, nullArg)) const =0
Write fields for a single surface to file.
IOstream::compressionType writeCompression_
Write compression.
static autoPtr< surfaceWriter > New(const word &writeType, const IOstream::streamFormat writeFormat, const IOstream::compressionType writeCompression)
Select given write options.
declareRunTimeSelectionTable(autoPtr, surfaceWriter, word,(const IOstream::streamFormat writeFormat, const IOstream::compressionType writeCompression),(writeFormat, writeCompression))
TypeName("surfaceWriter")
Runtime type information.
A class for handling words, derived from string.
static List< word > fieldNames
List< word > wordList
A List of words.
FOR_ALL_FIELD_TYPES(makeFieldSourceTypedef)
Macros to ease declaration of run-time selection tables.
Foam::argList args(argc, argv)
#define FieldTypeValuesConstArg(Type, nullArg)
#define FieldTypeValuesParameter(Type, nullArg)
#define DeclareFieldTypeValues(Type, nullArg)
Basic run-time type information using word as the type's name. Used to enhance the standard RTTI to c...