Teuchos - Trilinos Tools Package  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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 
20 
21 
22 namespace Teuchos {
23 
24 
38 TEUCHOSPARAMETERLIST_LIB_DLL_EXPORT void updateParametersFromYamlFile(
39  const std::string &yamlFileName,
40  const Ptr<ParameterList> &paramList
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> &paramList,
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 &paramList,
110  std::ostream &yamlOut
111  );
112 
113 
124 TEUCHOSPARAMETERLIST_LIB_DLL_EXPORT
125 void 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.
Simple wrapper class for raw pointers to single objects where no persisting relationship exists...