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;
74 for (int j=0; j < board_number; j++) {
76 std::istringstream infileStr2(buf);
78 infileStr2 >> id >> port;
80 m_HPBToSL.setSLPortToHPB(itype,
id, port);
81 }
82 }
83 }
84
85
87 std::istringstream infileStr(buf);
88 std::string boardName;
89 infileStr >> boardName;
90
91 for (
int itype=0; itype <
m_SBToHPB.getNumberOfType(); itype++) {
92
93 if (itype ==
WISB || itype ==
SISB)
continue;
94 int board_number{0};
95 infileStr >> board_number;
97 for (int j=0; j < board_number; j++) {
99 std::istringstream infileStr2(buf);
101 infileStr2 >> id >> idHPB >> port;
102 if (id < 0 || idHPB < 0 || port < 0) continue;
104 m_SBToHPB.setHPBIdToSB(itype,
id, idHPB);
105 m_SBToHPB.setHPBPortToSB(itype,
id, port);
106 }
107 }
108 }
109
110
111 if (
inputfile.getline(buf, BufferSize)) {
112 std::istringstream infileStr(buf);
113 std::string boardName;
114 infileStr >> boardName;
115
116 for (
int itype=0; itype <
m_PPToSB.getNumberOfType(); itype++) {
117 int board_number{0};
118 infileStr >> board_number;
119 m_PPToSB.setNumber(itype, board_number);
120 for(int j=0; j<board_number; j++) {
122 std::istringstream infileStr2(buf);
123 int id{0};
124 int idSB1{0};
125 int idSB2{0};
126 infileStr2 >> id >> idSB1 >> idSB2;
128 m_PPToSB.setSBIdToPP(itype, 0, j, idSB1);
129 m_PPToSB.setSBIdToPP(itype, 1, j, idSB2);
130 }
131 }
132 }
133
134 return true;
135}
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)