46 const word& writeType,
50 wordConstructorTable::iterator cstrIter =
51 wordConstructorTablePtr_->find(writeType);
53 if (cstrIter == wordConstructorTablePtr_->end())
62 if (cstrIter == wordConstructorTablePtr_->end())
65 <<
"Unknown write type \"" << writeType <<
"\"\n\n" 66 <<
"Valid write types : " 67 << wordConstructorTablePtr_->sortedToc() <<
nl 68 <<
"Valid proxy types : " 81 const word& writeType,
86 wordDictConstructorTable::iterator cstrIter =
87 wordDictConstructorTablePtr_->find(writeType);
89 if (cstrIter == wordDictConstructorTablePtr_->end())
93 if (optDict.
found(
"writeFormat"))
97 optDict.
lookup(
"writeFormat")
113 writeFormat_(writeFormat)
121 if (optDict.
found(
"writeFormat"))
125 optDict.
lookup(
"writeFormat")
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.
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.
static autoPtr< surfaceWriter > New(const word &writeType, const IOstream::streamFormat writeFormat)
Return a reference to the selected surfaceWriter.
Ostream & endl(Ostream &os)
Add newline and flush stream.
word format(conversionProperties.lookup("format"))
Macros for easy insertion into run-time selection tables.
virtual ~surfaceWriter()
Destructor.
IOstream::streamFormat writeFormat_
Write format.
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.
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.
surfaceWriter(const IOstream::streamFormat writeFormat)
Construct given write format.
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.