Go to the documentation of this file.
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);
143 writeHeader(os,
"VERTEX");
149 os.
setf(std::ios::showpoint);
155 << pointLst[ptI].x() <<
" "
156 << pointLst[ptI].y() <<
" "
157 << pointLst[ptI].z() <<
nl;
const fileName & name() const
Return the name of the stream.
A class for handling words, derived from string.
#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.
Xfer< List< T > > xfer()
Transfer contents to the Xfer container.
void transfer(List< T > &)
Transfer the contents of the argument List into this list.
Ostream & endl(Ostream &os)
Add newline and flush stream.
virtual int precision() const =0
Get precision of output field.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Pre-declare SubField and related Field type.
ISstream & getLine(string &)
Raw, low-level getline into a string function.
void clear()
Clear the addressed list, i.e. set the size to zero.
Input from memory buffer stream.
errorManip< error > abort(error &err)
virtual void flush()=0
Flush stream.
DynamicList< T, SizeInc, SizeMult, SizeDiv > & append(const T &)
Append an element at the end of the list.
errorManipArg< error, int > exit(error &err, const int errNo=1)
ios_base::fmtflags setf(const ios_base::fmtflags f)
Set flags of stream.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
Various functions to operate on Lists.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
vector point
Point is a vector.
bool good() const
Return true if next operation might succeed.