| # Gaudi Framework, version v23r0 |

Home |  | Generated: Mon Jan 30 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/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 "TTreePerfStats.h"`
`#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>"

## Typedef Documentation

typedef const string& CSTR

Definition at line 29 of file RootDataConnection.cpp.

## Function Documentation

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

Definition at line 40 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

string s_empty`[static]`

Definition at line 31 of file RootDataConnection.cpp.

string s_local = "<localDB>"`[static]`

Definition at line 32 of file RootDataConnection.cpp.

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