7#include "ErrorStatus.h"
8#include "CommonTypes.h"
39 MMIND_API_EXPORT std::string
name()
const;
62 std::shared_ptr<class ParameterImpl> _impl;
63 bool _needUpdateMaxAndMin;
64 Parameter(
const std::string&
name,
const std::shared_ptr<class ParameterImpl>& impl,
65 bool needUpdateMaxAndMin =
false);
68 const std::string _name;
69 friend class ParameterFactory;
110 using Parameter::Parameter;
151 using Parameter::Parameter;
187 using Parameter::Parameter;
208 using Parameter::Parameter;
234 using Parameter::Parameter;
275 using Parameter::Parameter;
321 using Parameter::Parameter;
Represents a _Bool-type device parameter.
MMIND_API_EXPORT ErrorStatus setValue(bool value)
Sets the value of the device parameter.
MMIND_API_EXPORT ErrorStatus getValue(bool &value) const
Gets the current value of the device parameter.
Represents an _Enum-type device parameter.
MMIND_API_EXPORT ErrorStatus setValue(const std::string &value)
Sets the value of the device parameter by inputting a string.
MMIND_API_EXPORT ErrorStatus getValue(std::string &value) const
Gets the current value of the device parameter in the form of a string.
MMIND_API_EXPORT ErrorStatus setValue(int value)
Sets the value of the device parameter by inputting the integer value of an enumerator.
MMIND_API_EXPORT ErrorStatus getValue(int &value) const
Gets the current value of the device parameter in the form of the integer value of the enumerator.
MMIND_API_EXPORT ErrorStatus getValues(std::map< std::string, int > &valueList) const
Gets the list of available values of the device parameter in the form of a map.
Represents a _FloatArray-type device parameter.
MMIND_API_EXPORT ErrorStatus getMaxArraySize(int &maxSize) const
Gets the maximum settable size of the vector.
MMIND_API_EXPORT ErrorStatus getMax(double &max) const
Gets the maximum settable value of the device parameter.
MMIND_API_EXPORT ErrorStatus getMin(double &min) const
Gets the minimum settable value of the device parameter.
MMIND_API_EXPORT ErrorStatus getUnit(std::string &unit) const
Gets the unit of the device parameter.
MMIND_API_EXPORT ErrorStatus getValue(std::vector< double > &value) const
Gets the current value of the device parameter.
MMIND_API_EXPORT ErrorStatus getStep(double &step) const
Gets the adjustment step size of the device parameter.
MMIND_API_EXPORT ErrorStatus setValue(const std::vector< double > &value)
Sets the value of the device parameter.
Represents a _Float-type device parameter.
MMIND_API_EXPORT ErrorStatus getStep(double &step) const
Gets the adjustment step size of the device parameter.
MMIND_API_EXPORT ErrorStatus getMax(double &max) const
Gets the maximum settable value of the device parameter.
MMIND_API_EXPORT ErrorStatus getMin(double &min) const
Gets the minimum settable value of the device parameter.
MMIND_API_EXPORT ErrorStatus getValue(double &value) const
Gets the current value of the device parameter.
MMIND_API_EXPORT ErrorStatus getUnit(std::string &unit) const
Gets the unit of the device parameter.
MMIND_API_EXPORT ErrorStatus setValue(double value)
Sets the value of the device parameter.
Represents an _Int-type device parameter.
MMIND_API_EXPORT ErrorStatus setValue(int value)
Sets the value of the device parameter.
MMIND_API_EXPORT ErrorStatus getStep(int &step) const
Gets the adjustment step size of the device parameter.
MMIND_API_EXPORT ErrorStatus getMin(int &min) const
Gets the minimum settable value of the device parameter.
MMIND_API_EXPORT ErrorStatus getMax(int &max) const
Gets the maximum settable value of the device parameter.
MMIND_API_EXPORT ErrorStatus getUnit(std::string &unit) const
Gets the unit of the device parameter.
MMIND_API_EXPORT ErrorStatus getValue(int &value) const
Gets the current value of the device parameter.
Represents a parameter of the device.
MMIND_API_EXPORT Type type() const
Returns the data type of the device parameter.
MMIND_API_EXPORT bool isWritable() const
Returns a Boolean value that indicates the write permission of the device parameter.
MMIND_API_EXPORT bool isReadable() const
Returns a Boolean value that indicates the read permission of the device parameter.
MMIND_API_EXPORT std::string name() const
Returns the name of the device parameter.
Type
The device parameter data types.
@ _Roi
ROI type. See ROI for details.
@ _Range
Range type. See Range for details.
@ _FloatArray
Vector of double types.
MMIND_API_EXPORT std::string description() const
Returns the description of the device parameter.
Represents a _Range-type device parameter.
MMIND_API_EXPORT ErrorStatus getMax(int &max) const
Gets the maximum settable value of the device parameter.
MMIND_API_EXPORT ErrorStatus getUnit(std::string &unit) const
Gets the unit of the device parameter.
MMIND_API_EXPORT ErrorStatus setValue(Range< int > value)
Sets the value of the device parameter.
MMIND_API_EXPORT ErrorStatus getValue(Range< int > &value) const
Gets the current value of the device parameter.
MMIND_API_EXPORT ErrorStatus getMin(int &min) const
Gets the minimum settable value of the device parameter.
MMIND_API_EXPORT ErrorStatus getStep(int &step) const
Gets the adjustment step size of the device parameter.
Represents an _Roi-type device parameter.
MMIND_API_EXPORT ErrorStatus getMaxRoiSize(Size &maxSize) const
Gets the maximum settable value of the device parameter.
MMIND_API_EXPORT ErrorStatus getValue(ROI &value) const
Gets the current value of the device parameter.
MMIND_API_EXPORT ErrorStatus setValue(ROI value)
Sets the value of the device parameter.
A size with a width and a height.