Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • otb otb
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 204
    • Issues 204
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 11
    • Merge requests 11
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Main Repositories
  • otbotb
  • Merge requests
  • !191

Parameter Refactoring : String Parameter

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Antoine Regimbeau requested to merge string_parameter_refac into param_refactoring Aug 03, 2018
  • Overview 33
  • Commits 4
  • Pipelines 0
  • Changes 6

The target branch of this MR is param_refactoring
This MR presents the new StringParameter class. It derives from the SingleParameter class. Here is its API :

public :
virtual void SetDefaultValue( std::string val)
virtual const std::string & GetDefaultValue() const
virtual void Reset() override
//Public coming from the SingleParameter class
virtual void SetValue( const std::string & val , int i = 0 ) override
virtual std::string GetValue( int i = -1 ) const override
//Public coming from the Parameter class
/*(function toggling boolean such as Mandatory, Active, UserValue, UserLevel 
or dealing with Role, Root, Key, Name and Description are omitted)*/
virtual void ClearValue()
virtual std::string GetValue( int i = -1 ) const = 0;
virtual void SetValue( const std::string & val , int i = 0 ) = 0;

If you have any ideas or comments on what we could add to the API of the parameter, feel free to express yourself!
As this kind of MR has not been done for the other classes (Parameter, SingleParameter, NumericalParameter) you can also comment on it here.

Associated MR !36 (closed)

Edited Aug 03, 2018 by Antoine Regimbeau
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: string_parameter_refac