AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
EventEncoderStream.h
1
6#include <aws/core/Core_EXPORTS.h>
7#include <aws/core/utils/stream/ConcurrentStreamBuf.h>
8#include <aws/core/utils/event/EventMessage.h>
9#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
10#include <aws/core/utils/event/EventStreamEncoder.h>
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
28 class AWS_CORE_API EventEncoderStream : public Aws::IOStream
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.SetEofInput(this); }
62
67 bool WaitForDrain(int64_t timeoutMs = 1000);
68
69 private:
71 EventStreamEncoder m_encoder;
72 };
73 }
74 }
75}
bool WaitForDrain(int64_t timeoutMs=1000)
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
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition AWSString.h:97