Go to the documentation of this file.
32 template<
class LListBase,
class T>
36 is.
fatalCheck(
"operator>>(Istream&, ILList<LListBase, T>&)");
42 "operator>>(Istream&, ILList<LListBase, T>&) : reading first token"
54 if (delimiter == token::BEGIN_LIST)
58 this->append(iNew(is).ptr());
62 "operator>>(Istream&, ILList<LListBase, T>&) : "
69 T* tPtr = iNew(is).ptr();
74 "operator>>(Istream&, ILList<LListBase, T>&) : "
80 this->append(
new T(*tPtr));
90 if (firstToken.
pToken() != token::BEGIN_LIST)
95 ) <<
"incorrect first token, '(', found " << firstToken.
info()
100 is.
fatalCheck(
"operator>>(Istream&, ILList<LListBase, T>&)");
106 && lastToken.
pToken() == token::END_LIST
111 this->append(iNew(is).ptr());
114 is.
fatalCheck(
"operator>>(Istream&, ILList<LListBase, T>&)");
120 <<
"incorrect first token, expected <int> or '(', found "
125 is.
fatalCheck(
"operator>>(Istream&, ILList<LListBase, T>&)");
129 template<
class LListBase,
class T>
133 this->
read(is, iNew);
137 template<
class LListBase,
class T>
146 template<
class LListBase,
class T>
150 L.
read(is, INew<T>());
void fatalCheck(const char *operation) const
Check IOstream status for given operation.
char readBeginList(const char *funcName)
bool read(const char *, int32_t &)
char readEndList(const char *funcName)
A token holds items read from Istream.
void read(Istream &, const INew &)
Read from Istream using given Istream constructor class.
A helper class when constructing from an Istream or dictionary.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
InfoProxy< token > info() const
Return info proxy.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
punctuationToken pToken() const
gmvFile<< "tracers "<< particles.size()<< nl;forAllConstIter(Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().position().x()<< " ";}gmvFile<< nl;forAllConstIter(Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().position().y()<< " ";}gmvFile<< nl;forAllConstIter(Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().position().z()<< " ";}gmvFile<< nl;forAll(lagrangianScalarNames, i){ word name=lagrangianScalarNames[i];IOField< scalar > s(IOobject(name, runTime.timeName(), cloud::prefix, mesh, IOobject::MUST_READ, IOobject::NO_WRITE))
errorManipArg< error, int > exit(error &err, const int errNo=1)
void putBack(const token &)
Put back token.
Istream & operator>>(Istream &, edgeMesh &)
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
bool isPunctuation() const
virtual Istream & read(token &)=0
Return next token from stream.