struct P1::CameraSdkC::PropertyRange

Overview

#include <C_P1CameraTypes.h>

struct PropertyRange
{
    // fields

    bool mHas = false;
    PropertyValue mMin;
    PropertyValue mMax;

    // methods

    void Delete();
    CameraSdk::ErrorCode IsInRange(const PropertyValue& value, bool& inRange) const;
};

Detailed Documentation

Methods

CameraSdk::ErrorCode IsInRange(const PropertyValue& value, bool& inRange) const

Check that a provided value is with the range.

Note that both range ends are included, and that only intregral types are evaluated

Parameters:

value

The value to check is within the range

inRange

Out-parameter, which will be set to true, if in range

Returns:

Any error when running evaluation, or just kSuccess