64 if (header != signature)
66 Info<<
"header mismatch " << signature <<
" " << is.
name()
80 os <<
"PROSTAR_" << filetype <<
nl
105 <<
"Cannot read file " << is.
name()
109 readHeader(is,
"PROSTAR_VERTEX");
120 while ((is >> lineLabel).good())
127 dynPointId.
append(lineLabel);
130 points.transfer(dynPoints);
149 os.
setf(std::ios::showpoint);
155 << pointLst[ptI].x() <<
" "
156 << pointLst[ptI].y() <<
" "
157 << pointLst[ptI].z() <<
nl;
Various functions to operate on Lists.
#define forAll(list, i)
Loop across all elements in list.
A 1D vector of objects of type <T> that resizes itself as necessary to accept the new objects.
DynamicList< T, SizeInc, SizeMult, SizeDiv > & append(const T &)
Append an element at the end of the list.
void clear()
Clear the addressed list, i.e. set the size to zero.
const fileName & name() const
Return the name of the stream.
ios_base::fmtflags setf(const ios_base::fmtflags f)
Set flags of stream.
bool good() const
Return true if next operation might succeed.
ISstream & getLine(string &, const bool continuation=true)
Read line into a string.
Input from memory buffer stream.
void transfer(List< T > &)
Transfer the contents of the argument List into this list.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
virtual void flush()=0
Flush stream.
virtual int precision() const =0
Get precision of output field.
A class for handling words, derived from string.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
void writeHeader(std::ostream &, const bool isBinary, const std::string &title)
Write header.
errorManipArg< error, int > exit(error &err, const int errNo=1)
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Ostream & endl(Ostream &os)
Add newline and flush stream.
errorManip< error > abort(error &err)
vector point
Point is a vector.