Teuchos Package Browser (Single Doxygen Collection)  Version of the Day
Namespaces | Macros | Typedefs | Functions
Teuchos_YamlParser_decl.hpp File Reference
#include "yaml-cpp/yaml.h"
#include "Teuchos_ParameterList.hpp"
#include "Teuchos_ParameterEntry.hpp"
#include "Teuchos_RCP.hpp"
#include "Teuchos_PtrDecl.hpp"
#include "Teuchos_FileInputSource.hpp"
#include <iostream>
#include <fstream>
#include <iomanip>
#include <string>
#include <vector>
#include <cstdlib>
#include <cstring>
Include dependency graph for Teuchos_YamlParser_decl.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 Teuchos
 
 Teuchos::YAMLParameterList
 

Macros

#define MAKE_EXCEPTION_TYPE(Name)
 

Typedefs

typedef Teuchos::ParameterList::ConstIterator Teuchos::YAMLParameterList::PLIter
 

Functions

void Teuchos::updateParametersFromYamlFile (const std::string &yamlFileName, const Teuchos::Ptr< Teuchos::ParameterList > &paramList)
 
void Teuchos::updateParametersFromYamlString (const std::string &yamlData, const Teuchos::Ptr< Teuchos::ParameterList > &paramList, bool overwrite)
 
TEUCHOSPARAMETERLIST_LIB_DLL_EXPORT void Teuchos::updateParametersFromYamlCString (const char *const data, const Teuchos::Ptr< Teuchos::ParameterList > &paramList, bool overwrite)
 
Teuchos::RCP< Teuchos::ParameterListTeuchos::getParametersFromYamlFile (const std::string &yamlFileName)
 
std::string Teuchos::convertXmlToYaml (const std::string &xmlFileName)
 
void Teuchos::convertXmlToYaml (const std::string &xmlFileName, const std::string &yamlFileName)
 
bool Teuchos::haveSameValuesUnordered (const Teuchos::ParameterList &lhs, const Teuchos::ParameterList &rhs, bool verbose)
 
Teuchos::RCP< Teuchos::ParameterListTeuchos::YAMLParameterList::parseYamlText (const std::string &text)
 
Teuchos::RCP< Teuchos::ParameterListTeuchos::YAMLParameterList::parseYamlText (const char *text)
 
Teuchos::RCP< Teuchos::ParameterListTeuchos::YAMLParameterList::parseYamlFile (const std::string &yamlFile)
 
void Teuchos::YAMLParameterList::writeYamlFile (const std::string &yamlFile, Teuchos::RCP< Teuchos::ParameterList > &pl)
 
Teuchos::RCP< Teuchos::ParameterListTeuchos::YAMLParameterList::readParams (std::vector< YAML::Node > &lists)
 
void Teuchos::YAMLParameterList::processMapNode (const YAML::Node &node, Teuchos::ParameterList &parent, bool topLevel)
 
void Teuchos::YAMLParameterList::processKeyValueNode (const std::string &key, const YAML::Node &node, Teuchos::ParameterList &parent, bool topLevel)
 
void Teuchos::YAMLParameterList::writeParameterList (Teuchos::ParameterList &pl, std::ofstream &yaml, int indentLevel)
 
void Teuchos::YAMLParameterList::writeParameter (const std::string &paramName, const Teuchos::ParameterEntry &entry, std::ofstream &yaml, int indentLevel)
 
void Teuchos::YAMLParameterList::generalWriteString (const std::string &str, std::ofstream &yaml)
 
void Teuchos::YAMLParameterList::generalWriteDouble (double d, std::ofstream &yaml)
 
bool Teuchos::YAMLParameterList::stringNeedsQuotes (const std::string &str)
 

Macro Definition Documentation

◆ MAKE_EXCEPTION_TYPE

#define MAKE_EXCEPTION_TYPE (   Name)
Value:
class Name : public Teuchos::ExceptionBase \
{ \
public: \
Name(const std::string& arg) : ExceptionBase(arg) {} \
};
Base exception class for Teuchos.

Definition at line 68 of file Teuchos_YamlParser_decl.hpp.