Teuchos - Trilinos Tools Package
Version of the Day
Toggle main menu visibility
Loading...
Searching...
No Matches
parameterlist
src
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
16
17
#include "
Teuchos_ParameterList.hpp
"
18
#include "
Teuchos_XMLObject.hpp
"
19
#include "
Teuchos_Utils.hpp
"
20
#include "
Teuchos_DependencySheet.hpp
"
21
#include "
Teuchos_ValidatorMaps.hpp
"
22
23
24
namespace
Teuchos
{
25
26
31
class
TEUCHOSPARAMETERLIST_LIB_DLL_EXPORT
XMLParameterListReader
{
32
33
public
:
34
37
39
typedef
std::map<
ParameterEntry::ParameterEntryID
,
40
RCP<ParameterEntry>
>
EntryIDsMap
;
41
43
45
46
47
XMLParameterListReader
();
49
51
RCP<ParameterList>
toParameterList
(
52
const
XMLObject
& xml,
RCP<DependencySheet>
depSheet)
const
;
53
55
ParameterList
toParameterList
(
const
XMLObject
& xml)
const
;
56
71
void
setAllowsDuplicateSublists
(
bool
policy);
72
76
bool
getAllowsDuplicateSublists
()
const
;
77
78
private
:
79
80
bool
_allowDuplicateSublists;
81
85
void
convertParameterList(
const
XMLObject
& xml,
86
RCP<ParameterList>
parentList,
87
EntryIDsMap
& entryIDsMap,
const
IDtoValidatorMap
& validatorIDsMap)
const
;
88
90
void
convertValidators(
91
const
XMLObject
& xml,
IDtoValidatorMap
& validatorIDsMap)
const
;
92
94
void
convertDependencies(
95
RCP<DependencySheet>
depSheet,
96
const
XMLObject
& xml,
97
const
EntryIDsMap
& entryIDsMap,
98
const
IDtoValidatorMap
& validatorIDsMap)
const
;
99
101
void
testForDuplicateValidatorIDs(
102
ParameterEntryValidator::ValidatorID
potentialNewID,
103
const
IDtoValidatorMap
& currentMap)
const
;
104
106
void
insertEntryIntoMap(
107
const
XMLObject
& xmlObj,
108
RCP<ParameterEntry>
entryToInsert,
109
EntryIDsMap
& entryIDsMap)
const
;
110
111
};
112
113
114
115
}
// namespace Teuchos
116
117
118
#endif
Teuchos_DependencySheet.hpp
DataStructure keeping track of dependencies.
Teuchos_ParameterList.hpp
Templated Parameter List class.
Teuchos_Utils.hpp
A utilities class for Teuchos.
Teuchos_ValidatorMaps.hpp
Teuchos_XMLObject.hpp
An object representation of a subset of XML data.
Teuchos::IDtoValidatorMap
Maps Validators to integers.
Definition
Teuchos_ValidatorMaps.hpp:24
Teuchos::ParameterEntry::ParameterEntryID
unsigned int ParameterEntryID
Definition
Teuchos_ParameterEntry.hpp:42
Teuchos::ParameterEntryValidator::ValidatorID
unsigned int ValidatorID
Definition
Teuchos_ParameterEntryValidator.hpp:39
Teuchos::ParameterList
A list of parameters of arbitrary type.
Definition
Teuchos_ParameterList.hpp:101
Teuchos::RCP
Smart reference counting pointer class for automatic garbage collection.
Definition
Teuchos_RCPDecl.hpp:397
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::getAllowsDuplicateSublists
bool getAllowsDuplicateSublists() const
Specifies the current policy regarding duplicated sublists. See setAllowsDuplicateSublists() for more...
Definition
Teuchos_XMLParameterListReader.cpp:25
Teuchos::XMLParameterListReader::setAllowsDuplicateSublists
void setAllowsDuplicateSublists(bool policy)
Set policy regarding duplicated sublists.
Definition
Teuchos_XMLParameterListReader.cpp:28
Teuchos::XMLParameterListReader::toParameterList
RCP< ParameterList > toParameterList(const XMLObject &xml, RCP< DependencySheet > depSheet) const
Definition
Teuchos_XMLParameterListReader.cpp:31
Teuchos::XMLParameterListReader::EntryIDsMap
std::map< ParameterEntry::ParameterEntryID, RCP< ParameterEntry > > EntryIDsMap
Convenience typedef.
Definition
Teuchos_XMLParameterListReader.hpp:40
Teuchos::XMLParameterListReader::XMLParameterListReader
XMLParameterListReader()
Definition
Teuchos_XMLParameterListReader.cpp:21
Teuchos
The Teuchos namespace contains all of the classes, structs and enums used by Teuchos,...
Generated by
1.17.0