openModeller
Version 1.5.0
|
#include <AlgParameter.hh>
Public Member Functions | |
AlgParameter () | |
AlgParameter (std::string const id, std::string const value=0) | |
AlgParameter (const AlgParameter &) | |
~AlgParameter () | |
AlgParameter & | operator= (const AlgParameter &) |
std::string const | id () const |
void | setId (std::string const id) |
std::string const | value () const |
double | valueReal () |
void | setValue (std::string const val) |
void | setValue (double val) |
Private Attributes | |
std::string | _id |
std::string | _value |
Declaration of AlgParameter class.
LICENSE INFORMATION
Copyright(c) 2004 by CRIA - Centro de Referencia em Informacao Ambiental
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details:
http://www.gnu.org/copyleft/gpl.html Algorithms' parameters. A couple (id, value)
Definition at line 44 of file AlgParameter.hh.
AlgParameter::AlgParameter | ( | ) |
Definition at line 41 of file AlgParameter.cpp.
AlgParameter::AlgParameter | ( | std::string const | id, |
std::string const | value = 0 |
||
) |
AlgParameter::AlgParameter | ( | const AlgParameter & | param | ) |
Definition at line 54 of file AlgParameter.cpp.
AlgParameter::~AlgParameter | ( | ) |
Definition at line 64 of file AlgParameter.cpp.
|
inline |
Returns the parameter's id.
Definition at line 56 of file AlgParameter.hh.
Referenced by RequestFile::_readParameters(), AlgParameter(), and AlgorithmImpl::setParameters().
AlgParameter & AlgParameter::operator= | ( | const AlgParameter & | param | ) |
Definition at line 73 of file AlgParameter.cpp.
|
inline |
Set parameter's id.
Definition at line 59 of file AlgParameter.hh.
Referenced by RequestFile::_readParameters(), readParameters(), DgGarpBestSubsets::transferParametersToAlgorithm(), and GarpBestSubsets::transferParametersToAlgorithm().
|
inline |
Set parameter's value.
Definition at line 68 of file AlgParameter.hh.
Referenced by RequestFile::_readParameters(), readParameters(), DgGarpBestSubsets::transferParametersToAlgorithm(), and GarpBestSubsets::transferParametersToAlgorithm().
void AlgParameter::setValue | ( | double | val | ) |
Definition at line 99 of file AlgParameter.cpp.
References _value.
|
inline |
Returns the parameter's value.
Definition at line 62 of file AlgParameter.hh.
Referenced by AlgParameter(), and AlgorithmImpl::setParameters().
double AlgParameter::valueReal | ( | ) |
Returns the parameter's value converted to double.
Definition at line 90 of file AlgParameter.cpp.
References _value.
|
private |
Definition at line 73 of file AlgParameter.hh.
Referenced by AlgParameter(), and operator=().
|
private |
Definition at line 74 of file AlgParameter.hh.
Referenced by AlgParameter(), operator=(), setValue(), and valueReal().