73 <<
"Cannot read file " << filename
84 ok =
io.readHeader(is);
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;
169 <<
"Cannot open file for writing " << filename
174 bool ok =
io.writeHeader(
os, featureEdgeMesh::typeName);
179 <<
"Cannot write header"
Input from file stream as an ISstream, normally using std::ifstream for the actual input.
@ NO_REGISTER
Do not request registration (bool: false).
@ NO_READ
Nothing to be read.
@ NO_WRITE
Ignore writing from objectRegistry::writeObject().
Defines the attributes of an object for which implicit objectRegistry management is supported,...
static Ostream & writeDivider(Ostream &os)
Write the standard file section divider.
A simple container for options an IOstream can normally have.
bool good() const noexcept
True if next operation might succeed.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
Output to file stream as an OSstream, normally using std::ofstream for the actual output.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
static autoPtr< Time > New()
Construct (dummy) Time - no functionObjects or libraries.
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
static std::string dateTime()
The current wall-clock date/time (in local time) as a string in ISO-8601 format (yyyy-mm-ddThh:mm:ss)...
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Mesh data needed to do the Finite Area discretisation.
pointField & storedPoints() noexcept
Non-const access to global points.
edgeMesh(const faMesh &mesh)
Construct finite-area edge mesh faMesh reference.
edgeList & storedEdges() noexcept
Non-const access to the edges.
A class for handling file names.
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
OBJstream os(runTime.globalPath()/outputName)
List< edge > edgeList
List of edge.
bool read(const char *buf, int32_t &val)
Same as readInt32.
IOerror FatalIOError
Error stream (stdout output on all processes), with additional 'FOAM FATAL IO ERROR' header text and ...
error FatalError
Error stream (stdout output on all processes), with additional 'FOAM FATAL ERROR' header text and sta...
vectorField pointField
pointField is a vectorField.
errorManipArg< error, int > exit(error &err, const int errNo=1)
constexpr char nl
The newline '\n' character (0x0a).