80 virtual std::streamsize
xsputn(
const char*
s, std::streamsize
n)
110 virtual public std::ios,
169 "OSHA1stream.sinkFile_",
static const versionNumber currentVersion
Current version number.
streamFormat format() const
Return current stream format.
streamFormat
Enumeration for the format of data in the stream.
versionNumber version() const
Return the stream version.
A Foam::OSstream for calculating SHA-1 digests.
OSHA1stream(streamFormat format=ASCII, versionNumber version=currentVersion)
Construct and set stream status.
SHA1Digest digest()
Return the SHA-1 digest for the data processed until now.
~OSHA1stream()
Destructor.
void rewind()
Clear the SHA1 calculation.
SHA1 & sha1()
Return the SHA-1.
void operator=(const OSHA1stream &)=delete
Disallow default bitwise assignment.
virtual ostream & stdStream()
Access to underlying std::ostream.
Functions to compute SHA1 message digest according to the NIST specification FIPS-180-1.
SHA1 & append(const char *data, size_t len)
Append data for processing.
void clear()
Reset the hashed data before appending more.
SHA1Digest digest() const
Calculate current digest from appended data.
sha1streambuf * rdbuf()
Return the stream buffer.
osha1stream()
Construct null.
SHA1 & sha1()
Return the SHA-1.
sha1streambuf()
Construct null.
virtual int overflow(int c=EOF)
Writes c to the current position of the put pointer (pptr),.
SHA1 & sha1()
Return the SHA-1.
virtual std::streamsize xsputn(const char *s, std::streamsize n)
Writes characters from the array pointed to by s.
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))
const dimensionedScalar c
Speed of light in a vacuum.