Teuchos - Trilinos Tools Package
Version of the Day
Toggle main menu visibility
Loading...
Searching...
No Matches
parameterlist
src
Teuchos_XMLParameterListWriter.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_XMLPARAMETERLISTWRITER_H
11
#define Teuchos_XMLPARAMETERLISTWRITER_H
12
13
18
19
#include "
Teuchos_ParameterList.hpp
"
20
#include "
Teuchos_XMLObject.hpp
"
21
#include "
Teuchos_Utils.hpp
"
22
#include "
Teuchos_DependencySheet.hpp
"
23
#include "
Teuchos_ValidatorMaps.hpp
"
24
25
26
namespace
Teuchos
{
27
28
32
class
TEUCHOSPARAMETERLIST_LIB_DLL_EXPORT
XMLParameterListWriter
{
33
34
public
:
35
38
40
typedef
std::map<RCP<const ParameterEntry>,
41
ParameterEntry::ParameterEntryID
,
RCPConstComp
>
EntryIDsMap
;
42
44
46
47
48
XMLParameterListWriter
();
50
52
XMLObject
toXML
(
53
const
ParameterList
& p,
54
RCP<const DependencySheet>
depSheet = null)
const
;
55
57
static
const
std::string&
getParameterListTagName
(){
58
static
const
std::string parameterListTagName =
"ParameterList"
;
59
return
parameterListTagName;
60
}
61
63
static
const
std::string&
getNameAttributeName
(){
64
static
const
std::string nameAttributeName =
"name"
;
65
return
nameAttributeName;
66
}
67
69
static
const
std::string&
getValidatorsTagName
(){
70
static
const
std::string validatorsTagName =
"Validators"
;
71
return
validatorsTagName;
72
}
73
75
static
const
std::string&
getDependenciesTagName
(){
76
static
const
std::string dependenciesTagName =
"Dependencies"
;
77
return
dependenciesTagName;
78
}
79
80
private
:
81
83
XMLObject
convertParameterList(
84
const
ParameterList
& p,
85
ParameterEntry::ParameterEntryID
& idCounter,
86
EntryIDsMap& entryIDsMap,
87
const
ValidatortoIDMap
& validatorIDsMap)
const
;
88
90
XMLObject
convertValidators(
91
const
ParameterList
& p,
92
ValidatortoIDMap
& validatorIDsMap)
const
;
93
95
XMLObject
convertDependencies(
96
RCP<const DependencySheet>
depSheet,
97
const
EntryIDsMap& entryIDsMap,
98
ValidatortoIDMap
& validatorIDsMap)
const
;
99
101
void
buildInitialValidatorMap(
102
const
ParameterList
& p,
103
ValidatortoIDMap
& validatorIDsMap)
const
;
104
};
105
106
107
}
// namespace teuchos
108
109
110
#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::ParameterEntry::ParameterEntryID
unsigned int ParameterEntryID
Definition
Teuchos_ParameterEntry.hpp:42
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::ValidatortoIDMap
A class for mapping validators to integers.
Definition
Teuchos_ValidatorMaps.hpp:71
Teuchos::XMLObject
Representation of an XML data tree. XMLObject is a ref-counted handle to a XMLObjectImplem object,...
Definition
Teuchos_XMLObject.hpp:30
Teuchos::XMLParameterListWriter::EntryIDsMap
std::map< RCP< const ParameterEntry >, ParameterEntry::ParameterEntryID, RCPConstComp > EntryIDsMap
Definition
Teuchos_XMLParameterListWriter.hpp:41
Teuchos::XMLParameterListWriter::XMLParameterListWriter
XMLParameterListWriter()
Definition
Teuchos_XMLParameterListWriter.cpp:20
Teuchos::XMLParameterListWriter::getDependenciesTagName
static const std::string & getDependenciesTagName()
Definition
Teuchos_XMLParameterListWriter.hpp:75
Teuchos::XMLParameterListWriter::getValidatorsTagName
static const std::string & getValidatorsTagName()
Definition
Teuchos_XMLParameterListWriter.hpp:69
Teuchos::XMLParameterListWriter::getParameterListTagName
static const std::string & getParameterListTagName()
Definition
Teuchos_XMLParameterListWriter.hpp:57
Teuchos::XMLParameterListWriter::getNameAttributeName
static const std::string & getNameAttributeName()
Definition
Teuchos_XMLParameterListWriter.hpp:63
Teuchos::XMLParameterListWriter::toXML
XMLObject toXML(const ParameterList &p, RCP< const DependencySheet > depSheet=null) const
Definition
Teuchos_XMLParameterListWriter.cpp:25
Teuchos
The Teuchos namespace contains all of the classes, structs and enums used by Teuchos,...
Teuchos::RCPConstComp
Struct for comparing two RCPs. Simply compares the raw pointers contained within the RCPs.
Definition
Teuchos_RCPDecl.hpp:933
Generated by
1.17.0