Fix documentation.
Temporarly removing the exception handling.
1.1 --- a/src/lemon/graph_writer.h Fri Mar 04 17:10:23 2005 +0000
1.2 +++ b/src/lemon/graph_writer.h Fri Mar 04 17:11:54 2005 +0000
1.3 @@ -47,9 +47,9 @@
1.4 /// The value type.
1.5 typedef _Value Value;
1.6
1.7 - /// \brief Writes a value from the given stream.
1.8 + /// \brief Writes a value to the given stream.
1.9 ///
1.10 - /// Writes a value from the given stream.
1.11 + /// Writes a value to the given stream.
1.12 void write(std::ostream& os, const Value& value) {
1.13 os << value << '\t';
1.14 }
1.15 @@ -72,9 +72,9 @@
1.16 /// the writer creates escape sequences from special characters.
1.17 QuotedStringWriter(bool _escaped = true) : escaped(_escaped) {}
1.18
1.19 - /// \brief Writes a quoted string from the given stream.
1.20 + /// \brief Writes a quoted string to the given stream.
1.21 ///
1.22 - /// Writes a quoted string from the given stream.
1.23 + /// Writes a quoted string to the given stream.
1.24 void write(std::ostream& os, const std::string& value) {
1.25 os << "\"";
1.26 if (escaped) {
1.27 @@ -274,7 +274,9 @@
1.28 void writeEdgeSet() {
1.29 if (edge_map_writers.size() == 0) return;
1.30 if (node_map_writers.size() == 0) {
1.31 - throw Exception() << "Missing node id map";
1.32 + // ErrorMessage message;
1.33 + // message << "Missing node id map";
1.34 + // throw IOLogicError(message);
1.35 }
1.36 os << "@edgeset" << std::endl;
1.37 os << "\t\t";
1.38 @@ -295,7 +297,7 @@
1.39 void writeNodes() {
1.40 if (node_writers.size() == 0) return;
1.41 if (node_map_writers.size() == 0) {
1.42 - throw Exception() << "Missing node id map";
1.43 + // throw Exception() << "Missing node id map";
1.44 }
1.45 os << "@nodes" << std::endl;
1.46 for (int i = 0; i < (int)node_writers.size(); ++i) {
1.47 @@ -308,7 +310,7 @@
1.48 void writeEdges() {
1.49 if (edge_writers.size() == 0) return;
1.50 if (edge_map_writers.size() == 0) {
1.51 - throw Exception() << "Missing edge id map";
1.52 + // throw Exception() << "Missing edge id map";
1.53 }
1.54 os << "@edges" << std::endl;
1.55 for (int i = 0; i < (int)edge_writers.size(); ++i) {