Logo ROOT  
Reference Guide
RNTupleUtil.cxx
Go to the documentation of this file.
1/// \file RNTupleUtil.cxx
2/// \ingroup NTuple ROOT7
3/// \author Jakob Blomer <jblomer@cern.ch> & Max Orok <maxwellorok@gmail.com>
4/// \date 2020-07-14
5/// \warning This is part of the ROOT 7 prototype! It will change without notice. It might trigger earthquakes. Feedback
6/// is welcome!
7
8/*************************************************************************
9 * Copyright (C) 1995-2020, Rene Brun and Fons Rademakers. *
10 * All rights reserved. *
11 * *
12 * For the licensing terms see $ROOTSYS/LICENSE. *
13 * For the list of contributors see $ROOTSYS/README/CREDITS. *
14 *************************************************************************/
15
16#include "ROOT/RNTupleUtil.hxx"
17
18#include "ROOT/RLogger.hxx"
19#include "ROOT/RMiniFile.hxx"
20
21#include <cstring>
22#include <iostream>
23
25 static RLogChannel sLog("ROOT.NTuple");
26 return sLog;
27}
28
29
30namespace ROOT {
31namespace Experimental {
32namespace Internal {
33
34void PrintRNTuple(const RNTuple& ntuple, std::ostream& output) {
35 output << "RNTuple {\n";
36 output << " fVersion: " << ntuple.fVersion << ",\n";
37 output << " fSize: " << ntuple.fSize << ",\n";
38 output << " fSeekHeader: " << ntuple.fSeekHeader << ",\n";
39 output << " fNBytesHeader: " << ntuple.fNBytesHeader << ",\n";
40 output << " fLenHeader: " << ntuple.fLenHeader << ",\n";
41 output << " fSeekFooter: " << ntuple.fSeekFooter << ",\n";
42 output << " fNBytesFooter: " << ntuple.fNBytesFooter << ",\n";
43 output << " fLenFooter: " << ntuple.fLenFooter << ",\n";
44 output << " fReserved: " << ntuple.fReserved << ",\n";
45 output << "}";
46}
47
48} // namespace Internal
49} // namespace Experimental
50} // namespace ROOT
A log configuration for a channel, e.g.
Definition: RLogger.hxx:101
void PrintRNTuple(const RNTuple &ntuple, std::ostream &output)
Definition: RNTupleUtil.cxx:34
RLogChannel & NTupleLog()
Log channel for RNTuple diagnostics.
Definition: RNTupleUtil.cxx:24
This file contains a specialised ROOT message handler to test for diagnostic in unit tests.
Entry point for an RNTuple in a ROOT file.
Definition: RMiniFile.hxx:55
std::uint64_t fSeekFooter
The file offset of the footer excluding the TKey part.
Definition: RMiniFile.hxx:67
std::uint32_t fLenHeader
The size of the uncompressed ntuple header.
Definition: RMiniFile.hxx:65
std::uint64_t fReserved
Currently unused, reserved for later use.
Definition: RMiniFile.hxx:73
std::uint32_t fVersion
Allows for evolving the struct in future versions.
Definition: RMiniFile.hxx:57
std::uint32_t fNBytesHeader
The size of the compressed ntuple header.
Definition: RMiniFile.hxx:63
std::uint32_t fSize
Allows for skipping the struct.
Definition: RMiniFile.hxx:59
std::uint32_t fNBytesFooter
The size of the compressed ntuple footer.
Definition: RMiniFile.hxx:69
std::uint32_t fLenFooter
The size of the uncompressed ntuple footer.
Definition: RMiniFile.hxx:71
std::uint64_t fSeekHeader
The file offset of the header excluding the TKey part.
Definition: RMiniFile.hxx:61
static void output(int code)
Definition: gifencode.c:226