35 Foam::fileFormats::edgeMeshFormat::edgeMeshFormat
80 FatalErrorIn(
"fileFormats::edgeMeshFormat::read(const fileName&)")
81 <<
"Cannot read file " << filename
95 ok =
read(is, this->storedPoints(), this->storedEdges());
114 "fileFormats::edgeMeshFormat::read" 115 "(Istream&, pointField&, edgeList&)" 142 "fileFormats::edgeMeshFormat::write" 143 "(Ostream&, const fileName&, const edgeMesh&)" 145 <<
"bad output stream " << os.
name()
149 os <<
"\n// points:" <<
nl << pointLst <<
nl 150 <<
"\n// edges:" <<
nl << edgeLst <<
nl;
152 IOobject::writeDivider(os);
157 "edgeMeshFormat::write" 158 "(Ostream&, const pointField&, const edgeList&)" 190 io.
note() =
"written " + clock::dateTime();
199 "fileFormats::edgeMeshFormat::write" 200 "(const fileName&, const edgeMesh&)",
202 ) <<
"Cannot open file for writing " << filename
207 bool ok = io.
writeHeader(os, featureEdgeMesh::typeName);
213 "fileFormats::edgeMeshFormat::write" 214 "(const fileName&, const edgeMesh&)",
216 ) <<
"Cannot write header" 223 os.
check(
"edgeMeshFormat::write(Ostream&)");
word name() const
Return file name (part beyond last /)
fileName filePath() const
Return complete path + object name if the file exists.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
const pointField & points() const
Return points.
errorManipArg< error, int > exit(error &err, const int errNo=1)
fileName path() const
Return directory path name (part before last /)
string & note()
Return non-constant access to the optional note.
virtual bool check(const char *operation) const
Check IOstream status for given operation.
static bool read(Istream &, pointField &, edgeList &)
Read edgeMesh components from stream.
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
bool good() const
Return true if next operation might succeed.
#define FatalErrorIn(functionName)
Report an error message using Foam::FatalError.
virtual const fileName & name() const
Return the name of the stream.
Points connected by edges.
static Ostream & write(Ostream &, const pointField &, const edgeList &)
Write edgeMesh components to stream.
A class for handling file names.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
bool read(const char *, int32_t &)
bool headerOk()
Read and check header info.
bool writeHeader(Ostream &) const
Write header.
bool readHeader(Istream &)
Read header.
#define FatalIOErrorIn(functionName, ios)
Report an error message using Foam::FatalIOError.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
const edgeList & edges() const
Return edges.