Go to the documentation of this file.
53 virtual public std::ios,
67 virtual std::streamsize xsputn(
const char*
s, std::streamsize
n)
228 #ifdef Foam_IOstream_extras
void clear() noexcept
Reset the hashed data before appending more.
SHA1 & append(const char *str)
Append data for processing.
gmvFile<< "tracers "<< particles.size()<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().x()<< " ";}gmvFile<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().y()<< " ";}gmvFile<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.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))
constexpr IOstreamOption(streamFormat fmt=streamFormat::ASCII, compressionType comp=compressionType::UNCOMPRESSED) noexcept
Functions to compute SHA1 message digest according to the NIST specification FIPS-180-1.
virtual Ostream & writeQuoted(const std::string &str, const bool quoted=true)
Write std::string surrounded by quotes.
SHA1 & sha1()
Full access to the sha1.
streamFormat format() const noexcept
Get the current stream format.
static const versionNumber currentVersion
The current version number (2.0)
void rewind()
Deprecated(2017-07) clear the SHA1 calculation.
SHA1 & sha1()
Full access to the sha1.
Representation of a major/minor version number.
A basic output stream for calculating SHA1 digests.
OSstream(const OSstream &)=default
Copy construct.
The IOstreamOption is a simple container for options an IOstream can normally have.
Generic output stream using a standard (STL) stream.
virtual Ostream & write(const string &str)
Add (unquoted) string contents.
The output stream for calculating SHA1 digests.
versionNumber version() const noexcept
Get the stream version.
streamFormat
Data format (ascii | binary)
osha1stream()
Default construct.
SHA1Digest digest() const
Calculate digest from current data.
stream_type stream_
The output stream.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Allocator for an osha1stream.
sha1buf * rdbuf()
This hides both signatures of std::basic_ios::rdbuf()
void reset()
Clear the SHA1 calculation.
SHA1Digest digest()
Return SHA1::Digest for the data processed until now.
OSHA1streamAllocator()=default
Default construct.