Logo ROOT  
Reference Guide
RooCmdConfig Class Reference

Class RooCmdConfig is a configurable parser for RooCmdArg named arguments.

It maps the contents of named arguments named to integers, doubles, strings and TObjects that can be retrieved after processing a set of RooCmdArgs. The parser also has options to enforce syntax rules such as (conditionally) required arguments, mutually exclusive arguments and dependencies between arguments

Definition at line 31 of file RooCmdConfig.h.

Classes

struct  Var
 

Public Member Functions

 RooCmdConfig (const char *methodName)
 Constructor taking descriptive name of owner/user which is used as prefix for any warning or error messages generated by this parser. More...
 
 RooCmdConfig (const RooCmdConfig &other)
 Copy constructor. More...
 
void allowUndefined (Bool_t flag=kTRUE)
 If flag is true the processing of unrecognized RooCmdArgs is not considered an error. More...
 
void defineDependency (const char *refArgName, const char *neededArgName)
 Define that processing argument name refArgName requires processing of argument named neededArgName to successfully complete parsing. More...
 
Bool_t defineDouble (const char *name, const char *argName, Int_t doubleNum, Double_t defValue=0.)
 Define Double_t property name 'name' mapped to Double_t in slot 'doubleNum' in RooCmdArg with name argName Define default value for this Double_t property to be defVal in case named argument is not processed. More...
 
Bool_t defineInt (const char *name, const char *argName, Int_t intNum, Int_t defValue=0)
 Define integer property name 'name' mapped to integer in slot 'intNum' in RooCmdArg with name argName Define default value for this int property to be defVal in case named argument is not processed. More...
 
void defineMutex (const char *)
 
template<class... Args_t>
void defineMutex (const char *head, Args_t &&... tail)
 Define arguments where any pair is mutually exclusive. More...
 
Bool_t defineObject (const char *name, const char *argName, Int_t setNum, const TObject *obj=0, Bool_t isArray=kFALSE)
 Define TObject property name 'name' mapped to object in slot 'setNum' in RooCmdArg with name argName Define default value for this TObject property to be defVal in case named argument is not processed. More...
 
template<class... Args_t>
void defineRequiredArgs (const char *first, Args_t &&... args)
 Add condition that any of listed arguments must be processed for parsing to be declared successful. More...
 
Bool_t defineSet (const char *name, const char *argName, Int_t setNum, const RooArgSet *set=0)
 Define TObject property name 'name' mapped to object in slot 'setNum' in RooCmdArg with name argName Define default value for this TObject property to be defVal in case named argument is not processed. More...
 
Bool_t defineString (const char *name, const char *argName, Int_t stringNum, const char *defValue="", Bool_t appendMode=kFALSE)
 Define Double_t property name 'name' mapped to Double_t in slot 'stringNum' in RooCmdArg with name argName Define default value for this Double_t property to be defVal in case named argument is not processed If appendMode is true, values found in multiple matching RooCmdArg arguments will be concatenated in the output string. More...
 
RooLinkedList filterCmdList (RooLinkedList &cmdInList, const char *cmdNameList, bool removeFromInList=true) const
 Utility function to filter commands listed in cmdNameList from cmdInList. More...
 
Double_t getDouble (const char *name, Double_t defaultValue=0)
 Return Double_t property registered with name 'name'. More...
 
Int_t getInt (const char *name, Int_t defaultValue=0)
 Return integer property registered with name 'name'. More...
 
TObjectgetObject (const char *name, TObject *obj=0)
 Return TObject property registered with name 'name'. More...
 
const RooLinkedListgetObjectList (const char *name)
 Return list of objects registered with name 'name'. More...
 
RooArgSetgetSet (const char *name, RooArgSet *set=0)
 Return RooArgSet property registered with name 'name'. More...
 
const char * getString (const char *name, const char *defaultValue="", Bool_t convEmptyToNull=kFALSE)
 Return string property registered with name 'name'. More...
 
Bool_t hasProcessed (const char *cmdName) const
 Return true if RooCmdArg with name 'cmdName' has been processed. More...
 
TClassIsA () const override
 
std::string missingArgs () const
 Return string with names of arguments that were required, but not processed. More...
 
Bool_t ok (Bool_t verbose) const
 Return true of parsing was successful. More...
 
