void Foam::MeshedSurfaceProxy<Face>::write ( const fileName& name, const MeshedSurfaceProxy& surf ) { if (debug) { Info<< "MeshedSurfaceProxy::write" "(const fileName&, const MeshedSurfaceProxy&) : " "writing to " << name << endl; } word ext = name.ext(); typename writefileExtensionMemberFunctionTable::iterator mfIter = writefileExtensionMemberFunctionTablePtr_->find(ext); if (mfIter == writefileExtensionMemberFunctionTablePtr_->end()) { FatalErrorIn ( "MeshedSurfaceProxy::write(const fileName&)" ) << "Unknown file extension " << ext << nl << nl << "Valid types are :" << endl << writeTypes() << exit(FatalError); } mfIter()(name, surf); }
bool Foam::MeshedSurfaceProxy<Face>::canWriteType ( const word& ext, const bool verbose ) { return checkSupport(writeTypes(), ext, verbose, "writing"); }
bool Foam::edgeMesh::canWriteType ( const word& ext, const bool verbose ) { return checkSupport ( writeTypes(), ext, verbose, "writing" ); }
bool Foam::extendedEdgeMesh::canWriteType ( const word& ext, const bool verbose ) { return edgeMeshFormatsCore::checkSupport ( writeTypes(), ext, verbose, "writing" ); }
bool Foam::UnsortedMeshedSurface<Face>::canWriteType ( const word& ext, const bool verbose ) { return fileFormats::surfaceFormatsCore::checkSupport ( writeTypes(), ext, verbose, "writing" ); }
void DimBuilder::writeOutput(std::ostream& out) { writeHeader(out); out << "\n"; writeIds(out); out << "\n"; writeDescriptions(out); out << "\n"; writeNameToId(out); out << "\n"; writeIdToName(out); out << "\n"; writeTypes(out); out << "\n"; writeFooter(out); }
void Foam::UnsortedMeshedSurface<Face>::write ( const fileName& name, const UnsortedMeshedSurface<Face>& surf ) { if (debug) { Info<< "UnsortedMeshedSurface::write" "(const fileName&, const UnsortedMeshedSurface&) : " "writing to " << name << endl; } const word ext = name.ext(); typename writefileExtensionMemberFunctionTable::iterator mfIter = writefileExtensionMemberFunctionTablePtr_->find(ext); if (mfIter == writefileExtensionMemberFunctionTablePtr_->end()) { // no direct writer, delegate to proxy if possible wordHashSet supported = ProxyType::writeTypes(); if (supported.found(ext)) { MeshedSurfaceProxy<Face>(surf).write(name); } else { FatalErrorIn ( "UnsortedMeshedSurface::write" "(const fileName&, const UnsortedMeshedSurface&)" ) << "Unknown file extension " << ext << nl << nl << "Valid types are :" << endl << (supported | writeTypes()) << exit(FatalError); } } else { mfIter()(name, surf); } }