Teuchos - Trilinos Tools Package
Version of the Day
Toggle main menu visibility
Loading...
Searching...
No Matches
parameterlist
src
Teuchos_ParameterXMLFileReader.cpp
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_ParameterXMLFileReader.hpp"
11
#include "
Teuchos_XMLParameterListReader.hpp
"
12
#include "Teuchos_Assert.hpp"
13
14
15
namespace
Teuchos
{
16
17
18
ParameterXMLFileReader::ParameterXMLFileReader
(
const
std::string& filename)
19
: fis_(filename)
20
{;}
21
22
23
ParameterList
ParameterXMLFileReader::getParameters()
const
24
{
25
XMLParameterListReader
paramReader;
26
XMLObject
xml = fis_.
getObject
();
27
28
return
paramReader.
toParameterList
(xml);
29
}
30
31
32
}
// namespace Teuchos
Teuchos_XMLParameterListReader.hpp
Writes an XML object to a parameter list.
Teuchos::ParameterList
A list of parameters of arbitrary type.
Definition
Teuchos_ParameterList.hpp:101
Teuchos::ParameterXMLFileReader::ParameterXMLFileReader
ParameterXMLFileReader(const std::string &filename)
Constructor.
Definition
Teuchos_ParameterXMLFileReader.cpp:18
Teuchos::XMLInputSource::getObject
XMLObject getObject() const
Get an object by invoking the TreeBuildingXMLHandler on the input data.
Definition
Teuchos_XMLInputSource.cpp:23
Teuchos::XMLObject
Representation of an XML data tree. XMLObject is a ref-counted handle to a XMLObjectImplem object,...
Definition
Teuchos_XMLObject.hpp:30
Teuchos::XMLParameterListReader
Writes an XML object to a parameter list.
Definition
Teuchos_XMLParameterListReader.hpp:31
Teuchos::XMLParameterListReader::toParameterList
RCP< ParameterList > toParameterList(const XMLObject &xml, RCP< DependencySheet > depSheet) const
Definition
Teuchos_XMLParameterListReader.cpp:31
Teuchos
The Teuchos namespace contains all of the classes, structs and enums used by Teuchos,...
Generated by
1.17.0