41{
47
50
51
53 while (inputfile &&
inputfile.getline(buf,BufferSize)) {
54 std::istringstream
line(buf);
55
56 std::string region;
60 if (isMatched) break;
61 }
62 if (!isMatched) return false;
63
64
66 std::istringstream infileStr(buf);
67 std::string boardName;
68 infileStr >> boardName;
69
70 for (
int itype=0; itype <
m_HPBToSL.getNumberOfType(); itype++) {
71 int board_number{0};
72 infileStr >> board_number;
73
75 for (int j=0; j < board_number; j++) {
77 std::istringstream infileStr2(buf);
79 infileStr2 >> id >> port;
81
82 m_HPBToSL.setSLPortToHPB(itype,
id, port);
83 }
84 }
85 }
86
87
89 std::istringstream infileStr(buf);
90 std::string boardName;
91 infileStr >> boardName;
92
93 for (
int itype=0; itype <
m_SBToHPB.getNumberOfType(); itype++) {
94
95 if (itype ==
WISB || itype ==
SISB)
continue;
96 int board_number{0};
97 infileStr >> board_number;
98
100 for (int j=0; j < board_number; j++) {
102 std::istringstream infileStr2(buf);
104 infileStr2 >> id >> idHPB >> port;
105 if (id < 0 || idHPB < 0 || port < 0) continue;
107
108 m_SBToHPB.setHPBIdToSB(itype,
id, idHPB);
109 m_SBToHPB.setHPBPortToSB(itype,
id, port);
110 }
111 }
112 }
113
114
115 if (
inputfile.getline(buf, BufferSize)) {
116 std::istringstream infileStr(buf);
117 std::string boardName;
118 infileStr >> boardName;
119
120 for (
int itype=0; itype <
m_PPToSB.getNumberOfType(); itype++) {
121 int board_number{0};
122 infileStr >> board_number;
123
124 m_PPToSB.setNumber(itype, board_number);
125 for(int j=0; j<board_number; j++) {
127 std::istringstream infileStr2(buf);
128 int id{0};
129 int idSB1{0};
130 int idSB2{0};
131 infileStr2 >> id >> idSB1 >> idSB2;
133 m_PPToSB.setSBIdToPP(itype, 0, j, idSB1);
134 m_PPToSB.setSBIdToPP(itype, 1, j, idSB2);
135 }
136 }
137 }
138
139 return true;
140}
static std::string getFilename(int type)
static std::string find_file(const std::string &logical_file_name, const std::string &search_path)
bool isMatched(int matchInfo)