27 std::string_view module = std::string_view(
m_blockname).substr(0, space);
28 std::string_view region =
30 std::string_view
type = std::string_view(
m_blockname).substr(space + 2);
58 while (getline(
file, buf)) {
59 if (buf.compare(0, 1, region) == 0) {
64 while (getline(
file, buf)) {
65 if (buf.compare(1, module.size(), module) == 0) {
70 while (getline(
file, buf)) {
71 if (buf.compare(0, 2,
" ") != 0) {
74 if (buf.compare(2, 1,
"0") == 0) {
78 std::istringstream line(buf);
79 std::vector<int> entry;
80 for (
int i = 0; i < 3; i++) {
83 entry.push_back(temp);