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