39 std::ostringstream buf;
65 <<
"wrong token type - expected int32_t, found " << t.
info()
72 is.
check(
"Istream& operator>>(Istream&, int32_t&)");
91 intmax_t l = strtoimax(buf, &endptr, 10);
94 (*endptr == 0) && (errno == 0)
95 && (l >= INT32_MIN) && (l <= INT32_MAX);
102 os.
check(
"Ostream& operator<<(Ostream&, const int32_t)");
107 #if WM_ARCH_OPTION == 32 110 return operator>>(is, reinterpret_cast<int32_t&>(i));
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 ))
int32_t readInt32(Istream &)
word name(const complex &)
Return a string representation of a complex.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
A class for handling words, derived from string.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
errorManipArg< error, int > exit(error &err, const int errNo=1)
Ostream & operator<<(Ostream &, const edgeMesh &)
virtual bool check(const char *operation) const
Check IOstream status for given operation.
Useful combination of include files which define Sin, Sout and Serr and the use of IO streams general...
InfoProxy< token > info() const
Return info proxy.
virtual Ostream & write(const token &)=0
Write next token to stream.
A token holds items read from Istream.
void setBad()
Set stream to be bad.
Istream & operator>>(Istream &, edgeMesh &)
An Ostream is an abstract base class for all output systems (streams, files, token lists...
bool read(const char *, int32_t &)
#define FatalIOErrorIn(functionName, ios)
Report an error message using Foam::FatalIOError.