CARMA C++
PDB_XML_Read.h
1 /*
2  * Convert PDB XML to JSON (Reader Portion)
3  *
4  * This code is separated from the conversion portion due to incompatibilities
5  * between two different rapidjson versions. An older version of rapidjson is
6  * used by this code, which relies on the xml2json project for conversion.
7  *
8  * A newer version of rapidjson is used by the JSON conversion code. They cannot
9  * both be used in the same translation unit, hence the use of two separate files.
10  *
11  * DO NOT USE THIS CODE DIRECTLY! IT SHOULD ONLY BE USED INTERNALLY BY THIS SUBSYSTEM!
12  */
13 
14 #ifndef PDB_XML_READ_H
15 #define PDB_XML_READ_H
16 
17 #include <string>
18 
19 namespace carma {
20 namespace observertools {
21 
22 /*
23  * Convert an XML string into a JSON string. No interpretation of the data is
24  * performed, this is simply a raw conversion from one data format to another.
25  */
26 std::string convertXmlToJson(const std::string &xmlContents);
27 
28 } // namespace carma::observertools
29 } // namespace carma
30 
31 #endif /* PDB_XML_READ_H */
32 
33 /* vim: set ts=8 sts=8 sw=8 noet tw=92: */