Teuchos - Trilinos Tools Package Version of the Day
Loading...
Searching...
No Matches
Teuchos_XMLParameterListReader.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_XMLPARAMETERLISTREADER_H
11#define Teuchos_XMLPARAMETERLISTREADER_H
12
18#include "Teuchos_XMLObject.hpp"
19#include "Teuchos_Utils.hpp"
22
23
24namespace Teuchos {
25
26
31class TEUCHOSPARAMETERLIST_LIB_DLL_EXPORT XMLParameterListReader{
32
33public:
34
37
39 typedef std::map<ParameterEntry::ParameterEntryID,
41
43
45
46
49
51 RCP<ParameterList> toParameterList(
53
55 ParameterList toParameterList(const XMLObject& xml) const;
56
71 void setAllowsDuplicateSublists(bool policy);
72
76 bool getAllowsDuplicateSublists() const;
77
78private:
79
80 bool _allowDuplicateSublists;
81
85 void convertParameterList(const XMLObject& xml,
88
90 void convertValidators(
92
94 void convertDependencies(
96 const XMLObject& xml,
99
101 void testForDuplicateValidatorIDs(
103 const IDtoValidatorMap& currentMap) const;
104
106 void insertEntryIntoMap(
107 const XMLObject& xmlObj,
109 EntryIDsMap& entryIDsMap) const;
110
111};
112
113
114
115} // namespace Teuchos
116
117
118#endif
DataStructure keeping track of dependencies.
Templated Parameter List class.
A utilities class for Teuchos.
An object representation of a subset of XML data.
Maps Validators to integers.
A list of parameters of arbitrary type.
Smart reference counting pointer class for automatic garbage collection.
Representation of an XML data tree. XMLObject is a ref-counted handle to a XMLObjectImplem object,...
Writes an XML object to a parameter list.
std::map< ParameterEntry::ParameterEntryID, RCP< ParameterEntry > > EntryIDsMap
Convenience typedef.
The Teuchos namespace contains all of the classes, structs and enums used by Teuchos,...