AWS SDK for C++
1.8.129
AWS SDK for C++
aws-cpp-sdk-core
include
aws
core
utils
event
EventEncoderStream.h
Go to the documentation of this file.
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
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
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
48
EventEncoderStream
&
WriteEvent
(
const
Aws::Utils::Event::Message
& msg);
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:57
AWS_CORE_API
#define AWS_CORE_API
Definition:
Core_EXPORTS.h:25
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::S3::Model::Event
Event
Definition:
Event.h:17
Aws::Utils::Event::EventEncoderStream
Definition:
EventEncoderStream.h:29
Aws::Utils::Event::EventEncoderStream::WriteEvent
EventEncoderStream & WriteEvent(const Aws::Utils::Event::Message &msg)
Generated by
1.8.19
Privacy |
Site terms |
Cookie preferences