Virgil Security Crypto library  1.8.2
VirgilDataSource.h
1 
37 #ifndef VIRGIL_CRYPTO_VIRGIL_DATA_SOURCE_H
38 #define VIRGIL_CRYPTO_VIRGIL_DATA_SOURCE_H
39 
40 #include <virgil/crypto/VirgilByteArray.h>
41 
42 namespace virgil { namespace crypto {
43 
50 public:
54  virtual bool hasData() = 0;
55 
59  virtual VirgilByteArray read() = 0;
60 
61  virtual ~VirgilDataSource() throw() { }
62 };
63 
64 }}
65 
66 #endif /* VIRGIL_CRYPTO_VIRGIL_DATA_SOURCE_H */
virtual bool hasData()=0
Return true if target source still contains unread data.
Definition: VirgilAsn1Compatible.h:46
virtual VirgilByteArray read()=0
Return next portion of read data from target source.
This is base class for input streams.
Definition: VirgilDataSource.h:49