Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
otb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
273
Issues
273
List
Boards
Labels
Service Desk
Milestones
Merge Requests
8
Merge Requests
8
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Main Repositories
otb
Commits
48ddaf83
Commit
48ddaf83
authored
Oct 28, 2011
by
Otmane Lahlou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ENH: add RAMParamter
parent
2c7d94e2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
112 additions
and
1 deletion
+112
-1
Code/ApplicationEngine/otbWrapperRAMParameter.h
Code/ApplicationEngine/otbWrapperRAMParameter.h
+110
-0
Code/ApplicationEngine/otbWrapperTypes.h
Code/ApplicationEngine/otbWrapperTypes.h
+2
-1
No files found.
Code/ApplicationEngine/otbWrapperRAMParameter.h
0 → 100644
View file @
48ddaf83
/*=========================================================================
Program: ORFEO Toolbox
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) Centre National d'Etudes Spatiales. All rights reserved.
See OTBCopyright.txt for details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the above copyright notices for more information.
=========================================================================*/
#ifndef __otbWrapperRAMParameter_h
#define __otbWrapperRAMParameter_h
#include "otbWrapperNumericalParameter.h"
namespace
otb
{
namespace
Wrapper
{
/** \class RAMParameter
* \brief This class represent a RAM parameter for the wrapper framework
*/
class
RAMParameter
:
public
Parameter
{
public:
/** Standard class typedef */
typedef
RAMParameter
Self
;
typedef
Parameter
Superclass
;
typedef
itk
::
SmartPointer
<
Self
>
Pointer
;
typedef
itk
::
SmartPointer
<
const
Self
>
ConstPointer
;
/** Defining ::New() static method */
itkNewMacro
(
Self
);
/** RTTI support */
itkTypeMacro
(
RAMParameter
,
Parameter
);
/** typedef */
typedef
NumericalParameter
<
unsigned
int
>
UnsignedIntParameter
;
typedef
UnsignedIntParameter
::
ScalarType
ScalarType
;
bool
HasValue
()
const
{
return
m_UnsignedIntParam
->
HasValue
();
}
// Set/Get Value
otbSetObjectMemberMacro
(
UnsignedIntParam
,
Value
,
ScalarType
);
otbSetObjectMemberMacro
(
UnsignedIntParam
,
Value
,
std
::
string
);
otbGetObjectMemberMacro
(
UnsignedIntParam
,
Value
,
ScalarType
);
// Set/Get extremums
otbSetObjectMemberMacro
(
UnsignedIntParam
,
DefaultValue
,
ScalarType
);
otbGetObjectMemberMacro
(
UnsignedIntParam
,
DefaultValue
,
ScalarType
);
otbSetObjectMemberMacro
(
UnsignedIntParam
,
MinimumValue
,
ScalarType
);
otbGetObjectMemberMacro
(
UnsignedIntParam
,
MinimumValue
,
ScalarType
);
otbSetObjectMemberMacro
(
UnsignedIntParam
,
MaximumValue
,
ScalarType
);
otbGetObjectMemberMacro
(
UnsignedIntParam
,
MaximumValue
,
ScalarType
);
// Clear Value
void
ClearValue
()
{
m_UnsignedIntParam
->
ClearValue
();
}
// Reset
virtual
void
Reset
()
{
m_UnsignedIntParam
->
Reset
();
}
protected:
/** Constructor */
RAMParameter
()
{
this
->
SetName
(
"RAM"
);
this
->
SetKey
(
"ram"
);
this
->
SetDescription
(
"Available RAM"
);
// Initialize the unsigned int NumericalParam
m_UnsignedIntParam
=
UnsignedIntParameter
::
New
();
// Set a default value
//this->SetDefaultValue(256);
// the value of the RAM param is its default param
//this->SetValue(256);
}
/** Destructor */
virtual
~
RAMParameter
()
{}
private:
RAMParameter
(
const
RAMParameter
&
);
//purposely not implemented
void
operator
=
(
const
RAMParameter
&
);
//purposely not implemented
UnsignedIntParameter
::
Pointer
m_UnsignedIntParam
;
};
}
// End namespace Wrapper
}
// End namespace otb
#endif
Code/ApplicationEngine/otbWrapperTypes.h
View file @
48ddaf83
...
...
@@ -49,7 +49,8 @@ typedef enum
ParameterType_Group
,
ParameterType_ListView
,
ParameterType_ComplexInputImage
,
ParameterType_ComplexOutputImage
ParameterType_ComplexOutputImage
,
ParameterType_RAM
}
ParameterType
;
typedef
enum
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment