Orfeo Toolbox  3.16
otbWrapperParameterGroup.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 __otbWrapperParameterGroup_h
19 #define __otbWrapperParameterGroup_h
20 
21 #include "itkObject.h"
22 #include "otbWrapperParameter.h"
23 #include <vector>
24 
25 namespace otb
26 {
27 namespace Wrapper
28 {
29 
34  : public Parameter
35 {
36 public:
41 
42  itkNewMacro(Self);
43 
44  itkTypeMacro(ParameterList, Parameter);
45 
46  void AddParameter(Parameter::Pointer p);
47 
49  void AddChoice(std::string paramKey, std::string paramName);
50 
52  void ClearChoices(std::string paramKey);
53 
55  std::vector<int> GetSelectedItems(std::string paramKey);
56 
60  void AddParameter(ParameterType type, std::string paramKey, std::string paramName);
61 
62  Parameter::Pointer GetParameterByIndex(unsigned int i);
63 
64  Parameter::Pointer GetParameterByKey(std::string name);
65 
66  unsigned int GetNumberOfParameters();
67 
68  std::vector<std::string> GetParametersKeys(bool recursive = true);
69 
70  // Always has value
71  bool HasValue() const
72  {
73  return true;
74  }
75 
76 protected:
78  virtual ~ParameterGroup();
79 
80  typedef std::vector<Parameter::Pointer> ParameterListType;
82 
83 private:
84  ParameterGroup(const ParameterGroup &); //purposely not implemented
85  void operator =(const ParameterGroup&); //purposely not implemented
86 
87 };
88 
89 }
90 }
91 
92 #endif

Generated at Sun Feb 3 2013 00:59:20 for Orfeo Toolbox with doxygen 1.8.1.1