Helper IO class to read and write particle positions. More...
#include <lagrangian/IOPosition.H>
Helper IO class to read and write particle positions.
Definition at line 50 of file IOPosition.H.
Public Member Functions | |
virtual const word & | type () const |
Runtime type name information. Use cloud type.
| |
IOPosition (const Cloud< ParticleType > &) | |
Construct from cloud.
| |
virtual void | readData (Cloud< ParticleType > &c, bool checkClass) |
virtual bool | write () const |
Write using setting from DB.
| |
virtual bool | writeData (Ostream &os) const |
Pure virtual writaData function.
|
IOPosition | ( | const Cloud< ParticleType > & | c ) |
Construct from cloud.
Definition at line 32 of file IOPosition.C.
virtual const word& type | ( | ) | const [inline, virtual]
|
Runtime type name information. Use cloud type.
Definition at line 66 of file IOPosition.H.
void readData | ( | Cloud< ParticleType > & | c, |
bool | checkClass | ||
) | [virtual]
|
Definition at line 91 of file IOPosition.C.
References DLListBase::append(), IOstream::check(), Foam::exit(), Foam::FatalIOError, FatalIOErrorIn, token::info(), token::isLabel(), token::isPunctuation(), token::labelToken(), token::pToken(), Istream::putBack(), Istream::readBeginList(), and Istream::readEndList().
bool write | ( | ) | const [virtual]
|
Write using setting from DB.
Reimplemented from regIOobject.
Definition at line 54 of file IOPosition.C.
Referenced by Particle< ParticleType >::writeFields().
bool writeData | ( | Ostream & | ) | const [virtual]
|
Pure virtual writaData function.
Must be defined in derived types
Implements regIOobject.
Definition at line 68 of file IOPosition.C.
References Foam::endl(), forAllConstIter, IOstream::good(), and Foam::nl.