void print () const
 Print configuration of parser. More...
 
Bool_t process (const RooCmdArg &arg)
 Process given RooCmdArg. More...
 
template<class... Args_t>
bool process (const RooCmdArg &arg, Args_t &&...args)
 Process given RooCmdArgs. More...
 
Bool_t process (const RooLinkedList &argList)
 Process given list with RooCmdArgs. More...
 
template<typename It_t >
bool process (It_t begin, It_t end)
 Process several RooCmdArg using iterators. More...
 
void setVerbose (Bool_t flag)
 If flag is true verbose messaging is activated. More...
 
void Streamer (TBuffer &) override
 Stream an object of class TObject. More...
 
void StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b)
 
void stripCmdList (RooLinkedList &cmdList, const char *cmdsToPurge) const
 Utility function that strips command names listed (comma separated) in cmdsToPurge from cmdList. More...
 
- Public Member Functions inherited from TObject
 TObject ()
 TObject constructor. More...
 
 TObject (const TObject &object)
 TObject copy ctor. More...
 
virtual ~TObject ()
 TObject destructor. More...
 
void AbstractMethod (const char *method) const
 Use this method to implement an "abstract" method that you don't want to leave purely abstract. More...
 
virtual void AppendPad (Option_t *option="")
 Append graphics object to current pad. More...
 
virtual void Browse (TBrowser *b)
 Browse object. May be overridden for another default action. More...
 
ULong_t CheckedHash ()
 Check and record whether this class has a consistent Hash/RecursiveRemove setup (*) and then return the regular Hash value for this object. More...
 
virtual const char * ClassName () const
 Returns name of class to which the object belongs. More...
 
virtual void Clear (Option_t *="")
 
virtual TObjectClone (const char *newname="") const
 Make a clone of an object using the Streamer facility. More...
 
virtual Int_t Compare (const TObject *obj) const
 Compare abstract method. More...
 
virtual void Copy (TObject &object) const
 Copy this to obj. More...
 
virtual void Delete (Option_t *option="")
 Delete this object. More...
 
virtual Int_t DistancetoPrimitive (Int_t px, Int_t py)
 Computes distance from point (px,py) to the object. More...
 
virtual void Draw (Option_t *option="")
 Default Draw method for all objects. More...
 
virtual void DrawClass () const
 Draw class inheritance tree of the class to which this object belongs. More...
 
virtual TObjectDrawClone (Option_t *option="") const
 Draw a clone of this object in the current selected pad for instance with: gROOT->SetSelectedPad(gPad). More...
 
virtual void Dump () const
 Dump contents of object on stdout. More...
 
virtual void Error (const char *method, const char *msgfmt,...) const
 Issue error message. More...
 
virtual void Execute (const char *method, const char *params, Int_t *error=0)
 Execute method on this object with the given parameter string, e.g. More...
 
virtual void Execute (TMethod *method, TObjArray *params, Int_t *error=0)
 Execute method on this object with parameters stored in the TObjArray. More...
 
virtual void ExecuteEvent (Int_t event, Int_t px, Int_t py)
 Execute action corresponding to an event at (px,py). More...
 
virtual void Fatal (const char *method, const char *msgfmt,...) const
 Issue fatal error message. More...
 
virtual TObjectFindObject (const char *name) const
 Must be redefined in derived classes. More...
 
virtual TObjectFindObject (const TObject *obj) const
 Must be redefined in derived classes. More...
 
virtual Option_tGetDrawOption () const
 Get option used by the graphics system to draw this object. More...
 
virtual const char * GetIconName () const
 Returns mime type name of object. More...
 
virtual const char * GetName () const
 Returns name of object. More...
 
virtual char * GetObjectInfo (Int_t px, Int_t py) const
 Returns string containing info about the object at position (px,py). More...
 
virtual Option_tGetOption () const
 
virtual const char * GetTitle () const
 Returns title of object. More...
 
virtual UInt_t GetUniqueID () const
 Return the unique object id. More...
 
virtual Bool_t HandleTimer (TTimer *timer)
 Execute action in response of a timer timing out. More...
 
virtual ULong_t Hash () const
 Return hash value for this object. More...
 
