From 34e67a1de4a70e7ec95d9f087d51f20866ce9aaf Mon Sep 17 00:00:00 2001
From: OTB Bot <otbbot@orfeo-toolbox.org>
Date: Tue, 2 Sep 2008 11:58:26 +0000
Subject: [PATCH] Ajout methode "IsOptionOTBTestingPresent" sur le COmmand Line
 Parser

---
 Code/Common/otbCommandLineArgumentParser.cxx | 6 ++++++
 Code/Common/otbCommandLineArgumentParser.h   | 3 +++
 2 files changed, 9 insertions(+)

diff --git a/Code/Common/otbCommandLineArgumentParser.cxx b/Code/Common/otbCommandLineArgumentParser.cxx
index f18b9f975c..972bf3dc30 100755
--- a/Code/Common/otbCommandLineArgumentParser.cxx
+++ b/Code/Common/otbCommandLineArgumentParser.cxx
@@ -60,6 +60,12 @@ CommandLineArgumentParseResult
 {
   return (this->IsOptionPresent("--OutputImage"));
 }
+bool 
+CommandLineArgumentParseResult
+::IsOptionOTBTestingPresent(void)const
+{
+  return (this->IsOptionPresent("--OTBTesting"));
+}
 
 std::string 
 CommandLineArgumentParseResult
diff --git a/Code/Common/otbCommandLineArgumentParser.h b/Code/Common/otbCommandLineArgumentParser.h
index f822b94ead..c3e4bc124f 100755
--- a/Code/Common/otbCommandLineArgumentParser.h
+++ b/Code/Common/otbCommandLineArgumentParser.h
@@ -62,6 +62,9 @@ public:
 
   /** Check whether the output image option was passed in or not */
   bool IsOptionOutputImagePresent(void) const;
+  
+  /** Check whether the OTBTesting option was passed in or not */
+  bool IsOptionOTBTestingPresent(void)const;
 
   /** Get one of the parameters to the option */
 //  const char *GetOptionParameter(const char *option, unsigned int number = 0);
-- 
GitLab