Drive Engine  1.0.0
Plateforme de reconstruction 3D
DefaultIntegerNumberParameter.h
1 // Copyright (c) 2015. All rights reserved to DriveEngine Team.
2 
3 #pragma once
4 
5 #include "Public/Datatypes/IIntegerNumberParameter.h"
6 #include "Public/ImplementationUtilities/ImplementationUtilities.h"
7 
8 #include <string>
9 
10 namespace DriveEngine
11 {
13  {
14  private:
15  std::string name = "";
16  int long value = 0;
17  int long maxValue = IntegerNumberParameterMaximumValue;
18  int long minValue = IntegerNumberParameterMinimumValue;
19  std::string strValue = "";
20 
21  public:
23  CONSTRUCTOR_H(IIntegerNumberParameter, DefaultIntegerNumberParameter, const char* name);
24  CONSTRUCTOR_H(IIntegerNumberParameter, DefaultIntegerNumberParameter, const char* name, int initialValue);
25  CONSTRUCTOR_H(IIntegerNumberParameter, DefaultIntegerNumberParameter, const char* name, int long minValue, int long maxValue);
26  CONSTRUCTOR_H(IIntegerNumberParameter, DefaultIntegerNumberParameter, const char* name, int initialValue, int long minValue, int long maxValue);
27  CONSTRUCTOR_H(IIntegerNumberParameter, DefaultIntegerNumberParameter, int long minValue, int long maxValue);
28 
29  DESTRUCTOR_H(DefaultIntegerNumberParameter);
30 
31 
32  // IParameter
33 
34  virtual void SetName(const char* name);
35  virtual const char* GetName() const;
36  virtual const char* GetType() const;
37  virtual void SetValueByString(const char* value);
38  virtual const char* GetValueByString();
39 
40 
41  // IIntegerNumberParameter
42 
43  virtual void SetValue(int long value);
44  virtual int GetValue() const;
45  };
46 }
virtual const char * GetType() const
Gets the type of the parameter.
virtual int GetValue() const
Gets the parameter value.
virtual void SetName(const char *name)
Sets the name of the parameter.
virtual const char * GetValueByString()
Gets the value of the parameter by a string.
virtual const char * GetName() const
Gets the name of the parameter.
Definition: DefaultCalibrationInfoList.h:12
The integer number parameter datatype interface.
Definition: IIntegerNumberParameter.h:27
virtual void SetValueByString(const char *value)
Sets the value of the parameter by a string.
Definition: DefaultIntegerNumberParameter.h:12