AWS SDK for C++  1.9.153
AWS SDK for C++
EventEncoderStream.h
Go to the documentation of this file.
1 
11 
12 namespace 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:
64  Stream::ConcurrentStreamBuf m_streambuf;
65  EventStreamEncoder m_encoder;
66  };
67  }
68  }
69 }
Aws::IOStream
std::basic_iostream< char, std::char_traits< char > > IOStream
Definition: AWSStreamFwd.h:22
Aws::DirectoryService::Model::LDAPSType::NOT_SET
@ NOT_SET
Aws::Utils::Event::EventStreamEncoder
Definition: EventStreamEncoder.h:29
Aws::Client::AWSAuthSigner
Definition: AWSAuthSigner.h:66
AWS_CORE_API
#define AWS_CORE_API
Definition: Core_EXPORTS.h:25
Aws::IoTWireless::Model::Event
Event
Definition: Event.h:17
ConcurrentStreamBuf.h
AWSStreamFwd.h
EventStreamEncoder.h
EventMessage.h
Aws::Utils::Event::DEFAULT_BUF_SIZE
AWS_CORE_API const size_t DEFAULT_BUF_SIZE
Definition: EventEncoderStream.h:23
Aws::Utils::Event::EventEncoderStream::SetSignatureSeed
void SetSignatureSeed(const Aws::String &seed)
Definition: EventEncoderStream.h:43
Aws::Utils::Event::EventEncoderStream::SetSigner
void SetSigner(Aws::Client::AWSAuthSigner *signer)
Definition: EventEncoderStream.h:53
Aws::Utils::Stream::ConcurrentStreamBuf
Definition: ConcurrentStreamBuf.h:30
Aws::Utils::Event::EventEncoderStream::EventEncoderStream
EventEncoderStream(size_t bufferSize=DEFAULT_BUF_SIZE)
Aws::Utils::Event::Message
Definition: EventMessage.h:30
Core_EXPORTS.h
Aws::Utils::Event::EventEncoderStream::Close
void Close()
Definition: EventEncoderStream.h:61
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Utils::Event::EventEncoderStream
Definition: EventEncoderStream.h:29
Aws::Utils::Event::EventEncoderStream::WriteEvent
EventEncoderStream & WriteEvent(const Aws::Utils::Event::Message &msg)