Logo ROOT   6.30.04
Reference Guide
 All Namespaces Files Pages
RNTupleOptions.hxx
Go to the documentation of this file.
1 /// \file ROOT/RNTupleOptions.hxx
2 /// \ingroup NTuple ROOT7
3 /// \author Jakob Blomer <jblomer@cern.ch>
4 /// \date 2019-08-25
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-2019, 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 #ifndef ROOT7_RNTupleOptions
17 #define ROOT7_RNTupleOptions
18 
19 #include <Compression.h>
20 
21 namespace ROOT {
22 namespace Experimental {
23 
24 // clang-format off
25 /**
26 \class ROOT::Experimental::RNTupleWriteOptions
27 \ingroup NTuple
28 \brief Common user-tunable settings for storing ntuples
29 
30 All page sink classes need to support the common options.
31 */
32 // clang-format on
33 class RNTupleWriteOptions {
34  int fCompression;
35 public:
36  RNTupleWriteOptions() : fCompression(RCompressionSetting::EDefaults::kUseAnalysis) {}
37  int GetCompression() const { return fCompression; }
38  void SetCompression(int val) { fCompression = val; }
39  void SetCompression(RCompressionSetting::EAlgorithm algorithm, int compressionLevel) {
40  fCompression = CompressionSettings(algorithm, compressionLevel);
41  }
42 };
43 
44 
45 // clang-format off
46 /**
47 \class ROOT::Experimental::RNTupleReadOptions
48 \ingroup NTuple
49 \brief Common user-tunable settings for reading ntuples
50 
51 All page source classes need to support the common options.
52 */
53 // clang-format on
54 class RNTupleReadOptions {
55 };
56 
57 } // namespace Experimental
58 } // namespace ROOT
59 
60 #endif