]> Creatis software - clitk.git/blobdiff - itk/clitkRelativePositionDataBase.cxx
Remove warnings
[clitk.git] / itk / clitkRelativePositionDataBase.cxx
index a9b73273387f9beafc94934425fc58649292500a..9ae6dd9fbba5ae27d8c294d16f133cbfe4d21f1f 100644 (file)
@@ -167,7 +167,6 @@ namespace clitk {
   std::vector<std::string> & RelativePositionDataBase::GetListOfPatients(const IndexType & index) const
   {
     const MapByPatientType & o = GetMapByPatient(index);
-    MapByPatientType::const_iterator iter = o.begin();
     std::vector<std::string> * v = new std::vector<std::string>; 
     MapToVecFirst(o, *v);
     return *v;
@@ -223,7 +222,7 @@ namespace clitk {
   bool RelativePositionDataBase::CheckIndex(const IndexType & index) const
   {
     try {
-      const RelativePositionInformationType & m =  GetInformation(index);
+      /*const RelativePositionInformationType & m = */ GetInformation(index);
     } catch (clitk::ExceptionObject e) {
       // std::cout << e.what() << std::endl;      
       return false;
@@ -231,7 +230,14 @@ namespace clitk {
     return true;
   }
   //--------------------------------------------------------------------
-  
+
+  //--------------------------------------------------------------------
+  std::ostream& operator<<(std::ostream & os, const clitk::RelativePositionInformationType & rp)
+  {
+    rp.Print(os);
+    return os;
+  }
+  //--------------------------------------------------------------------
 
 } // end namespace clitk
 //--------------------------------------------------------------------