Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
RNTupleWriteOptionsDaos.hxx
Go to the documentation of this file.
1/// \file ROOT/RNTupleWriteOptionsDaos.hxx
2/// \ingroup NTuple
3/// \author Jakob Blomer <jblomer@cern.ch>
4/// \date 2024-02-22
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 ROOT_RNTupleWriteOptionsDaos
17#define ROOT_RNTupleWriteOptionsDaos
18
20
21#include <cstdint>
22#include <memory>
23#include <string>
24#include <utility>
25
26namespace ROOT {
27namespace Experimental {
28
29// clang-format off
30/**
31\class ROOT::Experimental::RNTupleWriteOptionsDaos
32\ingroup NTuple
33\brief DAOS-specific user-tunable settings for storing ntuples
34*/
35// clang-format on
37 std::string fObjectClass{"SX"};
38
39public:
40 ~RNTupleWriteOptionsDaos() override = default;
41 std::unique_ptr<RNTupleWriteOptions> Clone() const override
42 {
43 return std::make_unique<RNTupleWriteOptionsDaos>(*this);
44 }
45
46 const std::string &GetObjectClass() const { return fObjectClass; }
47 /// Set the object class used to generate OIDs that relate to user data. Any
48 /// `OC_xxx` constant defined in `daos_obj_class.h` may be used here without
49 /// the OC_ prefix.
50 void SetObjectClass(const std::string &val) { fObjectClass = val; }
51};
52
53} // namespace Experimental
54} // namespace ROOT
55
56#endif // ROOT_RNTupleWriteOptionsDaos
DAOS-specific user-tunable settings for storing ntuples.
void SetObjectClass(const std::string &val)
Set the object class used to generate OIDs that relate to user data.
std::unique_ptr< RNTupleWriteOptions > Clone() const override
Common user-tunable settings for storing RNTuples.