Changeset 2464:d4bdbc35c927 in lemon-0.x for lemon/lemon_reader.h
- Timestamp:
- 08/24/07 16:32:55 (17 years ago)
- Branch:
- default
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@3302
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lemon/lemon_reader.h
r2461 r2464 1125 1125 /// It gives back true when the header line starts with \c \@edgeset, 1126 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 1129 virtual bool header(const std::string& line) { 1128 1130 std::istringstream ls(line); … … 1130 1132 std::string id; 1131 1133 ls >> command >> id; 1132 return command == "@edgeset"&& name == id;1134 return (command == "@edgeset" || command == "@uedgeset") && name == id; 1133 1135 } 1134 1136 … … 1432 1434 /// It gives back true when the header line starts with \c \@uedgeset, 1433 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 1438 virtual bool header(const std::string& line) { 1435 1439 std::istringstream ls(line); … … 1437 1441 std::string id; 1438 1442 ls >> command >> id; 1439 return command == "@uedgeset"&& name == id;1443 return (command == "@edgeset" || command == "@uedgeset") && name == id; 1440 1444 } 1441 1445
Note: See TracChangeset
for help on using the changeset viewer.