35 #ifndef Foam_OSHA1stream_H 36 #define Foam_OSHA1stream_H 53 virtual public std::ios,
67 virtual int overflow(
int c = EOF)
74 virtual std::streamsize xsputn(
const char*
s, std::streamsize
n)
133 class OSHA1streamAllocator
235 #ifdef Foam_IOstream_extras OSHA1streamAllocator()=default
Default construct.
Generic output stream using a standard (STL) stream.
SHA1 & sha1() noexcept
Full access to the sha1.
void clear() noexcept
Reset the hashed data before appending more.
A basic output stream for calculating SHA1 digests.
A simple container for options an IOstream can normally have.
The output stream for calculating SHA1 digests.
void rewind()
Deprecated(2017-07) clear the SHA1 calculation.
constexpr IOstreamOption(streamFormat fmt=streamFormat::ASCII, compressionType comp=compressionType::UNCOMPRESSED) noexcept
Default construct (ASCII, UNCOMPRESSED, currentVersion) or construct with format, compression...
void reset()
Clear the SHA1 calculation.
virtual Ostream & write(const string &str)
Add (unquoted) string contents.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
virtual Ostream & writeQuoted(const std::string &str, const bool quoted=true)
Write std::string surrounded by quotes.
SHA1Digest digest()
Return SHA1::Digest for the data processed until now.
Allocator for an osha1stream.
const dimensionedScalar c
Speed of light in a vacuum.
void append(char c)
Append single character.
versionNumber version() const noexcept
Get the stream version.
streamFormat
Data format (ascii | binary)
Functions to compute SHA1 message digest according to the NIST specification FIPS-180-1.
osha1stream()
Default construct.
stream_type stream_
The output stream.
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))
streamFormat format() const noexcept
Get the current stream format.
SHA1Digest digest() const
Calculate digest from current data.
SHA1 & sha1() noexcept
Full access to the sha1.
sha1buf * rdbuf()
This hides both signatures of std::basic_ios::rdbuf()