69 if (!
isDir(outputDir))
74 fileName outName(outputDir/surfaceName +
"." + ext_);
78 Info<<
"Writing geometry to " << outName <<
endl;
proxySurfaceWriter(const word &ext)
Construct for a given extension.
A class for handling file names.
virtual void write(const fileName &outputDir, const fileName &surfaceName, const pointField &points, const faceList &faces) const
Write single surface geometry to file.
Ostream & endl(Ostream &os)
Add newline and flush stream.
bool isDir(const fileName &, const bool followLink=true)
Does the name exist as a directory in the file system?
A class for handling words, derived from string.
Convenience macros for instantiating writer methods for surfaceWriter classes.
virtual ~proxySurfaceWriter()
Destructor.
defineTypeNameAndDebug(combustionModel, 0)
A proxy for writing MeshedSurface, UnsortedMeshedSurface and surfMesh to various file formats...
bool mkDir(const fileName &, mode_t=0777)
Make a directory and return an error if it could not be created.
An IOstream is an abstract base class for all input/output systems; be they streams, files, token lists etc.
Base class for surface writers.