ATLAS Offline Software
Macros | Functions
ReadCards.cxx File Reference
#include <string>
#include <algorithm>
#include <stdio.h>
#include <sys/types.h>
#include <unistd.h>
#include "utils.h"
#include "ReadCards.h"
Include dependency graph for ReadCards.cxx:

Go to the source code of this file.

Macros

#define RESPLOTDIR   ""
 set up the search path for the config files More...
 

Functions

int count (const std::string &s, const std::string &p)
 

Detailed Description


          This is a *good* parser. It now seems to parse 
          quite well, and is quite neatly coded.   
Author
M.Sutton
Date
Tue Apr 26 13:44:42 CEST 2005

Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration

Definition in file ReadCards.cxx.

Macro Definition Documentation

◆ RESPLOTDIR

#define RESPLOTDIR   ""

set up the search path for the config files

Definition at line 43 of file ReadCards.cxx.

Function Documentation

◆ count()

int count ( const std::string &  s,
const std::string &  p 
)

Definition at line 109 of file ReadCards.cxx.

109  {
110  if ( s.find(p)==std::string::npos ) return 0;
111  int count = 0;
112  for ( size_t i=0 ; i<s.size() ; i++ ) {
113  if ( s.substr(i,p.size()) == p) count++;
114  }
115  return count;
116 }
python.SystemOfUnits.s
int s
Definition: SystemOfUnits.py:131
count
int count(const std::string &s, const std::string &p)
Definition: ReadCards.cxx:109
python.utils.AtlRunQueryDQUtils.p
p
Definition: AtlRunQueryDQUtils.py:210
lumiFormat.i
int i
Definition: lumiFormat.py:85