CYCLUS
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 
6 namespace cyclus {
7 namespace toolkit {
8 
9 /// Converts a JSON string into an equivalent XML string
10 std::string JsonToXml(std::string s);
11 
12 /// Converts an XML string into an equivalent JSON string
13 std::string XmlToJson(std::string s);
14 
15 } // namespace toolkit
16 } // namespace cyclus
17 
18 #endif // CYCLUS_SRC_TOOLKIT_INFILE_CONVERTERS_H_
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.
taken directly from OsiSolverInterface.cpp on 2/17/14 from https://projects.coin-or.org/Osi/browser/trunk.
Definition: agent.cc:14