ATLAS Offline Software
blobaccess.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef CORALUTILITIES_BLOBACCESS_H
6 #define CORALUTILITIES_BLOBACCESS_H
7 
8 #include <string>
9 #include <memory>
10 #include "nlohmann/json.hpp"
11 
12 class TTree;
13 class TMemFile;
14 
15 namespace coral {
16  class Blob;
17 }
18 
19 namespace CoralUtilities {
20 
21  bool compressBlob (const char* , coral::Blob&);
22  bool writeBlobFromString (const std::string_view, coral::Blob&);
24  bool writeBlobFromTTree ( TTree* , coral::Blob&);
25 
26  bool uncompressBlob (const coral::Blob&, std::unique_ptr<unsigned char[]>&, unsigned long&);
27  bool readBlobAsString (const coral::Blob&, std::string& );
28  bool readBlobAsJson (const coral::Blob&, nlohmann::json& );
29  bool readBlobAsTTree (const coral::Blob&, std::unique_ptr<TTree>& );
30 
31 }
32 
33 #endif
json
nlohmann::json json
Definition: HistogramDef.cxx:9
CoralUtilities::compressBlob
bool compressBlob(const char *, coral::Blob &)
Definition: blobaccess.cxx:20
python.subdetectors.tile.Blob
Blob
Definition: tile.py:17
CoralUtilities::readBlobAsJson
bool readBlobAsJson(const coral::Blob &, nlohmann::json &)
Definition: blobaccess.cxx:94
coral
Definition: ISecondaryEventSelector.h:19
CoralUtilities::writeBlobFromTTree
bool writeBlobFromTTree(TTree *, coral::Blob &)
Definition: blobaccess.cxx:39
CoralUtilities::readBlobAsString
bool readBlobAsString(const coral::Blob &, std::string &)
Definition: blobaccess.cxx:85
CoralUtilities::uncompressBlob
bool uncompressBlob(const coral::Blob &, std::unique_ptr< unsigned char[]> &, unsigned long &)
Definition: blobaccess.cxx:61
CoralUtilities::readBlobAsTTree
bool readBlobAsTTree(const coral::Blob &, std::unique_ptr< TTree > &)
Definition: blobaccess.cxx:107
CoralUtilities::writeBlobFromJson
bool writeBlobFromJson(const nlohmann::json &, coral::Blob &)
Definition: blobaccess.cxx:35
CoralUtilities
Definition: blobaccess.h:19
CoralUtilities::writeBlobFromString
bool writeBlobFromString(const std::string_view, coral::Blob &)
Definition: blobaccess.cxx:31