The output stream for calculating SHA1 digests. More...
#include <OpenFOAM/OSHA1stream.H>
The output stream for calculating SHA1 digests.
An output stream for calculating SHA1 digests.
Definition at line 134 of file OSHA1stream.H.
Public Member Functions | |
OSHA1stream (streamFormat format=ASCII, versionNumber version=currentVersion) | |
Construct and set stream status. | |
~OSHA1stream () | |
Foam::SHA1 & | sha1 () |
Full access to the sha1. | |
Foam::SHA1Digest | digest () |
Return SHA1::Digest for the data processed until now. | |
void | rewind () |
Clear the SHA1 calculation. | |
![]() | |
OSstream (ostream &os, const string &name, streamFormat format=ASCII, versionNumber version=currentVersion, compressionType compression=UNCOMPRESSED) | |
Set stream status. | |
virtual const fileName & | name () const |
Return the name of the stream. | |
virtual fileName & | name () |
Return non-const access to the name of the stream. | |
virtual ios_base::fmtflags | flags () const |
Return flags of output stream. | |
virtual Ostream & | write (const token &) |
Write next token to stream. | |
virtual Ostream & | write (const char) |
Write character. | |
virtual Ostream & | write (const char *) |
Write character string. | |
virtual Ostream & | write (const word &) |
Write word. | |
virtual Ostream & | write (const string &) |
Write string. | |
virtual Ostream & | writeQuoted (const std::string &, const bool quoted=true) |
Write std::string surrounded by quotes. | |
virtual Ostream & | write (const label) |
Write label. | |
virtual Ostream & | write (const floatScalar) |
Write floatScalar. | |
virtual Ostream & | write (const doubleScalar) |
Write doubleScalar. | |
virtual Ostream & | write (const char *, std::streamsize) |
Write binary block. | |
virtual void | indent () |
Add indentation characters. | |
virtual ios_base::fmtflags | flags (const ios_base::fmtflags flags) |
Set flags of output stream. | |
virtual void | flush () |
Flush stream. | |
virtual void | endl () |
Add newline and flush stream. | |
virtual int | width () const |
Get width of output field. | |
virtual int | width (const int) |
Set width of output field (and return old width) | |
virtual int | precision () const |
Get precision of output field. | |
virtual int | precision (const int) |
Set precision of output field (and return old precision) | |
virtual void | print (Ostream &) const |
Print description of IOstream to Ostream. | |
![]() | |
Ostream (streamFormat format=ASCII, versionNumber version=currentVersion, compressionType compression=UNCOMPRESSED) | |
Set stream status. | |
virtual | ~Ostream () |
Destructor. | |
virtual Ostream & | write (const keyType &) |
Write keyType. | |
unsigned short | indentLevel () const |
Return indent level. | |
unsigned short & | indentLevel () |
Access to indent level. | |
void | incrIndent () |
Incrememt the indent level. | |
void | decrIndent () |
Decrememt the indent level. | |
Ostream & | writeKeyword (const keyType &) |
Write the keyword followed by an appropriate indentation. | |
Ostream & | operator() () const |
Return a non-const reference to const Ostream. | |
![]() | |
IOstream (streamFormat format, versionNumber version, compressionType compression=UNCOMPRESSED) | |
Construct setting format and version. | |
virtual | ~IOstream () |
virtual bool | check (const char *operation) const |
Check IOstream status for given operation. | |
void | fatalCheck (const char *operation) const |
Check IOstream status for given operation. | |
bool | opened () const |
Return true if stream has been opened. | |
bool | closed () const |
Return true if stream is closed. | |
bool | good () const |
Return true if next operation might succeed. | |
bool | eof () const |
Return true if end of input seen. | |
bool | fail () const |
Return true if next operation will fail. | |
bool | bad () const |
Return true if stream is corrupted. | |
operator void * () const | |
Return non-zero if the stream has not failed. | |
bool | operator! () const |
Return true if the stream has failed. | |
streamFormat | format () const |
Return current stream format. | |
streamFormat | format (const streamFormat fmt) |
Set the stream format. | |
streamFormat | format (const word &fmt) |
Set the stream format from word. | |
versionNumber | version () const |
Return the stream version. | |
versionNumber | version (const versionNumber ver) |
Set the stream version. | |
compressionType | compression () const |
Return the stream compression. | |
compressionType | compression (const compressionType cmp) |
Set the stream compression. | |
compressionType | compression (const word &cmp) |
Set the stream compression from word. | |
label | lineNumber () const |
Return current stream line number. | |
label & | lineNumber () |
Return current stream line number. | |
label | lineNumber (const label ln) |
Set the stream line number. | |
void | setEof () |
Set stream to have reached eof. | |
void | setFail () |
Set stream to have failed. | |
void | setBad () |
Set stream to be bad. | |
virtual ios::fmtflags | flags (const ios::fmtflags f)=0 |
Set flags of stream. | |
ios::fmtflags | setf (const ios::fmtflags f) |
Set flags of stream. | |
ios::fmtflags | setf (const ios::fmtflags f, const ios::fmtflags mask) |
Set flags of given field of stream. | |
void | unsetf (const ios::fmtflags uf) |
Unset flags of stream. | |
void | print (Ostream &, const int streamState) const |
Check given stream state bits. | |
InfoProxy< IOstream > | info () const |
Return info proxy. |
Additional Inherited Members | |
![]() | |
ostream & | stream () |
Return the stream reference. | |
const ostream & | stream () const |
Return the const stream reference. |
|
inline |
Construct and set stream status.
Definition at line 153 of file OSHA1stream.H.
|
inline |
Definition at line 170 of file OSHA1stream.H.
References OSstream::stream().
|
inline |
Full access to the sha1.
Definition at line 181 of file OSHA1stream.H.
References OSstream::stream().
Referenced by OSHA1stream::digest(), and OSHA1stream::rewind().
|
inline |
Return SHA1::Digest for the data processed until now.
Definition at line 187 of file OSHA1stream.H.
References SHA1::digest(), and OSHA1stream::sha1().
Referenced by dictionary::digest().
|
inline |
Clear the SHA1 calculation.
Definition at line 195 of file OSHA1stream.H.
References SHA1::clear(), and OSHA1stream::sha1().