# HG changeset patch # User deba # Date 1109956314 0 # Node ID 7e529047df1a64f3f79d9d56e9a04cd28d4347cc # Parent 04e5825000c5fc9d53ea8e1fcf8754da571b13c0 Fix documentation. Temporarly removing the exception handling. diff -r 04e5825000c5 -r 7e529047df1a src/lemon/graph_writer.h --- a/src/lemon/graph_writer.h Fri Mar 04 17:10:23 2005 +0000 +++ b/src/lemon/graph_writer.h Fri Mar 04 17:11:54 2005 +0000 @@ -47,9 +47,9 @@ /// The value type. typedef _Value Value; - /// \brief Writes a value from the given stream. + /// \brief Writes a value to the given stream. /// - /// Writes a value from the given stream. + /// Writes a value to the given stream. void write(std::ostream& os, const Value& value) { os << value << '\t'; } @@ -72,9 +72,9 @@ /// the writer creates escape sequences from special characters. QuotedStringWriter(bool _escaped = true) : escaped(_escaped) {} - /// \brief Writes a quoted string from the given stream. + /// \brief Writes a quoted string to the given stream. /// - /// Writes a quoted string from the given stream. + /// Writes a quoted string to the given stream. void write(std::ostream& os, const std::string& value) { os << "\""; if (escaped) { @@ -274,7 +274,9 @@ void writeEdgeSet() { if (edge_map_writers.size() == 0) return; if (node_map_writers.size() == 0) { - throw Exception() << "Missing node id map"; + // ErrorMessage message; + // message << "Missing node id map"; + // throw IOLogicError(message); } os << "@edgeset" << std::endl; os << "\t\t"; @@ -295,7 +297,7 @@ void writeNodes() { if (node_writers.size() == 0) return; if (node_map_writers.size() == 0) { - throw Exception() << "Missing node id map"; + // throw Exception() << "Missing node id map"; } os << "@nodes" << std::endl; for (int i = 0; i < (int)node_writers.size(); ++i) { @@ -308,7 +310,7 @@ void writeEdges() { if (edge_writers.size() == 0) return; if (edge_map_writers.size() == 0) { - throw Exception() << "Missing edge id map"; + // throw Exception() << "Missing edge id map"; } os << "@edges" << std::endl; for (int i = 0; i < (int)edge_writers.size(); ++i) {