64 return read(unzipName, unzipName.
ext());
68 return read(name, ext);
99 writefileExtensionMemberFunctionTable::iterator mfIter =
100 writefileExtensionMemberFunctionTablePtr_->find(ext);
102 if (mfIter == writefileExtensionMemberFunctionTablePtr_->end())
105 <<
"Unknown file extension " << ext <<
nl <<
nl 106 <<
"Valid types are :" <<
endl 107 << writefileExtensionMemberFunctionTablePtr_->sortedToc()
132 os.
check(
"Ostream& operator<<(Ostream&, const edgeMesh&)");
142 em.pointEdgesPtr_.clear();
145 is.
check(
"Istream& operator>>(Istream&, edgeMesh&)");
void transfer(edgeMesh &)
Transfer the contents of the argument and annul the argument.
A class for handling file names.
Ostream & indent(Ostream &os)
Indent stream.
errorManipArg< error, int > exit(error &err, const int errNo=1)
bool read(const fileName &, const word &ext)
Read from file. Chooses reader based on explicit extension.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
static autoPtr< edgeMesh > New(const fileName &, const word &ext)
Select constructed from filename (explicit extension)
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
void size(const label)
Override size to be inconsistent with allocated storage.
virtual bool check(const char *operation) const
Check IOstream status for given operation.
Ostream & endl(Ostream &os)
Add newline and flush stream.
A bounding box defined in terms of the points at its extremities.
edgeMesh()
Construct null.
const pointField & points() const
Return points.
bool read(const char *, int32_t &)
A class for handling words, derived from string.
Istream & operator>>(Istream &, directionInfo &)
virtual void writeStats(Ostream &) const
An Ostream is an abstract base class for all output systems (streams, files, token lists...
Points connected by edges.
fileName lessExt() const
Return file name without extension (part before last .)
word name(const complex &)
Return a string representation of a complex.
Ostream & operator<<(Ostream &, const ensightPart &)
word ext() const
Return file name extension (part after last .)
const edgeList & edges() const
Return edges.
static void write(const fileName &, const edgeMesh &)
Write to file.
#define InfoInFunction
Report an information message using Foam::Info.