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