#ifndef ROO_MAP_CAT_ENTRY
#define ROO_MAP_CAT_ENTRY
#include "Riosfwd.h"
#include "TNamed.h"
#include "TRegexp.h"
#include "RooCatType.h"
class RooMapCatEntry : public TNamed {
public:
inline RooMapCatEntry() : TNamed(), _regexp(""), _cat() {}
virtual ~RooMapCatEntry() {} ;
RooMapCatEntry(const char* exp, const RooCatType* cat) ;
RooMapCatEntry(const RooMapCatEntry& other) ;
virtual TObject* Clone(const char* newName=0) const {
RooMapCatEntry* ca = new RooMapCatEntry(*this);
if (newName) { ca->SetName(newName) ; }
return ca ;
}
inline Bool_t ok() { return (_regexp.Status()==TRegexp::kOK) ; }
Bool_t match(const char* testPattern) const ;
inline const RooCatType& outCat() const { return _cat ; }
protected:
TString mangle(const char* exp) const ;
TRegexp _regexp ;
RooCatType _cat ;
ClassDef(RooMapCatEntry,1)
} ;
#endif
Last update: Thu Jan 17 08:45:11 2008
This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.