[Lemon-commits] deba: r3303 - lemon/trunk/lemon

Lemon SVN svn at lemon.cs.elte.hu
Fri Aug 24 16:32:55 CEST 2007


Author: deba
Date: Fri Aug 24 16:32:55 2007
New Revision: 3303

Modified:
   lemon/trunk/lemon/lemon_reader.h

Log:
uedgeset is an alias for edgeset



Modified: lemon/trunk/lemon/lemon_reader.h
==============================================================================
--- lemon/trunk/lemon/lemon_reader.h	(original)
+++ lemon/trunk/lemon/lemon_reader.h	Fri Aug 24 16:32:55 2007
@@ -1124,12 +1124,14 @@
     ///
     /// It gives back true when the header line starts with \c \@edgeset,
     /// and the header line's name and the edgeset's name are the same.
+    /// The sections with @uedgeset head line could be read with this
+    /// section reader too.
     virtual bool header(const std::string& line) {
       std::istringstream ls(line);
       std::string command;
       std::string id;
       ls >> command >> id;
-      return command == "@edgeset" && name == id;
+      return (command == "@edgeset" || command == "@uedgeset") && name == id;
     }
 
     /// \brief Reader function of the section.
@@ -1431,12 +1433,14 @@
     ///
     /// It gives back true when the header line starts with \c \@uedgeset,
     /// and the header line's name and the edgeset's name are the same.
+    /// The sections with @edgeset head line could be read with this
+    /// section reader too.
     virtual bool header(const std::string& line) {
       std::istringstream ls(line);
       std::string command;
       std::string id;
       ls >> command >> id;
-      return command == "@uedgeset" && name == id;
+      return (command == "@edgeset" || command == "@uedgeset") && name == id;
     }
 
     /// \brief Reader function of the section.



More information about the Lemon-commits mailing list