Go to the documentation of this file.
32 Foam::ensightReadFile::ensightReadFile
62 value.resize(80,
'\0');
63 iss.read(&value[0], 80);
68 value.erase(iss.gcount());
72 auto endp = value.find(
'\0');
74 if (endp != std::string::npos)
80 endp = value.find_last_not_of(
" \t\f\v\n\r");
82 if (endp != std::string::npos)
84 value.erase(endp + 1);
90 while (value.empty() && !
eof())
108 reinterpret_cast<char*
>(&ivalue),
114 stdStream() >> ivalue;
130 reinterpret_cast<char*
>(&fvalue),
138 stdStream() >> value;
ISstream & getLine(std::string &str, char delim='\n')
Raw, low-level getline (until delimiter) into a string.
A class for handling file names.
Input from file stream, using an ISstream.
bool eof() const
Return true if end of input seen.
bool read(const char *buf, int32_t &val)
Same as readInt32.
streamFormat format() const noexcept
Get the current stream format.
word format(conversionProperties.get< word >("format"))
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
streamFormat
Data format (ascii | binary)
Istream & readBinaryHeader()
Read "C Binary" for binary files (eg, geometry/measured)
virtual std::istream & stdStream()
Access to underlying std::istream.
unsigned int count(const UList< bool > &bools, const bool val=true)
Count number of 'true' entries.
virtual Istream & readKeyword(string &key)
Read element keyword.
virtual Istream & read(char *buf, std::streamsize count)
Binary read.
virtual Istream & read(token &)=0
Return next token from stream.