49 writeFormat_(writeFormat),
50 writeCompression_(writeCompression)
58 dict.
found(
"writeFormat")
64 dict.
found(
"writeCompression")
76 const word& writeType,
81 wordConstructorTable::iterator cstrIter =
82 wordConstructorTablePtr_->find(writeType);
84 if (cstrIter == wordConstructorTablePtr_->end())
93 if (cstrIter == wordConstructorTablePtr_->end())
96 <<
"Unknown write type \"" << writeType <<
"\"\n\n" 97 <<
"Valid write types : " 98 << wordConstructorTablePtr_->sortedToc() <<
nl 99 <<
"Valid proxy types : " 112 const word& writeType,
117 dictConstructorTable::iterator cstrIter =
118 dictConstructorTablePtr_->find(writeType);
120 if (cstrIter == dictConstructorTablePtr_->end())
123 dict.
found(
"writeFormat")
128 dict.
found(
"writeCompression")
bool found(const word &, bool recursive=false, bool patternMatch=true) const
Search dictionary for given keyword.
static streamFormat formatEnum(const word &)
Return stream format of given format name.
static compressionType compressionEnum(const word &)
Return compression of given compression name.
errorManipArg< error, int > exit(error &err, const int errNo=1)
A list of keyword definitions, which are a keyword followed by any number of values (e...
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
Ostream & endl(Ostream &os)
Add newline and flush stream.
Macros for easy insertion into run-time selection tables.
virtual ~surfaceWriter()
Destructor.
surfaceWriter(const IOstream::streamFormat writeFormat, const IOstream::compressionType writeCompression)
Construct given write options.
stressControl lookup("compactNormalStress") >> compactNormalStress
A class for handling words, derived from string.
A surfaceWriter that writes the geometry via the MeshedSurfaceProxy, but which does not support any f...
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.
compressionType
Enumeration for the format of data in the stream.
defineRunTimeSelectionTable(reactionRateFlameArea, dictionary)
defineTypeNameAndDebug(combustionModel, 0)
A proxy for writing MeshedSurface, UnsortedMeshedSurface and surfMesh to various file formats...
An IOstream is an abstract base class for all input/output systems; be they streams, files, token lists etc.
static wordHashSet writeTypes()
The file format types that can be written via MeshedSurfaceProxy.
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.