AuboStudio SDK  0.6.3
arcs::aubo_scope::UIntegerRangeValidator结构体 参考

#include <input_validator.h>

类 arcs::aubo_scope::UIntegerRangeValidator 继承关系图:
arcs::aubo_scope::UIntegerRangeValidator 的协作图:

Public 成员函数

 UIntegerRangeValidator (uint32_t min_value, uint32_t max_value)
 UIntegerRangeValidator (std::function< std::pair< uint32_t, uint32_t >()> range_func)
bool isValid (std::string value) override
std::string getMessage (std::string value) override
 Returns a meaningful message in case the value is not valid.

Private 成员函数

void updateValue ()

Private 属性

uint32_t min_value_ { 0 }
uint32_t max_value_ { UINT_MAX }
std::function< std::pair< uint32_t, uint32_t >()> range_func_ { nullptr }

详细描述

在文件 input_validator.h68 行定义.

构造及析构函数说明

◆ UIntegerRangeValidator() [1/2]

arcs::aubo_scope::UIntegerRangeValidator::UIntegerRangeValidator ( uint32_t min_value,
uint32_t max_value )

◆ UIntegerRangeValidator() [2/2]

arcs::aubo_scope::UIntegerRangeValidator::UIntegerRangeValidator ( std::function< std::pair< uint32_t, uint32_t >()> range_func)

成员函数说明

◆ getMessage()

std::string arcs::aubo_scope::UIntegerRangeValidator::getMessage ( std::string value)
overridevirtual

Returns a meaningful message in case the value is not valid.

参数
valuethe invalid value. Can be included in the message if it makes sense.
返回
message.

实现了 arcs::aubo_scope::InputValidator.

◆ isValid()

bool arcs::aubo_scope::UIntegerRangeValidator::isValid ( std::string value)
overridevirtual
参数
valueto be validated.
返回
true if value is valid.

实现了 arcs::aubo_scope::InputValidator.

◆ updateValue()

void arcs::aubo_scope::UIntegerRangeValidator::updateValue ( )
private

类成员变量说明

◆ max_value_

uint32_t arcs::aubo_scope::UIntegerRangeValidator::max_value_ { UINT_MAX }
private

在文件 input_validator.h84 行定义.

◆ min_value_

uint32_t arcs::aubo_scope::UIntegerRangeValidator::min_value_ { 0 }
private

在文件 input_validator.h83 行定义.

◆ range_func_

std::function<std::pair<uint32_t, uint32_t>()> arcs::aubo_scope::UIntegerRangeValidator::range_func_ { nullptr }
private

在文件 input_validator.h86 行定义.


该结构体的文档由以下文件生成: