[Lemon-commits] [lemon_svn] deba: r1600 - hugo/trunk/src/lemon
Lemon SVN
svn at lemon.cs.elte.hu
Mon Nov 6 20:46:30 CET 2006
Author: deba
Date: Fri Mar 4 18:11:54 2005
New Revision: 1600
Modified:
hugo/trunk/src/lemon/graph_writer.h
Log:
Fix documentation.
Temporarly removing the exception handling.
Modified: hugo/trunk/src/lemon/graph_writer.h
==============================================================================
--- hugo/trunk/src/lemon/graph_writer.h (original)
+++ hugo/trunk/src/lemon/graph_writer.h Fri Mar 4 18:11:54 2005
@@ -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) {
More information about the Lemon-commits
mailing list