https://mooseframework.inl.gov
include
restart
FileInputStream.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
17
class
FileInputStream
:
public
InputStream
18
{
19
public
:
20
FileInputStream
(
const
std::string & filename);
21
22
virtual
std::shared_ptr<std::istream>
get
()
const
override
final
;
23
24
virtual
std::optional<std::filesystem::path>
getFilename
()
const
override
final
;
25
26
protected
:
28
const
std::filesystem::path
_filename
;
29
};
InputStream
Helper class that hands out input streams to an underlying, managed stream of arbitrary type...
Definition:
InputStream.h:22
FileInputStream::getFilename
virtual std::optional< std::filesystem::path > getFilename() const override final
Gets the underlying filename, if any.
Definition:
FileInputStream.C:35
FileInputStream::_filename
const std::filesystem::path _filename
The name of the file.
Definition:
FileInputStream.h:28
FileInputStream::FileInputStream
FileInputStream(const std::string &filename)
Definition:
FileInputStream.C:16
FileInputStream
Helper class that hands out input streams to a file.
Definition:
FileInputStream.h:17
InputStream.h
Generated on Fri Jul 18 2025 11:41:23 for https://mooseframework.inl.gov by
1.8.14