Teuchos - Trilinos Tools Package
Version of the Day
Toggle main menu visibility
Loading...
Searching...
No Matches
parameterlist
src
Teuchos_YamlParameterListCoreHelpers.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_YAML_PARAMETER_LIST_CORE_HELPERS_HPP
11
#define TEUCHOS_YAML_PARAMETER_LIST_CORE_HELPERS_HPP
12
13
17
18
19
#include "
Teuchos_ParameterList.hpp
"
20
21
22
namespace
Teuchos
{
23
24
38
TEUCHOSPARAMETERLIST_LIB_DLL_EXPORT
void
updateParametersFromYamlFile(
39
const
std::string &yamlFileName,
40
const
Ptr<ParameterList>
¶mList
41
);
42
51
TEUCHOSPARAMETERLIST_LIB_DLL_EXPORT
52
RCP<ParameterList>
getParametersFromYamlFile(
const
std::string &yamlFileName);
53
70
TEUCHOSPARAMETERLIST_LIB_DLL_EXPORT
71
void
updateParametersFromYamlString(
72
const
std::string &yamlStr,
73
const
Ptr<ParameterList>
¶mList,
74
bool
overwrite,
75
const
std::string& name =
""
76
);
77
78
TEUCHOSPARAMETERLIST_LIB_DLL_EXPORT
79
void
updateParametersFromYamlCString(
80
const
char
*
const
data,
81
const
Teuchos::Ptr<Teuchos::ParameterList>& paramList,
82
bool
overwrite
83
);
84
85
86
94
TEUCHOSPARAMETERLIST_LIB_DLL_EXPORT
95
RCP<ParameterList>
getParametersFromYamlString(
const
std::string &yamlStr);
96
97
107
TEUCHOSPARAMETERLIST_LIB_DLL_EXPORT
108
void
writeParameterListToYamlOStream(
109
const
ParameterList
¶mList,
110
std::ostream &yamlOut
111
);
112
113
124
TEUCHOSPARAMETERLIST_LIB_DLL_EXPORT
125
void
writeParameterListToYamlFile(
126
const
ParameterList
¶mList,
127
const
std::string &yamlFileName
128
);
129
130
}
// namespace Teuchos
131
132
133
#endif
// TEUCHOS_Yaml_PARAMETER_LIST_CORE_HELPERS_HPP
Teuchos_ParameterList.hpp
Templated Parameter List class.
Teuchos::ParameterList
A list of parameters of arbitrary type.
Definition
Teuchos_ParameterList.hpp:101
Teuchos::Ptr
Simple wrapper class for raw pointers to single objects where no persisting relationship exists.
Definition
Teuchos_PtrDecl.hpp:71
Teuchos::RCP
Smart reference counting pointer class for automatic garbage collection.
Definition
Teuchos_RCPDecl.hpp:397
Teuchos
The Teuchos namespace contains all of the classes, structs and enums used by Teuchos,...
Generated by
1.17.0