37 std::ostringstream buf;
63 <<
"wrong token type - expected int32_t, found " << t.
info()
70 is.
check(
"Istream& operator>>(Istream&, int32_t&)");
87 char *endptr =
nullptr;
89 intmax_t l = strtoimax(buf, &endptr, 10);
92 (*endptr == 0) && (errno == 0)
93 && (l >= INT32_MIN) && (l <= INT32_MAX);
100 os.
check(
"Ostream& operator<<(Ostream&, const int32_t)");
105 #if WM_ARCH_OPTION == 32
108 return operator>>(is,
reinterpret_cast<int32_t&
>(i));
Useful combination of include files which define Sin, Sout and Serr and the use of IO streams general...
virtual bool check(const char *operation) const
Check IOstream status for given operation.
void setBad()
Set stream to be bad.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
virtual Ostream & write(const char)=0
Write character.
A token holds items read from Istream.
int32_t integer32Token() const
InfoProxy< token > info() const
Return info proxy.
A class for handling words, derived from string.
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
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.name(), cloud::prefix, mesh, IOobject::MUST_READ, IOobject::NO_WRITE))
Istream & operator>>(Istream &is, volFieldValue::Result< Type > &result)
errorManipArg< error, int > exit(error &err, const int errNo=1)
bool read(const char *, int32_t &)
word name(const bool)
Return a word representation of a bool.
int32_t readInt32(Istream &)
Istream & operator>>(Istream &, pistonPointEdgeData &)
Ostream & operator<<(Ostream &os, const fvConstraints &constraints)