Go to the documentation of this file.
38 Foam::fileFormats::edgeMeshFormat::edgeMeshFormat
73 <<
"Cannot read file " << filename
77 const fileName fName(typeFilePath<featureEdgeMesh>(io));
88 ok =
read(is, this->storedPoints(), this->storedEdges());
127 <<
"bad output stream " << os.
name()
131 os <<
"\n// points:" <<
nl << pointLst <<
nl
132 <<
"\n// edges:" <<
nl << edgeLst <<
nl;
134 IOobject::writeDivider(os);
159 io.
note() =
"written " + clock::dateTime();
167 <<
"Cannot open file for writing " << filename
172 bool ok = io.
writeHeader(os, featureEdgeMesh::typeName);
177 <<
"Cannot write header"
Defines the attributes of an object for which implicit objectRegistry management is supported,...
A class for handling file names.
Input from file stream, using an ISstream.
bool typeHeaderOk(const bool checkType=true, const bool search=true, const bool verbose=true)
Read header (uses typeFilePath to find file) and check its info.
bool readHeader(Istream &is)
Read header.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
virtual const fileName & name() const
Return the name of the stream.
virtual bool check(const char *operation) const
Check IOstream status for given operation.
errorManipArg< error, int > exit(error &err, const int errNo=1)
Output to file stream, using an OSstream.
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh >> &tdf1, const word &name, const dimensionSet &dimensions)
Global function forwards to reuseTmpDimensionedField::New.
const string & note() const
Return the optional note.
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
void write(vtk::formatter &fmt, const Type &val, const label n=1)
Component-wise write of a value (N times)
bool writeHeader(Ostream &os) const
Write header.
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
bool good() const
Return true if next operation might succeed.
Mesh data needed to do the Finite Area discretisation.