ATLAS Offline Software
Loading...
Searching...
No Matches
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
6#include <cstdio>
7
8void 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}
unsigned long inode
Definition CoWRecord.h:27
void parseRecord(std::istream &in)
Definition CoWRecord.cxx:8
CoWRecordStats m_ms
Definition CoWRecord.h:28
unsigned int dmaj
Definition CoWRecord.h:29
unsigned long addrEnd
Definition CoWRecord.h:24
unsigned long addrStart
Definition CoWRecord.h:24
unsigned int dmin
Definition CoWRecord.h:29
unsigned long long offset
Definition CoWRecord.h:26