35 #ifndef surfaceWriter_H 36 #define surfaceWriter_H 84 (writeFormat, writeCompression)
104 const word& writeType,
112 const word& writeType,
144 const bool writePointValues
148 #undef FieldTypeValuesConstArg
159 const bool writePointValues
163 #undef FieldTypeValuesConstArg
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
A class for handling file names.
#define FieldTypeValuesParameter(Type, nullArg)
IOstream::compressionType writeCompression_
Write compression.
A list of keyword definitions, which are a keyword followed by any number of values (e...
#define FieldTypeValuesConstArg(Type, nullArg)
static void unpackTypeValueSets(wordList &valueSetNames #define TypeValueSetsNonConstArg(Type, nullArg))
Helper for variadic write.
virtual ~surfaceWriter()
Destructor.
static List< word > fieldNames
IOstream::streamFormat writeFormat_
Write format.
surfaceWriter(const IOstream::streamFormat writeFormat, const IOstream::compressionType writeCompression)
Construct given write options.
A class for handling words, derived from string.
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.
streamFormat
Enumeration for the format of data in the stream.
static autoPtr< surfaceWriter > New(const word &writeType, const IOstream::streamFormat writeFormat, const IOstream::compressionType writeCompression)
Select given write options.
A templated 1D list of pointers to objects of type <T>, where the size of the array is known and used...
#define DeclareFieldTypeValues(Type, nullArg)
compressionType
Enumeration for the format of data in the stream.
TypeName("surfaceWriter")
Runtime type information.
List< word > wordList
A List of words.
A templated 1D list of pointers to objects of type <T>, where the size of the array is known and used...
FOR_ALL_FIELD_TYPES(DefineFvWallInfoType)
Base class for surface writers.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
Macros to ease declaration of run-time selection tables.
Foam::argList args(argc, argv)
declareRunTimeSelectionTable(autoPtr, surfaceWriter, word,(const IOstream::streamFormat writeFormat, const IOstream::compressionType writeCompression),(writeFormat, writeCompression))