struct P1::CameraSdk::PropertyRange

Overview

Numeric property range span class, used by PropertySpecification. More…

#include <C_P1CameraCommonCameraTypes.h>

struct PropertyRange
{
    // fields

    bool mHas = false;
    PropertyValue mMin;
    PropertyValue mMax;

    // methods

    std::string ToString() const;
};

Detailed Documentation

Numeric property range span class, used by PropertySpecification.

Some camera properties have a valid range of values, defined by a minimum and maximum. This class defines these boundaries.

A valid PropertyRange object, must have its member mHas set to true. false indicates an invalid range object.

Fields

bool mHas = false

Indicate if this object is valid, and range check should be applied.

PropertyValue mMin

The lower bound of the range.

PropertyValue mMax

The upper bound of the range.

Methods

std::string ToString() const

Get a human readable representation of the range.