https://mooseframework.inl.gov
Loading...
Searching...
No Matches
include
restart
StringInputStream.h
Go to the documentation of this file.
1
//* This file is part of the MOOSE framework
2
//* https://mooseframework.inl.gov
3
//*
4
//* All rights reserved, see COPYRIGHT for full restrictions
5
//* https://github.com/idaholab/moose/blob/master/COPYRIGHT
6
//*
7
//* Licensed under LGPL 2.1, please see LICENSE for details
8
//* https://www.gnu.org/licenses/lgpl-2.1.html
9
10
#pragma once
11
12
#include "
InputStream.h
"
13
14
#include <sstream>
15
19
class
StringInputStream
:
public
InputStream
20
{
21
public
:
22
StringInputStream
(std::unique_ptr<std::stringstream> stream);
23
24
virtual
std::shared_ptr<std::istream>
get
()
const
override
final
;
25
33
std::unique_ptr<std::stringstream>
release
();
34
35
private
:
37
std::unique_ptr<std::stringstream>
_stream
;
38
};
InputStream.h
InputStream
Helper class that hands out input streams to an underlying, managed stream of arbitrary type.
Definition
InputStream.h:23
StringInputStream
Helper class that hands out input streams to a stringstream.
Definition
StringInputStream.h:20
StringInputStream::_stream
std::unique_ptr< std::stringstream > _stream
The underlying stringstream.
Definition
StringInputStream.h:37
StringInputStream::get
virtual std::shared_ptr< std::istream > get() const override final
Gets an input stream to the underlying stream.
Definition
StringInputStream.C:20
StringInputStream::release
std::unique_ptr< std::stringstream > release()
Releases the owned stringstream.
Definition
StringInputStream.C:30
Generated on Fri Aug 21 2026 13:33:51 for https://mooseframework.inl.gov by
1.9.8