AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
SimpleStringStream.h
1
6#pragma once
7
8#include <aws/core/Core_EXPORTS.h>
9
10#include <aws/core/utils/stream/SimpleStreamBuf.h>
11
12#include <iostream>
13
14namespace Aws
15{
16
17class AWS_CORE_API SimpleStringStream : public std::iostream
18{
19 public:
20
21 using char_type = char;
22 using traits_type = std::char_traits<char>;
24 using int_type = int;
25 using pos_type = std::streampos;
26 using off_type = std::streamoff;
27
28 using base = std::iostream;
29
32
34
35 // disabling copies of course
38
39 // also disabling moves until there's a valid need
42
43 Aws::Utils::Stream::SimpleStreamBuf* rdbuf() const { return const_cast<Aws::Utils::Stream::SimpleStreamBuf*>(&m_streamBuffer); }
44
45 Aws::String str() const { return m_streamBuffer.str(); }
46 void str(const Aws::String& value);
47
48 private:
49
51};
52
53class AWS_CORE_API SimpleIStringStream : public std::istream
54{
55 public:
56
57 using char_type = char;
58 using traits_type = std::char_traits<char>;
60 using int_type = int;
61 using pos_type = std::streampos;
62 using off_type = std::streamoff;
63
64 using base = std::istream;
65
68
70
71 // disabling copies of course
74
75 // also disabling moves until there's a valid need
78
79 Aws::Utils::Stream::SimpleStreamBuf* rdbuf() const { return const_cast<Aws::Utils::Stream::SimpleStreamBuf*>(&m_streamBuffer); }
80
81 Aws::String str() const { return m_streamBuffer.str(); }
82 void str(const Aws::String& value);
83
84 private:
85
87};
88
89class AWS_CORE_API SimpleOStringStream : public std::ostream
90{
91 public:
92
93 using char_type = char;
94 using traits_type = std::char_traits<char>;
96 using int_type = int;
97 using pos_type = std::streampos;
98 using off_type = std::streamoff;
99
100 using base = std::ostream;
101
104
106
107 // disabling copies of course
110
111 // also disabling moves until there's a valid need
114
115 Aws::Utils::Stream::SimpleStreamBuf* rdbuf() const { return const_cast<Aws::Utils::Stream::SimpleStreamBuf*>(&m_streamBuffer); }
116
117 Aws::String str() const { return m_streamBuffer.str(); }
118 void str(const Aws::String& value);
119
120 private:
121
123};
124
125} // namespace Aws
126
std::char_traits< char > traits_type
void str(const Aws::String &value)
SimpleIStringStream & operator=(const SimpleIStringStream &rhs)=delete
Aws::Allocator< char > allocator_type
SimpleIStringStream(const SimpleIStringStream &rhs)=delete
SimpleIStringStream & operator=(SimpleIStringStream &&rhs)=delete
SimpleIStringStream(SimpleIStringStream &&rhs)=delete
Aws::Utils::Stream::SimpleStreamBuf * rdbuf() const
SimpleIStringStream(const Aws::String &value)
std::char_traits< char > traits_type
SimpleOStringStream(SimpleOStringStream &&rhs)=delete
SimpleOStringStream & operator=(SimpleOStringStream &&rhs)=delete
SimpleOStringStream & operator=(const SimpleOStringStream &rhs)=delete
void str(const Aws::String &value)
Aws::Utils::Stream::SimpleStreamBuf * rdbuf() const
SimpleOStringStream(const SimpleOStringStream &rhs)=delete
Aws::Allocator< char > allocator_type
SimpleOStringStream(const Aws::String &value)
SimpleStringStream & operator=(SimpleStringStream &&rhs)=delete
Aws::Utils::Stream::SimpleStreamBuf * rdbuf() const
SimpleStringStream & operator=(const SimpleStringStream &rhs)=delete
std::char_traits< char > traits_type
void str(const Aws::String &value)
Aws::String str() const
SimpleStringStream(const SimpleStringStream &rhs)=delete
Aws::Allocator< char > allocator_type
SimpleStringStream(const Aws::String &value)
SimpleStringStream(SimpleStringStream &&rhs)=delete
std::allocator< T > Allocator
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition AWSString.h:97