Go to the documentation of this file.
73 const std::streamsize
count(this->size());
103 return writeChars(
os, this->cdata(), std::streamsize(this->size()));
113 const label len = list.
size();
119 is.
fatalCheck(
"UList<char>::readList(Istream&) : reading first token");
121 if (tok.isCompound())
130 tok.transferCompoundToken(is)
134 const label inputLen = elems.size();
140 <<
"incorrect length for UList. Read "
141 << inputLen <<
" expected " << len
145 this->deepCopy(elems);
151 const label inputLen = tok.labelToken();
157 <<
"incorrect length for UList. Read "
158 << inputLen <<
" expected " << len
169 is.
read(list.
data(), std::streamsize(len));
175 "UList<char>::readList(Istream&) : "
176 "reading binary block"
183 <<
"incorrect first token, expected <int>, found "
static Ostream & writeChars(Ostream &os, const char *chars, std::streamsize count)
bool isLabel() const noexcept
A class for handling words, derived from Foam::string.
Ostream & writeList(Ostream &os, const label shortLen=0) const
bool fatalCheck(const char *operation) const
streamFormat format() const noexcept
A token holds an item read from Istream.
virtual Ostream & write(const char c)
InfoProxy< token > info() const
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
void transfer(List< T > &list)
virtual bool check(const char *operation) const
OBJstream os(runTime.globalPath()/outputName)
compound & transferCompoundToken()
void writeEntry(Ostream &os) const
errorManipArg< error, int > exit(error &err, const int errNo=1)
Istream & readList(Istream &is)
unsigned int count(const UList< bool > &bools, const bool val=true)
To & dynamicCast(From &r)
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
bool isCompound() const noexcept
#define FatalIOErrorInFunction(ios)
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
virtual Istream & read(token &)=0