ClassImp(AliCDBPath)
//_____________________________________________________________________________
-AliCDBPath::AliCDBPath() {
+AliCDBPath::AliCDBPath() :
+ TObject(),
+ fPath(""),
+ fLevel0(""),
+ fLevel1(""),
+ fLevel2(""),
+ fIsValid(kTRUE),
+ fIsWildcard(kFALSE)
+{
// default constructor
}
//_____________________________________________________________________________
AliCDBPath::AliCDBPath(const AliCDBPath& other):
-TObject(),
-fPath(other.fPath)
+ TObject(other),
+ fPath(other.fPath),
+ fLevel0(""),
+ fLevel1(""),
+ fLevel2(""),
+ fIsValid(other.fIsValid),
+ fIsWildcard(other.fIsWildcard)
{
// constructor
Init();
//_____________________________________________________________________________
AliCDBPath::AliCDBPath(const char* level0, const char* level1,
const char* level2):
-fLevel0(level0),
-fLevel1(level1),
-fLevel2(level2)
+ TObject(),
+ fPath(""),
+ fLevel0(level0),
+ fLevel1(level1),
+ fLevel2(level2),
+ fIsValid(kTRUE),
+ fIsWildcard(kFALSE)
{
// constructor
//_____________________________________________________________________________
AliCDBPath::AliCDBPath(const char* path):
-fPath(path)
+ TObject(),
+ fPath(path),
+ fLevel0(""),
+ fLevel1(""),
+ fLevel2(""),
+ fIsValid(kTRUE),
+ fIsWildcard(kFALSE)
{
// constructor
//_____________________________________________________________________________
AliCDBPath::AliCDBPath(const TString& path):
-fPath(path)
+ TObject(),
+ fPath(path),
+ fLevel0(""),
+ fLevel1(""),
+ fLevel2(""),
+ fIsValid(kTRUE),
+ fIsWildcard(kFALSE)
{
Init();
InitPath();
TString aString(strippedString);
strippedString = aString.Strip(TString::kBoth, '/');
- TObjArray* anArray = TString(strippedString).Tokenize("/");
+ TObjArray* anArray = TString(strippedString).Tokenize("/");
Int_t paramCount = anArray->GetEntriesFast();
if (paramCount == 1) {
Bool_t AliCDBPath::IsWord(const TString& str) {
// check if string is a word
- TRegexp pattern("^[a-zA-Z0-9_]+$");
+ TRegexp pattern("^[a-zA-Z0-9_.]+$");
return str.Contains(pattern);
}