Bool_t HasInconsistentHash () const
 Return true is the type of this object is known to have an inconsistent setup for Hash and RecursiveRemove (i.e. More...
 
virtual void Info (const char *method, const char *msgfmt,...) const
 Issue info message. More...
 
virtual Bool_t InheritsFrom (const char *classname) const
 Returns kTRUE if object inherits from class "classname". More...
 
virtual Bool_t InheritsFrom (const TClass *cl) const
 Returns kTRUE if object inherits from TClass cl. More...
 
virtual void Inspect () const
 Dump contents of this object in a graphics canvas. More...
 
void InvertBit (UInt_t f)
 
virtual TClassIsA () const
 
virtual Bool_t IsEqual (const TObject *obj) const
 Default equal comparison (objects are equal if they have the same address in memory). More...
 
virtual Bool_t IsFolder () const
 Returns kTRUE in case object contains browsable objects (like containers or lists of other objects). More...
 
R__ALWAYS_INLINE Bool_t IsOnHeap () const
 
virtual Bool_t IsSortable () const
 
R__ALWAYS_INLINE Bool_t IsZombie () const
 
virtual void ls (Option_t *option="") const
 The ls function lists the contents of a class on stdout. More...
 
void MayNotUse (const char *method) const
 Use this method to signal that a method (defined in a base class) may not be called in a derived class (in principle against good design since a child class should not provide less functionality than its parent, however, sometimes it is necessary). More...
 
virtual Bool_t Notify ()
 This method must be overridden to handle object notification. More...
 
void Obsolete (const char *method, const char *asOfVers, const char *removedFromVers) const
 Use this method to declare a method obsolete. More...
 
void operator delete (void *ptr)
 Operator delete. More...
 
void operator delete[] (void *ptr)
 Operator delete []. More...
 
void * operator new (size_t sz)
 
void * operator new (size_t sz, void *vp)
 
void * operator new[] (size_t sz)
 
void * operator new[] (size_t sz, void *vp)
 
TObjectoperator= (const TObject &rhs)
 TObject assignment operator. More...
 
virtual void Paint (Option_t *option="")
 This method must be overridden if a class wants to paint itself. More...
 
virtual void Pop ()
 Pop on object drawn in a pad to the top of the display list. More...
 
virtual void Print (Option_t *option="") const
 This method must be overridden when a class wants to print itself. More...
 
virtual Int_t Read (const char *name)
 Read contents of object with specified name from the current directory. More...
 
virtual void RecursiveRemove (TObject *obj)
 Recursively remove this object from a list. More...
 
void ResetBit (UInt_t f)
 
virtual void SaveAs (const char *filename="", Option_t *option="") const
 Save this object in the file specified by filename. More...
 
virtual void SavePrimitive (std::ostream &out, Option_t *option="")
 Save a primitive as a C++ statement(s) on output stream "out". More...
 
void SetBit (UInt_t f)
 
void SetBit (UInt_t f, Bool_t set)
 Set or unset the user status bits as specified in f. More...
 
virtual void SetDrawOption (Option_t *option="")
 Set drawing option for object. More...
 
virtual void SetUniqueID (UInt_t uid)
 Set the unique object id. More...
 
virtual void Streamer (TBuffer &)
 Stream an object of class TObject. More...
 
void StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b)
 
virtual void SysError (const char *method, const char *msgfmt,...) const
 Issue system error message. More...
 
R__ALWAYS_INLINE Bool_t TestBit (UInt_t f) const
 
Int_t TestBits (UInt_t f) const
 
virtual void UseCurrentStyle ()
 Set current style settings in this object This function is called when either TCanvas::UseCurrentStyle or TROOT::ForceStyle have been invoked. More...
 
virtual void Warning (const char *method, const char *msgfmt,...) const
 Issue warning message. More...
 
virtual Int_t Write (const char *name=0, Int_t option=0, Int_t bufsize=0)
 Write this object to the current directory. More...
 
virtual Int_t Write (const char *name=0, Int_t option=0, Int_t bufsize=0) const
 Write this object to the current directory. More...
 

Static Public Member Functions

static TClassClass ()
 
static const char * Class_Name ()
 
static Version_t Class_Version ()
 
static const char * DeclFileName ()
 
static double decodeDoubleOnTheFly (const char *callerID, const char *cmdArgName, int idx, double defVal, std::initializer_list< std::reference_wrapper< const RooCmdArg > > args)
 Find a given double in a list of RooCmdArg. More...
 
