79 <<
"Cannot read file " << filename
94 ok =
read(is, this->storedPoints(), this->storedEdges());
136 <<
"bad output stream " << os.
name()
140 os <<
"\n// points:" <<
nl << pointLst <<
nl
141 <<
"\n// edges:" <<
nl << edgeLst <<
nl;
148 "edgeMeshFormat::write"
149 "(Ostream&, const pointField&, const edgeList&)"
189 ) <<
"Cannot open file for writing " << filename
194 bool ok = io.
writeHeader(os, featureEdgeMesh::typeName);
201 ) <<
"Cannot write header"
208 os.
check(
"edgeMeshFormat::write(Ostream&)");
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
string & note()
Return non-constant access to the optional note.
static Stream & writeDivider(Stream &os)
Write the standard file section divider.
bool readHeader(Istream &)
Read header.
bool writeHeader(Ostream &) const
Write header.
virtual bool check(const char *operation) const
Check IOstream status for given operation.
virtual const fileName & name() const
Return the name of the stream.
bool good() const
Return true if next operation might succeed.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
static string dateTime()
Return the current wall-clock date/time as a string.
Points connected by edges.
const edgeList & edges() const
Return edges.
const pointField & points() const
Return points.
A class for handling file names.
word name() const
Return file name (part beyond last /)
fileName path() const
Return directory path name (part before last /)
Templated form of IOobject providing type information for file reading and header type checking.
bool headerOk()
Read header (uses typeGlobalFile to find file) and check.
fileName filePath() const
Return the path for the file for this Type.
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
void write(std::ostream &os, const bool binary, List< floatScalar > &fField)
Write floats ascii or binary.
errorManipArg< error, int > exit(error &err, const int errNo=1)
bool read(const char *, int32_t &)