ATLAS Offline Software
CoWRecord.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #include "CoWTools/CoWRecord.h"
6 #include <cstdio>
7 
8 void CoWTools::CoWRecord::parseRecord(std::istream &in){
9  std::string line;
10  std::getline(in,line);
11  int len=0;
12  char pbuff[5]={"----"};
13  //int dmin,dmaj;
14  sscanf(line.c_str(),"%08lx-%08lx %4s %08llx %02x:%02x %80lu %n",
15  &addrStart,
16  &addrEnd,
17  pbuff,
18  &offset,
19  &dmaj,
20  &dmin,
21  &inode,
22  &len);
23  //std::cout<<"MR len= "<<len<<" lineLen="<<line.size()<<", "<<line<<std::endl;
24  for(int i=0;i<3;i++){
25  perms|=((pbuff[i]!='-')<<(4-i));
26  }
27  perms |= (pbuff[3]=='p');
28  m_ms.parseRecord(in);
29 }
checkFileSG.line
line
Definition: checkFileSG.py:75
CoWTools::CoWRecord::offset
unsigned long long offset
Definition: CoWRecord.h:26
CoWTools::CoWRecord::parseRecord
void parseRecord(std::istream &in)
Definition: CoWRecord.cxx:8
CoWTools::CoWRecord::addrEnd
unsigned long addrEnd
Definition: CoWRecord.h:24
CoWTools::CoWRecord::addrStart
unsigned long addrStart
Definition: CoWRecord.h:24
lumiFormat.i
int i
Definition: lumiFormat.py:85
CoWTools::CoWRecordStats::parseRecord
void parseRecord(std::istream &in)
Definition: CoWRecordStats.cxx:40
CoWTools::CoWRecord::perms
short perms
Definition: CoWRecord.h:25
CoWTools::CoWRecord::dmaj
unsigned int dmaj
Definition: CoWRecord.h:29
CoWTools::CoWRecord::dmin
unsigned int dmin
Definition: CoWRecord.h:29
CoWTools::CoWRecord::m_ms
CoWRecordStats m_ms
Definition: CoWRecord.h:28
CoWRecord.h
inode
Definition: listroot.cxx:155