equal
deleted
inserted
replaced
1122 /// \brief Gives back true when the SectionReader can process |
1122 /// \brief Gives back true when the SectionReader can process |
1123 /// the section with the given header line. |
1123 /// the section with the given header line. |
1124 /// |
1124 /// |
1125 /// It gives back true when the header line starts with \c \@edgeset, |
1125 /// It gives back true when the header line starts with \c \@edgeset, |
1126 /// and the header line's name and the edgeset's name are the same. |
1126 /// and the header line's name and the edgeset's name are the same. |
|
1127 /// The sections with @uedgeset head line could be read with this |
|
1128 /// section reader too. |
1127 virtual bool header(const std::string& line) { |
1129 virtual bool header(const std::string& line) { |
1128 std::istringstream ls(line); |
1130 std::istringstream ls(line); |
1129 std::string command; |
1131 std::string command; |
1130 std::string id; |
1132 std::string id; |
1131 ls >> command >> id; |
1133 ls >> command >> id; |
1132 return command == "@edgeset" && name == id; |
1134 return (command == "@edgeset" || command == "@uedgeset") && name == id; |
1133 } |
1135 } |
1134 |
1136 |
1135 /// \brief Reader function of the section. |
1137 /// \brief Reader function of the section. |
1136 /// |
1138 /// |
1137 /// It reads the content of the section. |
1139 /// It reads the content of the section. |
1429 /// \brief Gives back true when the SectionReader can process |
1431 /// \brief Gives back true when the SectionReader can process |
1430 /// the section with the given header line. |
1432 /// the section with the given header line. |
1431 /// |
1433 /// |
1432 /// It gives back true when the header line starts with \c \@uedgeset, |
1434 /// It gives back true when the header line starts with \c \@uedgeset, |
1433 /// and the header line's name and the edgeset's name are the same. |
1435 /// and the header line's name and the edgeset's name are the same. |
|
1436 /// The sections with @edgeset head line could be read with this |
|
1437 /// section reader too. |
1434 virtual bool header(const std::string& line) { |
1438 virtual bool header(const std::string& line) { |
1435 std::istringstream ls(line); |
1439 std::istringstream ls(line); |
1436 std::string command; |
1440 std::string command; |
1437 std::string id; |
1441 std::string id; |
1438 ls >> command >> id; |
1442 ls >> command >> id; |
1439 return command == "@uedgeset" && name == id; |
1443 return (command == "@edgeset" || command == "@uedgeset") && name == id; |
1440 } |
1444 } |
1441 |
1445 |
1442 /// \brief Reader function of the section. |
1446 /// \brief Reader function of the section. |
1443 /// |
1447 /// |
1444 /// It reads the content of the section. |
1448 /// It reads the content of the section. |