CYCLUS
Loading...
Searching...
No Matches
infile_converters.h
Go to the documentation of this file.
1#ifndef CYCLUS_SRC_TOOLKIT_INFILE_CONVERTERS_H_
2#define CYCLUS_SRC_TOOLKIT_INFILE_CONVERTERS_H_
3
4#include <string>
5
6namespace cyclus {
7namespace toolkit {
8
9/// Converts a JSON string into an equivalent XML string
10std::string JsonToXml(std::string s);
11
12/// Converts an XML string into an equivalent JSON string
13std::string XmlToJson(std::string s);
14
15// PyToJson declared in pyhooks.h
16// JsonToPy declared in pyhooks.h
17
18/// Converts a Python string into an equivalent XML string
19std::string PyToXml(std::string s);
20
21/// Converts an XML string into an equivalent JSON string
22std::string XmlToPy(std::string s);
23
24} // namespace toolkit
25} // namespace cyclus
26
27#endif // CYCLUS_SRC_TOOLKIT_INFILE_CONVERTERS_H_
std::string XmlToPy(std::string s)
Converts an XML string into an equivalent JSON string.
std::string JsonToXml(std::string s)
Converts a JSON string into an equivalent XML string.
std::string XmlToJson(std::string s)
Converts an XML string into an equivalent JSON string.
std::string PyToXml(std::string s)
Converts a Python string into an equivalent XML string.
taken directly from OsiSolverInterface.cpp on 2/17/14 from https://projects.coin-or....
Definition agent.cc:14
T OptionalQuery(InfileTree *tree, std::string query, T default_val)
a query method for optional parameters