[EEP] LLSD Serialize Notation additions

This commit is contained in:
Lirusaito
2019-03-24 21:04:25 -04:00
parent 2e02f5ac2c
commit fe33db1620
4 changed files with 21 additions and 1 deletions

View File

@@ -192,6 +192,14 @@ char* ll_pretty_print_sd(const LLSD& sd)
return buffer;
}
std::string ll_stream_notation_sd(const LLSD& sd)
{
std::ostringstream stream;
stream << LLSDOStreamer<LLSDNotationFormatter>(sd);
return stream.str();
}
//compares the structure of an LLSD to a template LLSD and stores the
//"valid" values in a 3rd LLSD. Default values pulled from the template
//if the tested LLSD does not contain the key/value pair.