[Avida-SVN] r1207 - in development: . source/analyze

avidaedward at myxo.css.msu.edu avidaedward at myxo.css.msu.edu
Sat Jan 27 22:10:52 PST 2007


Author: avidaedward
Date: 2007-01-28 01:10:52 -0500 (Sun, 28 Jan 2007)
New Revision: 1207

Modified:
   development/
   development/source/analyze/cAnalyze.cc
   development/source/analyze/cAnalyze.h
Log:
 r1249 at clearly:  kaben | 2007-01-22 22:32:21 -0500
 Added cAnalyzeSend(cStringList) command.



Property changes on: development
___________________________________________________________________
Name: svk:merge
   - 079b078a-dbed-46b9-b3da-37668d4295ca:/avida/local/development:1248
   + 079b078a-dbed-46b9-b3da-37668d4295ca:/avida/local/development:1249

Modified: development/source/analyze/cAnalyze.cc
===================================================================
--- development/source/analyze/cAnalyze.cc	2007-01-28 06:10:49 UTC (rev 1206)
+++ development/source/analyze/cAnalyze.cc	2007-01-28 06:10:52 UTC (rev 1207)
@@ -41,6 +41,7 @@
 #include "cLandscape.h"
 #include "cPhenotype.h"
 #include "cSpecies.h"
+#include "cStringIterator.h"
 #include "tArgDataEntry.h"
 #include "tDataEntry.h"
 #include "tDataEntryCommand.h"
@@ -8006,3 +8007,16 @@
 
     return true;
 }
+
+bool cAnalyze::Send(const cStringList &list_input)
+{
+    bool did_succeed = true;
+    cStringIterator list_it(list_input);
+    while ( list_it.AtEnd() == false ) {
+        list_it.Next();
+        if( !Send(list_it.Get()) ) {
+            did_succeed = false;
+        }
+    }
+    return did_succeed;
+}

Modified: development/source/analyze/cAnalyze.h
===================================================================
--- development/source/analyze/cAnalyze.h	2007-01-28 06:10:49 UTC (rev 1206)
+++ development/source/analyze/cAnalyze.h	2007-01-28 06:10:52 UTC (rev 1207)
@@ -277,6 +277,7 @@
   void RunFile(cString filename);
   void RunInteractive();
   bool Send(const cString &text_input);
+  bool Send(const cStringList &list_input);
   
   int GetCurrentBatchID() { return cur_batch; }
   cGenotypeBatch& GetCurrentBatch() { return batch[cur_batch]; }




More information about the Avida-cvs mailing list