Commit in lcio/src/cpp/src/UTIL on MAIN
LCRelationNavigator.cc+7-41.4 -> 1.5
fixed bug LCIO-43 - name of collection parameters From/ToType

lcio/src/cpp/src/UTIL
LCRelationNavigator.cc 1.4 -> 1.5
diff -u -r1.4 -r1.5
--- LCRelationNavigator.cc	15 Apr 2005 08:37:52 -0000	1.4
+++ LCRelationNavigator.cc	4 Aug 2006 14:54:22 -0000	1.5
@@ -7,6 +7,9 @@
 #include "IMPL/LCRelationImpl.h"
 #include "EVENT/LCIO.h"
 
+#define RELATIONFROMTYPESTR "FromType"
+#define RELATIONTOTYPESTR "ToType"
+
 using namespace EVENT ;
 using namespace IMPL ;
 
@@ -15,8 +18,8 @@
 
   LCRelationNavigator::LCRelationNavigator( const EVENT::LCCollection* col ) :
   
-    _from( col->getParameters().getStringVal("RelationFromType") ) ,
-    _to( col->getParameters().getStringVal("RelationToType") ) { 
+    _from( col->getParameters().getStringVal( RELATIONFROMTYPESTR ) ) ,
+    _to( col->getParameters().getStringVal( RELATIONTOTYPESTR ) ) { 
     
     initialize(col) ; 
   }
@@ -141,8 +144,8 @@
     LCCollectionVec* col = new LCCollectionVec( LCIO::LCRELATION ) ;
     
     
-    col->parameters().setValue( "FromType" , getFromType() ) ;
-    col->parameters().setValue( "ToType" , getToType() ) ;
+    col->parameters().setValue( RELATIONFROMTYPESTR , getFromType() ) ;
+    col->parameters().setValue( RELATIONTOTYPESTR , getToType() ) ;
 
 
     bool storeWeights = false ;
CVSspam 0.2.8