template<class ... Args_t>
static Int_t decodeIntOnTheFly (const char *callerID, const char *cmdArgName, Int_t intIdx, Int_t defVal, Args_t &&...args)
 Static decoder function allows to retrieve integer property from set of RooCmdArgs For use in base member initializers in constructors. More...
 
template<class ... Args_t>
static TObjectdecodeObjOnTheFly (const char *callerID, const char *cmdArgName, Int_t objIdx, TObject *defVal, Args_t &&...args)
 Static decoder function allows to retrieve object property from set of RooCmdArgs For use in base member initializers in constructors. More...
 
template<class ... Args_t>
static std::string decodeStringOnTheFly (const char *callerID, const char *cmdArgName, Int_t intIdx, const char *defVal, Args_t &&...args)
 Static decoder function allows to retrieve string property from set of RooCmdArgs For use in base member initializers in constructors. More...
 
- Static Public Member Functions inherited from TObject
static TClassClass ()
 
static const char * Class_Name ()
 
static Version_t Class_Version ()
 
static const char * DeclFileName ()
 
static Longptr_t GetDtorOnly ()
 Return destructor only flag. More...
 
static Bool_t GetObjectStat ()
 Get status of object stat flag. More...
 
static void SetDtorOnly (void *obj)
 Set destructor only flag. More...
 
static void SetObjectStat (Bool_t stat)
 Turn on/off tracking of objects in the TObjectTable. More...
 

Protected Attributes

Bool_t _allowUndefined = false
 
std::vector< Var< RooArgSet * > > _cList
 RooArgSet list. More...
 
std::vector< Var< double > > _dList
 Double list. More...
 
Bool_t _error = false
 
TList _fList
 Forbidden cmd list. More...
 
std::vector< Var< int > > _iList
 Integer list. More...
 
TList _mList
 Mutex cmd list. More...
 
TString _name
 
std::vector< Var< RooLinkedList > > _oList
 Object list. More...
 
TList _pList
 Processed cmd list. More...
 
TList _rList
 Required cmd list. More...
 
std::vector< Var< std::string > > _sList
 String list. More...
 
Bool_t _verbose = false
 
TList _yList
 Dependency cmd list. More...
 

Additional Inherited Members

- Public Types inherited from TObject
enum  {
  kIsOnHeap = 0x01000000 , kNotDeleted = 0x02000000 , kZombie = 0x04000000 , kInconsistent = 0x08000000 ,
  kBitMask = 0x00ffffff
}
 
enum  { kSingleKey = (1ULL << ( 0 )) , kOverwrite = (1ULL << ( 1 )) , kWriteDelete = (1ULL << ( 2 )) }
 
enum  EDeprecatedStatusBits { kObjInCanvas = (1ULL << ( 3 )) }
 
enum  EStatusBits {
  kCanDelete = (1ULL << ( 0 )) , kMustCleanup = (1ULL << ( 3 )) , kIsReferenced = (1ULL << ( 4 )) , kHasUUID = (1ULL << ( 5 )) ,
  kCannotPick = (1ULL << ( 6 )) , kNoContextMenu = (1ULL << ( 8 )) , kInvalidObject = (1ULL << ( 13 ))
}
 
- Protected Types inherited from TObject
enum  { kOnlyPrepStep = (1ULL << ( 3 )) }
 
- Protected Member Functions inherited from TObject
virtual void DoError (int level, const char *location, const char *fmt, va_list va) const
 Interface to ErrorHandler (protected). More...
 
void MakeZombie ()
 

#include <RooCmdConfig.h>

Inheritance diagram for RooCmdConfig:
[legend]

Constructor & Destructor Documentation

◆ RooCmdConfig() [1/2]

RooCmdConfig::RooCmdConfig ( const char *  methodName)

Constructor taking descriptive name of owner/user which is used as prefix for any warning or error messages generated by this parser.

Definition at line 59 of file RooCmdConfig.cxx.

◆ RooCmdConfig() [2/2]

RooCmdConfig::RooCmdConfig ( const RooCmdConfig other)

Copy constructor.

Definition at line 87 of file RooCmdConfig.cxx.

Member Function Documentation

◆ allowUndefined()

