Teuchos Package Browser (Single Doxygen Collection)
Version of the Day
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
parameterlist
src
Teuchos_FileInputSource.cpp
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
#include "
Teuchos_FileInputSource.hpp
"
11
#include "
Teuchos_FileInputStream.hpp
"
12
13
using namespace
Teuchos;
14
15
16
FileInputSource::FileInputSource
(
const
std::string&
filename
)
17
:
XMLInputSource
(), filename_(filename)
18
{;}
19
20
RCP<XMLInputStream>
FileInputSource::stream
()
const
21
{
22
return
rcp
(
new
FileInputStream
(
filename_
),
true
);
23
}
24
Teuchos::XMLInputSource
XMLInputSource represents a source of XML input that can be parsed to produce an XMLObject.
Definition:
Teuchos_XMLInputSource.hpp:39
Teuchos::FileInputSource::FileInputSource
FileInputSource(const std::string &filename)
Constructor.
Definition:
Teuchos_FileInputSource.cpp:16
filename
std::string filename
Definition:
ParameterList_XMLDuplicateSublists.cpp:18
Teuchos::rcp
TEUCHOS_DEPRECATED RCP< T > rcp(T *p, Dealloc_T dealloc, bool owns_mem)
Deprecated.
Definition:
Teuchos_RCPDecl.hpp:1234
Teuchos::FileInputSource::stream
virtual RCP< XMLInputStream > stream() const
Create a FileInputStream.
Definition:
Teuchos_FileInputSource.cpp:20
Teuchos::FileInputSource::filename_
std::string filename_
Definition:
Teuchos_FileInputSource.hpp:39
Teuchos_FileInputStream.hpp
Definition of XMLInputStream derived class for reading XML from a file.
Teuchos::RCP
Smart reference counting pointer class for automatic garbage collection.
Definition:
Teuchos_RCPDecl.hpp:397
Teuchos_FileInputSource.hpp
Definition of XMLInputSource derived class for reading XML from a file.
Teuchos::FileInputStream
Instantiation of XMLInputStream class for reading an entire document from a file. ...
Definition:
Teuchos_FileInputStream.hpp:29
Generated on Fri Dec 20 2024 09:21:22 for Teuchos Package Browser (Single Doxygen Collection) by
1.8.5