#include "RootCnv/RootDataConnection.h"
#include "RootUtils.h"
#include "GaudiKernel/IOpaqueAddress.h"
#include "GaudiKernel/IIncidentSvc.h"
#include "GaudiKernel/LinkManager.h"
#include "GaudiKernel/strcasecmp.h"
#include "GaudiKernel/DataObject.h"
#include "GaudiKernel/IRegistry.h"
#include "GaudiKernel/Incident.h"
#include "GaudiKernel/MsgStream.h"
#include "TROOT.h"
#include "TFile.h"
#include "TTree.h"
#include "TLeaf.h"
#include "TClass.h"
#include "TBranch.h"
#include "Compression.h"
#include "TTreePerfStats.h"
#include <stdexcept>
#include "RootTool.h"
Go to the source code of this file.
|
| static bool | match_wild (const char *str, const char *pat) |
| |
| static bool match_wild |
( |
const char * |
str, |
|
|
const char * |
pat |
|
) |
| |
|
static |
Definition at line 48 of file RootDataConnection.cpp.
{
static char table[256];
static bool first = true;
bool star = false;
if ( first ) {
for (
int i = 0;
i < 256; ++
i) table[
i] =
char(
i);
first = false;
}
loopStart:
for (s = str, p = pat; *
s; ++
s, ++p) {
switch (*p) {
case '?':
if (*s == '.') goto starCheck;
break;
case '*':
star = true;
do { ++pat; } while (*pat == '*');
if (!*pat) return true;
goto loopStart;
default:
if ( *(table+*s) != *(table+*p) )
goto starCheck;
break;
}
}
while (*p == '*') ++p;
return (!*p);
starCheck:
if (!star) return false;
str++;
goto loopStart;
}
| int s_compressionLevel = ROOT::CompressionSettings(ROOT::kLZMA,6) |
|
static |