Logo ROOT   6.18/05
Reference Guide
RDrawingOptsBase.hxx
Go to the documentation of this file.
1/// \file ROOT/RDrawingOptionsBase.hxx
2/// \ingroup Gpad ROOT7
3/// \author Axel Naumann <axel@cern.ch>
4/// \date 2018-02-12
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-2018, 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_RDrawingOptsBase
17#define ROOT7_RDrawingOptsBase
18
19#include <ROOT/RDrawingAttr.hxx>
20
21#include <string>
22#include <vector>
23
24namespace ROOT {
25namespace Experimental {
26
28public:
29 /// The RDrawingAttrHolder of the attribute values.
30 std::shared_ptr<RDrawingAttrHolder> fHolder; ///<! I/O does not work
31 RDrawingAttrHolder *fHolderIO{nullptr}; ///< only for I/O, should be fixed in the fututre
32
33public:
34 RDrawingOptsBase() = default;
35
36 /// Initialize the options with a (possibly empty) set of style classes.
37 RDrawingOptsBase(const std::vector<std::string> &styleClasses);
38
39 /// Get the attribute style classes of these options.
40 const std::vector<std::string> &GetStyleClasses() const;
41
42 /// Get the attribute style classes of these options.
43 void SetStyleClasses(const std::vector<std::string> &styles);
44
45 std::shared_ptr<RDrawingAttrHolder> &GetHolder();
46};
47
48} // namespace Experimental
49} // namespace ROOT
50
51#endif // ROOT7_RDrawingOptsBase
A container of (stringified) attributes for which values have been provided.
void SetStyleClasses(const std::vector< std::string > &styles)
Get the attribute style classes of these options.
std::shared_ptr< RDrawingAttrHolder > & GetHolder()
RDrawingAttrHolder * fHolderIO
only for I/O, should be fixed in the fututre
std::shared_ptr< RDrawingAttrHolder > fHolder
The RDrawingAttrHolder of the attribute values.
RDrawingOptsBase(const std::vector< std::string > &styleClasses)
Initialize the options with a (possibly empty) set of style classes.
const std::vector< std::string > & GetStyleClasses() const
Get the attribute style classes of these options.
Namespace for new ROOT classes and functions.
Definition: StringConv.hxx:21