Belle II Software
release-08-01-10
|
Define (de)serialization methods for TObject. More...
Functions | |
std::string | serializeAndEncode (const TObject *obj) |
Convert given TObject into encoded byte stream (for storing in XML). More... | |
std::string | escapeXML (const std::string &xmlString) |
Escape given XML string as CDATA sequence. More... | |
TObject * | deserializeEncodedRawData (const std::string &base64Data) |
Convert given serialized raw data back into TObject. More... | |
Define (de)serialization methods for TObject.
This code is also exported to Python, after 'from ROOT import Belle2' it is available as Belle2.Stream.
TObject * deserializeEncodedRawData | ( | const std::string & | base64Data | ) |
std::string escapeXML | ( | const std::string & | xmlString | ) |
Escape given XML string as CDATA sequence.
This format is suitable for storing in an XML file, wrap it in a tag and use Gearbox::getInstance().getTObject(".../MyTag") to retrieve the object again.
std::string serializeAndEncode | ( | const TObject * | obj | ) |
Convert given TObject into encoded byte stream (for storing in XML).
Returns base64-encoded TMessage. Please pass it through escapeXML() first.