47#ifndef TEUCHOS_YAMLPARSER_DECL_H_
48#define TEUCHOS_YAMLPARSER_DECL_H_
151void convertXmlToYaml(
const std::string& xmlFileName,
const std::string& yamlFileName);
157 Teuchos::RCP<Teuchos::ParameterList>
parseYamlText(
const std::string& text,
158 const std::string& name);
159 Teuchos::RCP<Teuchos::ParameterList>
parseYamlFile(
const std::string& yamlFile);
160 Teuchos::RCP<Teuchos::ParameterList>
parseYamlStream(std::istream& yaml);
161 void writeYamlStream(std::ostream& yamlFile,
const Teuchos::ParameterList& pl);
162 void writeYamlFile(
const std::string& yamlFile,
const Teuchos::ParameterList& pl);
163 void writeParameterList(
const Teuchos::ParameterList& pl, std::ostream& yaml,
int indentLevel);
164 void writeParameter(
const std::string& paramName,
const Teuchos::ParameterEntry& entry, std::ostream& yaml,
int indentLevel);
Object held as the "value" in the Teuchos::ParameterList std::map.
Templated Parameter List class.
Reference-counted pointer class and non-member templated function implementations.
params_t::ConstIterator ConstIterator
Parameter container const iterator typedef.
void generalWriteDouble(double d, std::ostream &yaml)
Teuchos::RCP< Teuchos::ParameterList > parseYamlFile(const std::string &yamlFile)
void writeParameterList(const Teuchos::ParameterList &pl, std::ostream &yaml, int indentLevel)
bool stringNeedsQuotes(const std::string &s)
void writeYamlStream(std::ostream &yaml, const Teuchos::ParameterList &pl)
Teuchos::RCP< Teuchos::ParameterList > parseYamlStream(std::istream &yaml)
void writeParameter(const std::string ¶mName, const Teuchos::ParameterEntry &entry, std::ostream &yaml, int indentLevel)
Teuchos::RCP< Teuchos::ParameterList > parseYamlText(const std::string &text, const std::string &name)
void generalWriteString(const std::string &str, std::ostream &yaml)
void writeYamlFile(const std::string &yamlFile, const Teuchos::ParameterList &pl)
Teuchos::ParameterList::ConstIterator PLIter
std::string convertXmlToYaml(const std::string &xmlFileName)