libcamera: include/libcamera/internal/control_validator.h Source File

libcamera v0.1.0 Supporting cameras in Linux since 2019

Loading...
Searching...
No Matches
control_validator.h
Go to the documentation of this file.
1/* SPDX-License-Identifier: LGPL-2.1-or-later */
2/*
3 * Copyright (C) 2019, Google Inc.
4 *
5 * control_validator.h - Control validator
6 */
7
8#pragma once
9
10#include <string>
11
12namespace libcamera {
13
14class ControlId;
15
16 class ControlValidator
17{
18public:
19 virtual ~ControlValidator() = default;
20
21 virtual const std::string &name() const = 0;
22 virtual bool validate(unsigned int id) const = 0;
23};
24
25} /* namespace libcamera */
libcamera::ControlValidator
Interface for the control validator.
Definition control_validator.h:17
libcamera::ControlValidator::name
virtual const std::string & name() const =0
Retrieve the name of the object associated with the validator.
libcamera::ControlValidator::validate
virtual bool validate(unsigned int id) const =0
Validate a control.
libcamera
Top-level libcamera namespace.
Definition backtrace.h:17