1/*
2 * Copyright 2010-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15
16#include <aws/core/utils/memory/stl/SimpleStringStream.h>
17
18namespace Aws
19{
20
21SimpleStringStream::SimpleStringStream() :
22 base(&m_streamBuffer),
23 m_streamBuffer()
24{
25}
26
27SimpleStringStream::SimpleStringStream(const Aws::String& value) :
28 base(&m_streamBuffer),
29 m_streamBuffer(value)
30{
31}
32
33void SimpleStringStream::str(const Aws::String& value)
34{
35 m_streamBuffer.str(value);
36}
37
38//
39
40SimpleIStringStream::SimpleIStringStream() :
41 base(&m_streamBuffer),
42 m_streamBuffer()
43{
44}
45
46SimpleIStringStream::SimpleIStringStream(const Aws::String& value) :
47 base(&m_streamBuffer),
48 m_streamBuffer(value)
49{
50}
51
52void SimpleIStringStream::str(const Aws::String& value)
53{
54 m_streamBuffer.str(value);
55}
56
57//
58
59SimpleOStringStream::SimpleOStringStream() :
60 base(&m_streamBuffer),
61 m_streamBuffer()
62{
63}
64
65SimpleOStringStream::SimpleOStringStream(const Aws::String& value) :
66 base(&m_streamBuffer),
67 m_streamBuffer(value)
68{
69}
70
71void SimpleOStringStream::str(const Aws::String& value)
72{
73 m_streamBuffer.str(value);
74}
75
76} // namespace Aws
77