Orfeo Toolbox
3.16
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
OTB
Code
ApplicationEngine
otbWrapperOutputFilenameParameter.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 __otbWrapperOutputFilenameParameter_h
19
#define __otbWrapperOutputFilenameParameter_h
20
21
#include <string>
22
#include "
otbWrapperStringParameter.h
"
23
24
namespace
otb
25
{
26
namespace
Wrapper
27
{
28
32
class
OutputFilenameParameter
33
:
public
Parameter
34
{
35
public
:
37
typedef
OutputFilenameParameter
Self
;
38
typedef
StringParameter
Superclass
;
39
typedef
itk::SmartPointer<Self>
Pointer
;
40
typedef
itk::SmartPointer<const Self>
ConstPointer
;
41
43
itkNewMacro(
Self
);
44
46
itkTypeMacro(
OutputFilenameParameter
,
Parameter
);
47
48
49
bool
HasValue
()
const
50
{
51
return
m_StringParam
->HasValue();
52
}
53
54
// Get Value
55
otbGetObjectMemberMacro
(StringParam, Value , std::string);
56
57
// Set Value
58
virtual
void
SetValue
(
const
std::string value)
59
{
60
itkDebugMacro(
"setting member m_StringParam to "
<< value);
61
this->
m_StringParam
->SetValue(value);
62
SetActive
(
true
);
63
this->
Modified
();
64
}
65
66
// Clear Value
67
void
ClearValue
()
68
{
69
m_StringParam
->ClearValue();
70
}
71
72
protected
:
74
OutputFilenameParameter
()
75
{
76
// Initialize the String Parameter
77
m_StringParam
=
StringParameter::New
();
78
79
80
}
81
83
virtual
~OutputFilenameParameter
()
84
{}
85
86
private
:
87
OutputFilenameParameter
(
const
OutputFilenameParameter
&);
//purposely not implemented
88
void
operator =
(
const
OutputFilenameParameter
&);
//purposely not
89
//implemented
90
91
StringParameter::Pointer
m_StringParam
;
92
93
};
// End class Parameter
94
95
}
// End namespace Wrapper
96
}
// End namespace otb
97
98
#endif
Generated at Sun Feb 3 2013 00:59:18 for
Orfeo Toolbox
with
doxygen 1.8.1.1