Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-09-16 09:08:27

0001 /// \file ROOT/RCreateFieldOptions.hxx
0002 /// \ingroup NTuple
0003 /// \author Giacomo Parolini <giacomo.parolini@cern.ch>
0004 /// \date 2024-12-17
0005 
0006 /*************************************************************************
0007  * Copyright (C) 1995-2024, Rene Brun and Fons Rademakers.               *
0008  * All rights reserved.                                                  *
0009  *                                                                       *
0010  * For the licensing terms see $ROOTSYS/LICENSE.                         *
0011  * For the list of contributors see $ROOTSYS/README/CREDITS.             *
0012  *************************************************************************/
0013 
0014 #ifndef ROOT_RCreateFieldOptions
0015 #define ROOT_RCreateFieldOptions
0016 
0017 namespace ROOT {
0018 
0019 struct RCreateFieldOptions {
0020 private:
0021    /// If true, failing to create a field will return a RInvalidField instead of throwing an exception.
0022    bool fReturnInvalidOnError = false;
0023    /// If true, fields with a user defined type that have no available dictionaries will be reconstructed
0024    /// as record fields from the on-disk information; otherwise, they will cause an error.
0025    bool fEmulateUnknownTypes = false;
0026 
0027 public:
0028    void SetReturnInvalidOnError(bool v) { fReturnInvalidOnError = v; }
0029    bool GetReturnInvalidOnError() const { return fReturnInvalidOnError; }
0030 
0031    void SetEmulateUnknownTypes(bool v) { fEmulateUnknownTypes = v; }
0032    bool GetEmulateUnknownTypes() const { return fEmulateUnknownTypes; }
0033 };
0034 
0035 } // namespace ROOT
0036 
0037 #endif