Gaudi Framework, version v23r2

Home   Generated: Thu Jun 28 2012
Typedefs | Functions | Variables

RootDataConnection.cpp File Reference

#include "RootCnv/RootDataConnection.h"
#include "RootUtils.h"
#include "GaudiKernel/IOpaqueAddress.h"
#include "GaudiKernel/LinkManager.h"
#include "GaudiKernel/strcasecmp.h"
#include "GaudiKernel/DataObject.h"
#include "GaudiKernel/IRegistry.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 34 of file RootDataConnection.cpp.


Function Documentation

static bool match_wild ( const char *  str,
const char *  pat 
) [static]

Definition at line 46 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 44 of file RootDataConnection.cpp.

string s_empty [static]

Definition at line 36 of file RootDataConnection.cpp.

string s_local = "<localDB>" [static]

Definition at line 37 of file RootDataConnection.cpp.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines

Generated at Thu Jun 28 2012 23:27:33 for Gaudi Framework, version v23r2 by Doxygen version 1.7.2 written by Dimitri van Heesch, © 1997-2004