From 670d41bc8bc1ce2030e87dcd23f06a910c7c2745 Mon Sep 17 00:00:00 2001
From: Patrick Imbo <patrick.imbo@c-s.fr>
Date: Wed, 3 Nov 2010 11:23:05 +0100
Subject: [PATCH] ADD: OpenDEMDirectory(const std::string& ) method to
 ElevDatabaseHeightAboveMSLFunction

---
 Code/Projections/otbElevDatabaseHeightAboveMSLFunction.h | 1 +
 .../otbElevDatabaseHeightAboveMSLFunction.txx            | 9 +++++++++
 2 files changed, 10 insertions(+)

diff --git a/Code/Projections/otbElevDatabaseHeightAboveMSLFunction.h b/Code/Projections/otbElevDatabaseHeightAboveMSLFunction.h
index ccd5053eb5..20631253f1 100644
--- a/Code/Projections/otbElevDatabaseHeightAboveMSLFunction.h
+++ b/Code/Projections/otbElevDatabaseHeightAboveMSLFunction.h
@@ -92,6 +92,7 @@ public:
 
   /** Try to open the DEM directory. */
   virtual void OpenDEMDirectory(const char* DEMDirectory);
+  virtual void OpenDEMDirectory(const std::string&  DEMDirectory);
 
   /** Set the default height above ellipsoid in case no information is available*/
   virtual void SetDefaultHeightAboveEllipsoid(double h);
diff --git a/Code/Projections/otbElevDatabaseHeightAboveMSLFunction.txx b/Code/Projections/otbElevDatabaseHeightAboveMSLFunction.txx
index e4340233b7..c85044a944 100644
--- a/Code/Projections/otbElevDatabaseHeightAboveMSLFunction.txx
+++ b/Code/Projections/otbElevDatabaseHeightAboveMSLFunction.txx
@@ -88,6 +88,14 @@ ElevDatabaseHeightAboveMSLFunction<TOutputPixel, TCoordRep, NPointDimension>
 
 }
 
+template <class TOutputPixel, class TCoordRep, unsigned int NPointDimension>
+void
+ElevDatabaseHeightAboveMSLFunction<TOutputPixel, TCoordRep, NPointDimension>
+::OpenDEMDirectory(const std::string& DEMDirectory)
+{
+  this->OpenDEMDirectory(DEMDirectory.c_str());
+}
+
 template <class TOutputPixel, class TCoordRep, unsigned int NPointDimension>
 void
 ElevDatabaseHeightAboveMSLFunction<TOutputPixel, TCoordRep, NPointDimension>
@@ -102,6 +110,7 @@ ElevDatabaseHeightAboveMSLFunction<TOutputPixel, TCoordRep, NPointDimension>
     }
 }
 
+
 template <class TOutputPixel, class TCoordRep, unsigned int NPointDimension>
 void
 ElevDatabaseHeightAboveMSLFunction<TOutputPixel, TCoordRep, NPointDimension>
-- 
GitLab