Gaudi Framework, version v23r6

Home   Generated: Wed Jan 30 2013
 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 stringCSTR
 

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.


Generated at Wed Jan 30 2013 17:13:43 for Gaudi Framework, version v23r6 by Doxygen version 1.8.2 written by Dimitri van Heesch, © 1997-2004