81 <<
"Cannot read file " << filename
85 const fileName fName(typeFilePath<featureEdgeMesh>(io));
96 ok =
read(is, this->storedPoints(), this->storedEdges());
138 <<
"bad output stream " << os.
name()
142 os <<
"\n// points:" <<
nl << pointLst <<
nl 143 <<
"\n// edges:" <<
nl << edgeLst <<
nl;
145 IOobject::writeDivider(os);
150 "edgeMeshFormat::write" 151 "(Ostream&, const pointField&, const edgeList&)" 183 io.
note() =
"written " + clock::dateTime();
193 ) <<
"Cannot open file for writing " << filename
198 bool ok = io.
writeHeader(os, featureEdgeMesh::typeName);
205 ) <<
"Cannot write header" 212 os.
check(
"edgeMeshFormat::write(Ostream&)");
bool typeHeaderOk(const bool checkType=true)
Read header (uses typeFilePath to find file) and check header.
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.
virtual bool check(const char *operation) const
Check IOstream status for given operation.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
bool good() const
Return true if next operation might succeed.
bool readHeader(Istream &)
Read header.
string & note()
Return non-constant access to the optional note.
virtual const fileName & name() const
Return the name of the stream.
const edgeList & edges() const
Return edges.
word name() const
Return file name (part beyond last /)
void write(std::ostream &os, const bool binary, List< floatScalar > &fField)
Write floats ascii or binary.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
const pointField & points() const
Return points.
Points connected by edges.
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
bool writeHeader(Ostream &) const
Write header.
fileName path() const
Return directory path name (part before last /)
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...