Belle II Software development
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
12class TObject;
13
14namespace Belle2 {
23 namespace Stream {
24
29 std::string serializeAndEncode(const TObject* obj);
30
38 TObject* deserializeEncodedRawData(const std::string& base64Data);
39 }
40
41}
Define (de)serialization methods for TObject.
Definition Stream.h:23
std::string serializeAndEncode(const TObject *obj)
Convert given TObject into encoded byte stream (for storing in XML).
Definition Stream.cc:27
TObject * deserializeEncodedRawData(const std::string &base64Data)
Convert given serialized raw data back into TObject.
Definition Stream.cc:54
Abstract base class for different kinds of events.