Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
otb
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
David Youssefi
otb
Commits
a4610df4
Commit
a4610df4
authored
13 years ago
by
Otmane Lahlou
Browse files
Options
Downloads
Patches
Plain Diff
ENH: bakout previous change and implement the method HasValue
parent
9a95b758
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Code/ApplicationEngine/otbWrapperEmptyParameter.h
+5
-28
5 additions, 28 deletions
Code/ApplicationEngine/otbWrapperEmptyParameter.h
with
5 additions
and
28 deletions
Code/ApplicationEngine/otbWrapperEmptyParameter.h
+
5
−
28
View file @
a4610df4
...
...
@@ -44,35 +44,15 @@ public:
/** RTTI support */
itkTypeMacro
(
EmptyParameter
,
Parameter
);
bool
HasValue
()
const
/** HasValue */
bool
HasValue
()
const
{
return
m_Value
;
}
virtual
void
ClearValue
()
{
m_Value
=
false
;
}
/** Set the value */
void
SetValue
(
bool
value
)
{
// TODO check minimum/maximum
m_Value
=
value
;
SetActive
(
true
);
}
/**
* Implement the reset method (replace value by default value = false)
*/
virtual
void
Reset
()
{
m_Value
=
false
;
return
false
;
}
protected
:
/** Constructor */
EmptyParameter
()
:
m_Value
(
false
)
EmptyParameter
()
{}
/** Destructor */
...
...
@@ -83,10 +63,7 @@ private:
EmptyParameter
(
const
EmptyParameter
&
);
//purposely not implemented
void
operator
=
(
const
EmptyParameter
&
);
//purposely not implemented
/** Value */
bool
m_Value
;
};
// End class EmptyParameter
};
// End class Parameter
}
// End namespace Wrapper
}
// End namespace otb
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment