1#ifndef VIDEOSOURCESETTING_HH
2#define VIDEOSOURCESETTING_HH
14 [[nodiscard]] std::string_view
getTypeString()
const override;
16 void tabCompletion(std::vector<std::string>& tokens)
const override;
25 void checkSetValue(std::string_view value)
const;
26 [[nodiscard]]
bool has(
int value)
const;
27 [[nodiscard]]
int has(std::string_view value)
const;
31 Source(std::string n,
int i)
32 : name(std::move(n)),
id(i) {}
37 std::vector<Source> sources;
50 [[nodiscard]]
int getID()
const {
return id; }
VideoSourceActivator(VideoSourceActivator &&)=delete
VideoSourceActivator(const VideoSourceActivator &)=delete
VideoSourceActivator & operator=(const VideoSourceActivator &)=delete
VideoSourceActivator & operator=(VideoSourceActivator &&)=delete
void tabCompletion(std::vector< std::string > &tokens) const override
Complete a partly typed value.
void unregisterVideoSource(int source)
void additionalInfo(TclObject &result) const override
Helper method for info().
std::string_view getTypeString() const override
Returns a string describing the setting type (integer, string, ..) Could be used in a GUI to pick an ...
int registerVideoSource(const std::string &source)
std::vector< std::string_view > getPossibleValues() const
This file implemented 3 utility functions: