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
21
22
23ParameterList ParameterXMLFileReader::getParameters() const
24{
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.
Smart reference counting pointer class for automatic garbage collection.
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.
The Teuchos namespace contains all of the classes, structs and enums used by Teuchos,...