Logo ROOT   6.18/05
Reference Guide
List of all members | Public Types | Public Member Functions | Private Attributes | List of all members
ROOT::Experimental::Internal::RStyleReader Class Reference

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_tfAttrs
 Collection of attributes to read into. More...
 

#include </home/sftnight/build/workspace/root-makedoc-v618/rootspi/rdoc/src/v6-18-00-patches/graf2d/gpadv7/v7/src/RStyleReader.hxx>

Member Typedef Documentation

◆ AllStyles_t

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.

Constructor & Destructor Documentation

◆ RStyleReader()

ROOT::Experimental::Internal::RStyleReader::RStyleReader ( AllStyles_t attrs)
inline

Definition at line 43 of file RStyleReader.hxx.

Member Function Documentation

◆ AddFromStyleFile()

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!

Returns
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.

◆ ReadDefaults()

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.

Parameters
[out]target- collection to read into.

Definition at line 31 of file RStyleReader.cxx.

Member Data Documentation

◆ fAttrs

AllStyles_t& ROOT::Experimental::Internal::RStyleReader::fAttrs
private

Collection of attributes to read into.

Definition at line 40 of file RStyleReader.hxx.


The documentation for this class was generated from the following files: