| # Gaudi Framework, version v25r0 |

Home |  | Generated: Mon Feb 17 2014

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Typedefs | Functions | Variables
RootDataConnection.cpp File Reference
`#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"`
Include dependency graph for RootDataConnection.cpp:

Go to the source code of this file.

## Typedefs
typedef const string & | CSTR

## Functions
static bool | match_wild (const char *str, const char *pat)

## Variables
static string | s_empty
static string | s_local = "<localDB>"
static int | s_compressionLevel = ROOT::CompressionSettings(ROOT::kLZMA,6)

## Typedef Documentation

typedef const string& CSTR

Definition at line 36 of file RootDataConnection.cpp.

## Function Documentation

static bool match_wild | ( | const char * | str,
|  | const char * | pat
| ) |  |
| static

Definition at line 48 of file RootDataConnection.cpp.

{
//
// Credits: Code from Alessandro Felice Cantatore.
//
static char table[256];
static bool first = true;
const char *s, *p;
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;
str = s, pat = p;
do { ++pat; } while (*pat == '*');
if (!*pat) return true;
goto loopStart;
default:
if ( *(table+*s) != *(table+*p) )
goto starCheck;
break;
} /* endswitch */
} /* endfor */
while (*p == '*') ++p;
return (!*p);
starCheck:
if (!star) return false;
str++;
goto loopStart;
}

## Variable Documentation

int s_compressionLevel = ROOT::CompressionSettings(ROOT::kLZMA,6)
| static

Definition at line 46 of file RootDataConnection.cpp.

string s_empty
| static

Definition at line 38 of file RootDataConnection.cpp.

string s_local = "<localDB>"
| static

Definition at line 39 of file RootDataConnection.cpp.