From c39524e331a2e5a82d1d05a3b10244bffe06b712 Mon Sep 17 00:00:00 2001
From: Julien Michel <julien.michel@orfeo-toolbox.org>
Date: Thu, 19 Mar 2009 16:46:43 +0100
Subject: [PATCH] ENH: Missing PrintSelf, adding const reference arguments to
 some methods

---
 Code/Projections/otbGenericRSTransform.h | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/Code/Projections/otbGenericRSTransform.h b/Code/Projections/otbGenericRSTransform.h
index 12dfacd2cf..47f5282934 100644
--- a/Code/Projections/otbGenericRSTransform.h
+++ b/Code/Projections/otbGenericRSTransform.h
@@ -126,7 +126,7 @@ namespace otb
         return m_OutputDictionary;
       }
 
-      void SetOutputDictionary(itk::MetaDataDictionary & dictionary)
+      void SetOutputDictionary(const itk::MetaDataDictionary & dictionary)
       {
         m_OutputDictionary = dictionary;
         this->Modified();
@@ -202,6 +202,14 @@ namespace otb
         m_TransformUpToDate = false;
       }
 
+       void PrintSelf(std::ostream& os, itk::Indent indent) const
+      {
+	Superclass::PrintSelf(os,indent);
+	os<<indent<<"Up to date: "<<m_TransformUpToDate<<std::endl;
+	os<<indent<<"Input transform: "<<m_InputTransform<<std::endl;
+	os<<indent<<"Output transform: "<<m_OutputTransform<<std::endl;
+      }
+
       private :
       GenericRSTransform(const Self&); //purposely not implemented
       void operator=(const Self&); //purposely not implemented
-- 
GitLab