lmi-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lmi-commits] [4983] Buffer certain diagnostics


From: Greg Chicares
Subject: [lmi-commits] [4983] Buffer certain diagnostics
Date: Fri, 11 Jun 2010 15:23:17 +0000

Revision: 4983
          http://svn.sv.gnu.org/viewvc/?view=rev&root=lmi&revision=4983
Author:   chicares
Date:     2010-06-11 15:23:16 +0000 (Fri, 11 Jun 2010)
Log Message:
-----------
Buffer certain diagnostics

Modified Paths:
--------------
    lmi/trunk/xml_serializable.tpp

Modified: lmi/trunk/xml_serializable.tpp
===================================================================
--- lmi/trunk/xml_serializable.tpp      2010-06-11 14:37:19 UTC (rev 4982)
+++ lmi/trunk/xml_serializable.tpp      2010-06-11 15:23:16 UTC (rev 4983)
@@ -42,6 +42,7 @@
 
 #include <algorithm>              // std::copy(), std::find()
 #include <iterator>               // std::back_inserter
+#include <sstream>
 #include <vector>
 
 template<typename T>
@@ -117,6 +118,8 @@
 using namespace xml;
 #endif // __BORLANDC__
 
+    std::ostringstream oss;
+
     std::map<std::string, std::string> detritus_map;
 
     std::list<std::string> residuary_names;
@@ -149,14 +152,13 @@
             }
         else
             {
-            warning()
-                << "XML tag '"
-                << node_tag
-                << "' not recognized by this version of the program."
-                << LMI_FLUSH
-                ;
+            oss << "  '" << node_tag << "'\n";
             }
         }
+    if(!oss.str().empty())
+        {
+        warning() << "Unrecognized XML tags:\n" << oss.str() << LMI_FLUSH;
+        }
 
     redintegrate_ex_post(file_version, detritus_map, residuary_names);
 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]