ROOT 6.18/05 Reference Guide |
Definition at line 33 of file RStyleReader.hxx.
Public Types | |
using | AllStyles_t = std::unordered_map< std::string, RStyle > |
Key is the style name. More... | |
Public Member Functions | |
RStyleReader (AllStyles_t &attrs) | |
bool | AddFromStyleFile (const std::string &filename) |
Adds attributes specified in filename to those already existing in fAttrs . More... | |
void | ReadDefaults () |
Reads the attribute config values from .rootstylerc . More... | |
Private Attributes | |
AllStyles_t & | fAttrs |
Collection of attributes to read into. More... | |
using ROOT::Experimental::Internal::RStyleReader::AllStyles_t = std::unordered_map<std::string, RStyle> |
Key is the style name.
Definition at line 36 of file RStyleReader.hxx.
|
inline |
Definition at line 43 of file RStyleReader.hxx.
bool RStyleReader::AddFromStyleFile | ( | const std::string & | filename | ) |
Adds attributes specified in filename
to those already existing in fAttrs
.
Overwrites values for attributes that already exist in attrs
!
true
on success, false
if the file cannot be found or the syntax is wrong. Prints an error if the syntax is wrong (but not if the file does not exist). Definition at line 81 of file RStyleReader.cxx.
void RStyleReader::ReadDefaults | ( | ) |
Reads the attribute config values from .rootstylerc
.
If the style entry is not found there, tries ~/.rootstylerc
and finally $ROOTSYS/etc/system.rootstylerc
.
[out] | target | - collection to read into. |
Definition at line 31 of file RStyleReader.cxx.
|
private |
Collection of attributes to read into.
Definition at line 40 of file RStyleReader.hxx.