Virgil Security Crypto library  2.6.3
VirgilStreamDataSink.h
1 
37 #ifndef VIRGIL_CRYPTO_VIRGIL_STREAM_DATA_SINK_H
38 #define VIRGIL_CRYPTO_VIRGIL_STREAM_DATA_SINK_H
39 
40 #include <ostream>
41 
42 #include "../VirgilDataSink.h"
43 
44 namespace virgil { namespace crypto { namespace stream {
45 
52 public:
56  explicit VirgilStreamDataSink(std::ostream& out);
57 
61  virtual ~VirgilStreamDataSink() noexcept;
62 
66  virtual bool isGood();
67 
71  virtual void write(const virgil::crypto::VirgilByteArray& data);
72 
73 private:
74  std::ostream& out_;
75 };
76 
77 }}}
78 
79 #endif /* VIRGIL_CRYPTO_VIRGIL_STREAM_DATA_SINK_H */
C++ stream implementation of the VirgilDataSink class.
Definition: VirgilStreamDataSink.h:51
virtual ~VirgilStreamDataSink() noexcept
Polymorphic destructor.
virtual void write(const virgil::crypto::VirgilByteArray &data)
Overriding of VirgilDataSink::write() method.
This is base class for output streams.
Definition: VirgilDataSink.h:49
Root namespace for all Virgil Security libraries.
Definition: VirgilAsn1Compatible.h:46
std::vector< unsigned char > VirgilByteArray
This type represents a sequence of bytes.
Definition: VirgilByteArray.h:50
VirgilStreamDataSink(std::ostream &out)
Creates data sink based on std::ostream object.
virtual bool isGood()
Overriding of VirgilDataSink::isGood() method.