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