32 std::string_view module =std::string_view(
m_blockname).substr(0,space);
33 std::string_view region = std::string_view(
m_blockname).substr(space+1,1);
37 if(
type ==
"WT") offset = 1;
38 if(
type ==
"WD") offset = 2;
39 if(
type ==
"ST") offset = 3;
40 if(
type ==
"SD") offset = 4;
41 if(
type ==
"WI") offset = 5;
42 if(
type ==
"SI") offset = 6;
43 if(
type ==
"W") offset = 1;
44 if(
type ==
"S") offset = 2;
46 while(getline(
file,buf)){
47 if(buf.compare(0,1,region)==0)
break;
50 while(getline(
file,buf)){
51 if(buf.compare(1,module.size(),module)==0)
break;
54 while(getline(
file,buf)){
55 if(buf.compare(0,2,
" ")!=0)
break;
56 if(buf.compare(2,1,
"0")==0) offset--;
58 std::istringstream line(buf);
59 std::vector<int> entry;
60 for(
int i=0; i<3; i++){
63 entry.push_back(temp);