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