void RooCmdConfig::allowUndefined ( Bool_t  flag = kTRUE)
inline

If flag is true the processing of unrecognized RooCmdArgs is not considered an error.

Definition at line 43 of file RooCmdConfig.h.

◆ Class()

static TClass * RooCmdConfig::Class ( )
static
Returns
TClass describing this class

◆ Class_Name()

static const char * RooCmdConfig::Class_Name ( )
static
Returns
Name of this class

◆ Class_Version()

static Version_t RooCmdConfig::Class_Version ( )
inlinestatic
Returns
Version of this class

Definition at line 130 of file RooCmdConfig.h.

◆ DeclFileName()

static const char * RooCmdConfig::DeclFileName ( )
inlinestatic
Returns
Name of the file containing the class declaration

Definition at line 130 of file RooCmdConfig.h.

◆ decodeDoubleOnTheFly()

double RooCmdConfig::decodeDoubleOnTheFly ( const char *  callerID,
const char *  cmdArgName,
int  idx,
double  defVal,
std::initializer_list< std::reference_wrapper< const RooCmdArg > >  args 
)
static

Find a given double in a list of RooCmdArg.

Should only be used to initialise base classes in constructors.

Definition at line 616 of file RooCmdConfig.cxx.

◆ decodeIntOnTheFly()

template<class ... Args_t>
Int_t RooCmdConfig::decodeIntOnTheFly ( const char *  callerID,
const char *  cmdArgName,
Int_t  intIdx,
Int_t  defVal,
Args_t &&...  args 
)
static

Static decoder function allows to retrieve integer property from set of RooCmdArgs For use in base member initializers in constructors.

Definition at line 184 of file RooCmdConfig.h.

◆ decodeObjOnTheFly()

template<class ... Args_t>
TObject * RooCmdConfig::decodeObjOnTheFly ( const char *  callerID,
const char *  cmdArgName,
Int_t  objIdx,
TObject defVal,
Args_t &&...  args 
)
static

Static decoder function allows to retrieve object property from set of RooCmdArgs For use in base member initializers in constructors.

Definition at line 218 of file RooCmdConfig.h.

◆ decodeStringOnTheFly()

template<class ... Args_t>
std::string RooCmdConfig::decodeStringOnTheFly ( const char *  callerID,
const char *  cmdArgName,
Int_t  intIdx,
const char *  defVal,
Args_t &&...  args 
)
static

Static decoder function allows to retrieve string property from set of RooCmdArgs For use in base member initializers in constructors.

Definition at line 200 of file RooCmdConfig.h.

◆ defineDependency()

void RooCmdConfig::defineDependency ( const char *  refArgName,
const char *  neededArgName 
)

Define that processing argument name refArgName requires processing of argument named neededArgName to successfully complete parsing.

Definition at line 133 of file RooCmdConfig.cxx.

◆ defineDouble()

Bool_t RooCmdConfig::defineDouble ( const char *  name,
const char *  argName,
Int_t  doubleNum,
Double_t  defValue = 0. 
)

Define Double_t property name 'name' mapped to Double_t in slot 'doubleNum' in RooCmdArg with name argName Define default value for this Double_t property to be defVal in case named argument is not processed.

Definition at line 166 of file RooCmdConfig.cxx.

◆ defineInt()

Bool_t RooCmdConfig::defineInt ( const char *  name,
const char *  argName,
Int_t  intNum,
Int_t  defValue = 0 
)

Define integer property name 'name' mapped to integer in slot 'intNum' in RooCmdArg with name argName Define default value for this int property to be defVal in case named argument is not processed.

Definition at line 144 of file RooCmdConfig.cxx.

◆ defineMutex() [1/2]

void RooCmdConfig::defineMutex ( const char *  )
inline

Definition at line 53 of file RooCmdConfig.h.

◆ defineMutex() [2/2]

template<class... Args_t>
void RooCmdConfig::defineMutex ( const char *  head,
Args_t &&...  tail 
)

Define arguments where any pair is mutually exclusive.

Definition at line 148 of file RooCmdConfig.h.

◆ defineObject()

Bool_t RooCmdConfig::defineObject ( const char *  name,
const char *  argName,
Int_t  setNum,
const TObject defVal = 0,
Bool_t  isArray = kFALSE 
)

