libcamera
v0.1.0
Supporting cameras in Linux since 2019
include
libcamera
internal
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
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::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
libcamera::ControlValidator::validate
virtual bool validate(unsigned int id) const =0
Validate a control.
libcamera::ControlValidator
Interface for the control validator.
Definition:
control_validator.h:17
Generated by
1.8.20