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