Formatter which outputs the original notation format for LLSD. 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. | |
LLSDNotationFormatter () | |
Constructor. | |
Static Public Member Functions | |
static std::string | escapeString (const std::string &in) |
Helper static method to return a notation escaped string. | |
Protected Member Functions | |
virtual | ~LLSDNotationFormatter () |
Destructor. |
Formatter which outputs the original notation format for LLSD.
LLSDNotationFormatter::LLSDNotationFormatter | ( | ) |
Constructor.
std::string LLSDNotationFormatter::escapeString | ( | const std::string & | in | ) | [static] |
Helper static method to return a notation escaped string.
This method will return the notation escaped string, but not the surrounding serialization identifiers such as a double or single quote. It will be up to the caller to embed those as appropriate.
in | The raw, unescaped string. |
S32 LLSDNotationFormatter::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.