49 writeFormat_(writeFormat),
50 writeCompression_(writeCompression)
65 ?
IOstream::compressionEnum(
dict.lookup(
"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())
Macros for easy insertion into run-time selection tables.
An IOstream is an abstract base class for all input/output systems; be they streams,...
streamFormat
Enumeration for the format of data in the stream.
static streamFormat formatEnum(const word &)
Return stream format of given format name.
compressionType
Enumeration for the format of data in the stream.
static compressionType compressionEnum(const word &)
Return compression of given compression name.
A proxy for writing MeshedSurface, UnsortedMeshedSurface and surfMesh to various file formats.
static wordHashSet writeTypes()
The file format types that can be written via MeshedSurfaceProxy.
A list of keyword definitions, which are a keyword followed by any number of values (e....
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.
bool found(const word &, bool recursive=false, bool patternMatch=true) const
Search dictionary for given keyword.
A surfaceWriter that writes the geometry via the MeshedSurfaceProxy, but which does not support any f...
Base class for surface writers.
virtual ~surfaceWriter()
Destructor.
surfaceWriter(const IOstream::streamFormat writeFormat, const IOstream::compressionType writeCompression)
Construct given write options.
static autoPtr< surfaceWriter > New(const word &writeType, const IOstream::streamFormat writeFormat, const IOstream::compressionType writeCompression)
Select given write options.
A class for handling words, derived from string.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
errorManipArg< error, int > exit(error &err, const int errNo=1)
defineRunTimeSelectionTable(reactionRateFlameArea, dictionary)
Ostream & endl(Ostream &os)
Add newline and flush stream.
defineTypeNameAndDebug(combustionModel, 0)