Formatter which outputs the LLSD as XML. More...
#include <llsdserialize.h>


Public Member Functions | |
| virtual S32 | format (const LLSD &data, std::ostream &ostr, U32 options=LLSDFormatter::OPTIONS_NONE) const |
| Call this method to format an LLSD to a stream. | |
| LLSDXMLFormatter () | |
| Constructor. | |
Static Public Member Functions | |
| static std::string | escapeString (const std::string &in) |
| Helper static method to return an xml escaped string. | |
Protected Member Functions | |
| S32 | format_impl (const LLSD &data, std::ostream &ostr, U32 options, U32 level) const |
| Implementation to format the data. This is called recursively. | |
| virtual | ~LLSDXMLFormatter () |
| Destructor. | |
Formatter which outputs the LLSD as XML.
| LLSDXMLFormatter::LLSDXMLFormatter | ( | ) |
Constructor.
| std::string LLSDXMLFormatter::escapeString | ( | const std::string & | in | ) | [static] |
Helper static method to return an xml escaped string.
| in | A valid UTF-8 string. |
| S32 LLSDXMLFormatter::format | ( | const LLSD & | data, | |
| std::ostream & | ostr, | |||
| U32 | options = LLSDFormatter::OPTIONS_NONE | |||
| ) | const [virtual] |
Call this method to format an LLSD to a stream.
| data | The data to write. | |
| ostr | The destination stream for the data. |
Implements LLSDFormatter.

| S32 LLSDXMLFormatter::format_impl | ( | const LLSD & | data, | |
| std::ostream & | ostr, | |||
| U32 | options, | |||
| U32 | level | |||
| ) | const [protected] |
Implementation to format the data. This is called recursively.
| data | The data to write. | |
| ostr | The destination stream for the data. |

1.6.3