Orfeo Toolbox  4.0
otbWrapperEmptyParameter.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: ORFEO Toolbox
4  Language: C++
5  Date: $Date$
6  Version: $Revision$
7 
8 
9  Copyright (c) Centre National d'Etudes Spatiales. All rights reserved.
10  See OTBCopyright.txt for details.
11 
12 
13  This software is distributed WITHOUT ANY WARRANTY; without even
14  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15  PURPOSE. See the above copyright notices for more information.
16 
17 =========================================================================*/
18 #ifndef __otbWrapperEmptyParameter_h
19 #define __otbWrapperEmptyParameter_h
20 
21 #include "otbWrapperParameter.h"
22 
23 namespace otb
24 {
25 namespace Wrapper
26 {
27 
32  : public Parameter
33 {
34 public:
40 
42  itkNewMacro(Self);
43 
45  itkTypeMacro(EmptyParameter, Parameter);
46 
48  bool HasValue() const
49  {
50  return false;
51  }
52 
53  bool HasUserValue() const
54  {
55  return this->m_UserValue;
56  }
57 
58 protected:
61  {
62  // It does not make sense for an empty parameter to be mandatory
63  this->MandatoryOff();
64  }
65 
67  virtual ~EmptyParameter()
68  {}
69 
70 private:
71  EmptyParameter(const EmptyParameter &); //purposely not implemented
72  void operator =(const EmptyParameter&); //purposely not implemented
73 
74 }; // End class Parameter
75 
76 } // End namespace Wrapper
77 } // End namespace otb
78 
79 #endif

Generated at Sat Mar 8 2014 16:28:48 for Orfeo Toolbox with doxygen 1.8.3.1