AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
EventEncoderStream.h
Go to the documentation of this file.
1
11
12namespace Aws
13{
14 namespace Client
15 {
16 class AWSAuthSigner;
17 }
18
19 namespace Utils
20 {
21 namespace Event
22 {
23 extern AWS_CORE_API const size_t DEFAULT_BUF_SIZE;
24
29 {
30 public:
31
36 explicit EventEncoderStream(size_t bufferSize = DEFAULT_BUF_SIZE);
37
43 void SetSignatureSeed(const Aws::String& seed) { m_encoder.SetSignatureSeed(seed); }
44
49
53 void SetSigner(Aws::Client::AWSAuthSigner* signer) { m_encoder.SetSigner(signer); }
54
61 void Close() { m_streambuf.SetEof(); setstate(eofbit); }
62
63 private:
65 EventStreamEncoder m_encoder;
66 };
67 }
68 }
69}
#define AWS_CORE_API
Definition: Core_EXPORTS.h:26
void SetSigner(Aws::Client::AWSAuthSigner *signer)
void SetSignatureSeed(const Aws::String &seed)
EventEncoderStream(size_t bufferSize=DEFAULT_BUF_SIZE)
EventEncoderStream & WriteEvent(const Aws::Utils::Event::Message &msg)
AWS_CORE_API const size_t DEFAULT_BUF_SIZE
std::basic_iostream< char, std::char_traits< char > > IOStream
Definition: AWSStreamFwd.h:22
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97