Belle II Software  release-08-01-10
Stream.h
1 /**************************************************************************
2  * basf2 (Belle II Analysis Software Framework) *
3  * Author: The Belle II Collaboration *
4  * *
5  * See git log for contributors and copyright holders. *
6  * This file is licensed under LGPL-3.0, see LICENSE.md. *
7  **************************************************************************/
8 #pragma once
9 
10 #include <string>
11 
12 class TObject;
13 
14 namespace Belle2 {
23  namespace Stream {
24 
29  std::string serializeAndEncode(const TObject* obj);
30 
31 
38  std::string escapeXML(const std::string& xmlString);
39 
47  TObject* deserializeEncodedRawData(const std::string& base64Data);
48  }
50 }
std::string escapeXML(const std::string &xmlString)
Escape given XML string as CDATA sequence.
Definition: Stream.cc:64
std::string serializeAndEncode(const TObject *obj)
Convert given TObject into encoded byte stream (for storing in XML).
Definition: Stream.cc:32
TObject * deserializeEncodedRawData(const std::string &base64Data)
Convert given serialized raw data back into TObject.
Definition: Stream.cc:72
Abstract base class for different kinds of events.