Define TObject property name 'name' mapped to object in slot 'setNum' in RooCmdArg with name argName Define default value for this TObject property to be defVal in case named argument is not processed.

If isArray is true, an array of TObjects is harvested in case multiple matching named arguments are processed. If isArray is false, only the TObject in the last processed named argument is retained

Definition at line 215 of file RooCmdConfig.cxx.

◆ defineRequiredArgs()

template<class... Args_t>
void RooCmdConfig::defineRequiredArgs ( const char *  first,
Args_t &&...  args 
)

Add condition that any of listed arguments must be processed for parsing to be declared successful.

Definition at line 138 of file RooCmdConfig.h.

◆ defineSet()

Bool_t RooCmdConfig::defineSet ( const char *  name,
const char *  argName,
Int_t  setNum,
const RooArgSet defVal = 0 
)

Define TObject property name 'name' mapped to object in slot 'setNum' in RooCmdArg with name argName Define default value for this TObject property to be defVal in case named argument is not processed.

If isArray is true, an array of TObjects is harvested in case multiple matching named arguments are processed. If isArray is false, only the TObject in the last processed named argument is retained

Definition at line 241 of file RooCmdConfig.cxx.

◆ defineString()

Bool_t RooCmdConfig::defineString ( const char *  name,
const char *  argName,
Int_t  stringNum,
const char *  defVal = "",
Bool_t  appendMode = kFALSE 
)

Define Double_t property name 'name' mapped to Double_t in slot 'stringNum' in RooCmdArg with name argName Define default value for this Double_t property to be defVal in case named argument is not processed If appendMode is true, values found in multiple matching RooCmdArg arguments will be concatenated in the output string.

If it is false, only the value of the last processed instance is retained

Definition at line 190 of file RooCmdConfig.cxx.

◆ filterCmdList()

RooLinkedList RooCmdConfig::filterCmdList ( RooLinkedList cmdInList,
const char *  cmdNameList,
bool  removeFromInList = true 
) const

Utility function to filter commands listed in cmdNameList from cmdInList.

Filtered arguments are put in the returned list. If removeFromInList is true then these commands are removed from the input list

Definition at line 594 of file RooCmdConfig.cxx.

◆ getDouble()

Double_t RooCmdConfig::getDouble ( const char *  name,
Double_t  defVal = 0 
)

Return Double_t property registered with name 'name'.

If no property is registered, return defVal

Definition at line 494 of file RooCmdConfig.cxx.

◆ getInt()

Int_t RooCmdConfig::getInt ( const char *  name,
Int_t  defVal = 0 
)

Return integer property registered with name 'name'.

If no property is registered, return defVal

Definition at line 482 of file RooCmdConfig.cxx.

◆ getObject()

TObject * RooCmdConfig::getObject ( const char *  name,
TObject defVal = 0 
)

Return TObject property registered with name 'name'.

If no property is registered, return defVal

Definition at line 520 of file RooCmdConfig.cxx.

◆ getObjectList()

const RooLinkedList & RooCmdConfig::getObjectList ( const char *  name)

Return list of objects registered with name 'name'.

Definition at line 542 of file RooCmdConfig.cxx.

◆ getSet()

RooArgSet * RooCmdConfig::getSet ( const char *  name,
RooArgSet defVal = 0 
)

Return RooArgSet property registered with name 'name'.

If no property is registered, return defVal

Definition at line 531 of file RooCmdConfig.cxx.

◆ getString()

const char * RooCmdConfig::getString ( const char *  name,
const char *  defVal = "",
Bool_t  convEmptyToNull = kFALSE 
)

Return string property registered with name 'name'.

If no property is registered, return defVal. If convEmptyToNull is true, empty string will be returned as null pointers

Definition at line 507 of file RooCmdConfig.cxx.

◆ hasProcessed()

Bool_t RooCmdConfig::hasProcessed ( const char *  cmdName) const

Return true if RooCmdArg with name 'cmdName' has been processed.

Definition at line 471 of file RooCmdConfig.cxx.

◆ IsA()

TClass * RooCmdConfig::IsA ( ) const
inlineoverridevirtual
Returns
TClass describing current object

Reimplemented from TObject.

Definition at line 130 of file RooCmdConfig.h.

◆ missingArgs()

std::string RooCmdConfig::missingArgs ( ) const

