# HG changeset patch # User Balazs Dezso # Date 1223478173 -7200 # Node ID dd4f08b7e2037e7060fd3e5d34257b15adeefc5b # Parent 47ec522b838e6af659b86fb1ee47e359d00b91dc Changes in LGF related part of the migration guide diff -r 47ec522b838e -r dd4f08b7e203 doc/migration.dox --- a/doc/migration.dox Wed Oct 08 14:21:01 2008 +0100 +++ b/doc/migration.dox Wed Oct 08 17:02:53 2008 +0200 @@ -57,7 +57,37 @@ the words \c graph, \c digraph, \c edge and \c arc, so it replaces them in strings, comments etc. as well as in all identifiers. -\section migration-lgf LGF tools +\section migration-lgf LGF tools + - The \ref lgf-format "LGF file format" has changed, + \@nodeset has changed to \@nodes, + \@edgeset and \@uedgeset to \@arcs or + \@edges, which become completely equivalents. The + \@nodes, \@edges and \@uedges sections are + removed from the format, the content of them should be + the part of \@attributes section. The data fields in + the sections must follow a strict format, they must be either character + sequences without whitespaces or quoted strings. + - The LemonReader and LemonWriter core interfaces + are no longer available. + - The implementation of the general section readers and writers has changed + they are simple functors now. Beside the old + stream based section handling, currently line oriented section + reading and writing are also supported. In the + section readers the lines must be counted manually. The sections + should be read and written with the SectionWriter and SectionReader + classes. + - Instead of the item readers and writers, item converters should be + used. The converters are functors, which map the type to + std::string or std::string to the type. The converters for standard + containers hasn't yet been implemented in the new LEMON. The converters + can return strings in any format, because if it is necessary, the LGF + writer and reader will quote and unquote the given value. + - The DigraphReader and DigraphWriter can used similarly to the + 0.x series, however the read or write prefix of + the member functions are removed. + - The new LEMON supports the function like interface, the \c + digraphReader and \c digraphWriter functions are more convenient than + using the classes directly. \section migration-search BFS, DFS and Dijkstra - Using the function interface of BFS, DFS and %Dijkstra both source and