libcamera
v0.7.2
Supporting cameras in Linux since 2019
Toggle main menu visibility
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
6
*/
7
8
#pragma once
9
10
#include <string>
11
12
namespace
libcamera
{
13
14
class
ControlId
;
15
16
class
ControlValidator
17
{
18
public
:
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::ControlId
Control static metadata.
Definition
controls.h:251
libcamera::ControlValidator
Interface for the control validator.
Definition
control_validator.h:17
libcamera::ControlValidator::validate
virtual bool validate(unsigned int id) const =0
Validate a control.
libcamera::ControlValidator::name
virtual const std::string & name() const =0
Retrieve the name of the object associated with the validator.
libcamera
Top-level libcamera namespace.
Definition
backtrace.h:17
include
libcamera
internal
control_validator.h
Generated by
1.18.0