Return string with names of arguments that were required, but not processed.

Definition at line 109 of file RooCmdConfig.cxx.

◆ ok()

Bool_t RooCmdConfig::ok ( Bool_t  verbose) const

Return true of parsing was successful.

Definition at line 554 of file RooCmdConfig.cxx.

◆ print()

void RooCmdConfig::print ( ) const

Print configuration of parser.

Definition at line 263 of file RooCmdConfig.cxx.

◆ process() [1/4]

Bool_t RooCmdConfig::process ( const RooCmdArg arg)

Process given RooCmdArg.

Definition at line 312 of file RooCmdConfig.cxx.

◆ process() [2/4]

template<class... Args_t>
bool RooCmdConfig::process ( const RooCmdArg arg,
Args_t &&...  args 
)

Process given RooCmdArgs.

Definition at line 160 of file RooCmdConfig.h.

◆ process() [3/4]

Bool_t RooCmdConfig::process ( const RooLinkedList argList)

Process given list with RooCmdArgs.

Definition at line 298 of file RooCmdConfig.cxx.

◆ process() [4/4]

template<typename It_t >
bool RooCmdConfig::process ( It_t  begin,
It_t  end 
)

Process several RooCmdArg using iterators.

Definition at line 170 of file RooCmdConfig.h.

◆ setVerbose()

void RooCmdConfig::setVerbose ( Bool_t  flag)
inline

If flag is true verbose messaging is activated.

Definition at line 38 of file RooCmdConfig.h.

◆ Streamer()

void RooCmdConfig::Streamer ( TBuffer R__b)
overridevirtual

Stream an object of class TObject.

Reimplemented from TObject.

◆ StreamerNVirtual()

void RooCmdConfig::StreamerNVirtual ( TBuffer ClassDef_StreamerNVirtual_b)
inline

Definition at line 130 of file RooCmdConfig.h.

◆ stripCmdList()

void RooCmdConfig::stripCmdList ( RooLinkedList cmdList,
const char *  cmdsToPurge 
) const

Utility function that strips command names listed (comma separated) in cmdsToPurge from cmdList.

Definition at line 574 of file RooCmdConfig.cxx.

Member Data Documentation

◆ _allowUndefined

Bool_t RooCmdConfig::_allowUndefined = false
protected

Definition at line 116 of file RooCmdConfig.h.

◆ _cList

std::vector<Var<RooArgSet*> > RooCmdConfig::_cList
protected

RooArgSet list.

Definition at line 122 of file RooCmdConfig.h.

◆ _dList

std::vector<Var<double> > RooCmdConfig::_dList
protected

Double list.

Definition at line 119 of file RooCmdConfig.h.

◆ _error

Bool_t RooCmdConfig::_error = false
protected

Definition at line 115 of file RooCmdConfig.h.

◆ _fList

TList RooCmdConfig::_fList
protected

Forbidden cmd list.

Definition at line 125 of file RooCmdConfig.h.

◆ _iList

std::vector<Var<int> > RooCmdConfig::_iList
protected

Integer list.

Definition at line 118 of file RooCmdConfig.h.

◆ _mList

TList RooCmdConfig::_mList
protected

Mutex cmd list.

Definition at line 126 of file RooCmdConfig.h.

◆ _name

TString RooCmdConfig::_name
protected

Definition at line 112 of file RooCmdConfig.h.

◆ _oList

std::vector<Var<RooLinkedList> > RooCmdConfig::_oList
protected

Object list.

Definition at line 121 of file RooCmdConfig.h.

◆ _pList

TList RooCmdConfig::_pList
protected

Processed cmd list.

Definition at line 128 of file RooCmdConfig.h.

◆ _rList

TList RooCmdConfig::_rList
protected

Required cmd list.

Definition at line 124 of file RooCmdConfig.h.

◆ _sList

std::vector<Var<std::string> > RooCmdConfig::_sList
protected

String list.

Definition at line 120 of file RooCmdConfig.h.

◆ _verbose

Bool_t RooCmdConfig::_verbose = false
protected

Definition at line 114 of file RooCmdConfig.h.

◆ _yList

TList RooCmdConfig::_yList
protected

Dependency cmd list.

Definition at line 127 of file RooCmdConfig.h.

Libraries for RooCmdConfig:
[legend]

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