5#include "ErrorStatus.h"
292 std::vector<double>& value)
const;
308 const std::vector<double>& value);
341 std::shared_ptr<class SettingImpl> _impl;
342 explicit UserSet(
const std::shared_ptr<ZmqClientImpl>& impl);
343 friend class UserSetManagerImpl;
Represents a parameter of the device.
ErrorStatus setRangeValue(const std::string ¶meterName, const Range< int > &value)
Sets the value of a _Range-type device parameter. See Parameter for details.
ErrorStatus getAvailableParameterNames(std::vector< std::string > ¶meterArrayNames) const
Gets the names of all available device parameters in the current device user set.
ErrorStatus getEnumValue(const std::string ¶meterName, std::string &valueStr) const
Gets the current value of an _Enum-type device parameter in the form of a string. See Parameter for d...
ErrorStatus getIntValue(const std::string ¶meterName, int &value) const
Gets the current value of an _Int-type device parameter. See Parameter for details.
ErrorStatus getRoiValue(const std::string ¶meterName, ROI &value) const
Gets the current value of an _Roi-type device parameter. See Parameter for details.
ErrorStatus getRangeValue(const std::string ¶meterName, Range< int > &value) const
Gets the current value of a _Range-type device parameter. See Parameter for details.
ErrorStatus rename(const std::string &newName)
Renames the current device user set.
ErrorStatus setEnumValue(const std::string ¶meterName, const std::string &value)
Sets the value of an _Enum-type device parameter by inputting a string. See Parameter for details.
ErrorStatus getFloatValue(const std::string ¶meterName, double &value) const
Gets the current value of a _Float-type device parameter. See Parameter for details.
ErrorStatus setBoolValue(const std::string ¶meterName, bool value)
Sets the value of a _Bool-type device parameter. See Parameter for details.
ErrorStatus resetAllParametersToDefaultValues()
Resets all device parameters in the current device user set to default values.
ErrorStatus getFloatArrayValue(const std::string ¶meterName, std::vector< double > &value) const
Gets the current value of a _FloatArray-type device parameter. See Parameter for details.
ErrorStatus getName(std::string &userSetName) const
Gets the name of the current device user set.
std::vector< Parameter * > getAvailableParameters() const
Returns the pointers to the elements in the vector storing all available parameters.
Parameter * getParameter(const std::string ¶meterName) const
Gets the pointer to the specified device parameter.
virtual ~UserSet()
Destructor.
ErrorStatus saveAllParametersToDevice() const
Saves the values of all device parameters in the current device user set to the device.
ErrorStatus setRoiValue(const std::string ¶meterName, const ROI &value)
Sets the value of an _Roi-type device parameter. See Parameter for details.
ErrorStatus setFloatArrayValue(const std::string ¶meterName, const std::vector< double > &value)
Sets the value of a _FloatArray-type device parameter. See Parameter for details.
ErrorStatus getEnumValue(const std::string ¶meterName, int &value) const
Gets the current value of an _Enum-type device parameter in the form of the integer value....
ErrorStatus getBoolValue(const std::string ¶meterName, bool &value) const
Gets the current value of a _Bool-type device parameter. See Parameter for details.
ErrorStatus setFloatValue(const std::string ¶meterName, double value)
Sets the value of a _Float-type device parameter. See Parameter for details.
Parameter * operator[](const std::string ¶meterName) const
Gets the pointer to the specified device parameter.
ErrorStatus setEnumValue(const std::string ¶meterName, int value)
Sets the value of an _Enum-type device parameter by inputting the integer value. See Parameter for de...
ErrorStatus setIntValue(const std::string ¶meterName, int value)
Sets the value of an _Int-type device parameter. See Parameter for details.
Describes the types of errors.
Describes a region of interest (ROI).