TIOFeatures
provides the end-user with the ability to change the IO behavior of data written via a TTree
.
This class allows access to experimental and non-default features.
When one of these features are activated, forward compatibility breaks may occur. That is, older versions of ROOT may not be able to read files written by this version of ROOT that have enabled these non-default features.
To utilize TIOFeatures
, create the object, set the desired feature flags, then attach it to a TTree
. All subsequently created branches (and their baskets) will be serialized using those particular features.
Example usage:
ttree_ref.SetIOFeatures(features);
TIOFeatures provides the end-user with the ability to change the IO behavior of data written via a TT...
bool Set(EIOFeatures bits)
Set a specific IO feature.
The method TTree::SetIOFeatures
creates a copy of the feature set; subsequent changes to the TIOFeatures
object do not propogate to the TTree
.
Definition at line 62 of file TIOFeatures.hxx.
bool TIOFeatures::Set |
( |
const std::string & |
value | ) |
|
Given a IO feature string, set the corresponding feature.
- Parameters
-
[in] | value | Feature name to test. |
This allows one to set a feature given a specific string from the TBasket::EIOBits enum.
NOTE this function is quite slow and users are strongly encouraged to use the type-safe Set
version instead. This has been added for better CLI interfaces.
Returns kTRUE only if a new feature was set; otherwise emits an error message and returns kFALSE.
Definition at line 170 of file TIOFeatures.cxx.
Set a specific IO feature.
- Parameters
-
[in] | enum_bits | The specific feature to enable. |
Sets a feature in the TIOFeatures
object; emits an Error message if the IO feature is not supported by this version of ROOT.
If the feature is supported by ROOT, this function returns kTRUE; otherwise, it returns kFALSE.
Definition at line 137 of file TIOFeatures.cxx.