Teuchos - Trilinos Tools Package Version of the Day
Loading...
Searching...
No Matches
Teuchos_FileInputSource.hpp
Go to the documentation of this file.
1// @HEADER
2// *****************************************************************************
3// Teuchos: Common Tools Package
4//
5// Copyright 2004 NTESS and the Teuchos contributors.
6// SPDX-License-Identifier: BSD-3-Clause
7// *****************************************************************************
8// @HEADER
9
10#ifndef Teuchos_FILEINPUTSOURCE_H
11#define Teuchos_FILEINPUTSOURCE_H
12
19
20
21namespace Teuchos
22{
26 class TEUCHOSPARAMETERLIST_LIB_DLL_EXPORT FileInputSource : public XMLInputSource
27 {
28 public:
30 FileInputSource(const std::string& filename);
31
33 virtual ~FileInputSource(){;}
34
36 virtual RCP<XMLInputStream> stream() const;
37
38 private:
39 std::string filename_;
40 };
41
42}
43#endif
44
Teuchos header file which uses auto-configuration information to include necessary C++ headers.
A base class for defining a source of XML input.
Instantiation of XMLInputSource class for reading XML from a file.
virtual ~FileInputSource()
Destructor.
Smart reference counting pointer class for automatic garbage collection.
XMLInputSource represents a source of XML input that can be parsed to produce an XMLObject.
The Teuchos namespace contains all of the classes, structs and enums used by Teuchos,...