AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ResponseStream.h
1
6#pragma once
7
8#include <aws/core/Core_EXPORTS.h>
9#include <aws/core/utils/memory/AWSMemory.h>
10#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
11
12namespace Aws
13{
14 namespace Utils
15 {
16 namespace Stream
17 {
21 class AWS_CORE_API ResponseStream
22 {
23 public:
39 ResponseStream(IOStream* underlyingStreamToManage);
42
48
53
54 private:
55 void ReleaseStream();
56 void RegisterStream();
57 void DeregisterStream();
58
59 Aws::IOStream* m_underlyingStream = nullptr;
60
61 static const int xindex;
62 static void StreamCallback(Aws::IOStream::event evt, std::ios_base& str, int idx);
63 };
64
68 class AWS_CORE_API DefaultUnderlyingStream : public Aws::IOStream
69 {
70 public:
72
76 };
77
79
80 } //namespace Stream
81 } //namespace Utils
82} //namespace Aws
DefaultUnderlyingStream(Aws::UniquePtr< std::streambuf > buf)
ResponseStream & operator=(ResponseStream &&)
ResponseStream(IOStream *underlyingStreamToManage)
Aws::IOStream & GetUnderlyingStream() const
ResponseStream & operator=(const ResponseStream &)=delete
ResponseStream(const Aws::IOStreamFactory &factory)
ResponseStream(const ResponseStream &)=delete
AWS_CORE_API Aws::IOStream * DefaultResponseStreamFactoryMethod()
std::basic_iostream< char, std::char_traits< char > > IOStream
std::function< Aws::IOStream *(void) > IOStreamFactory
std::unique_ptr< T, D > UniquePtr
Definition AWSMemory.h:255