WPILibC++ 2024.3.2
|
A source or sink property. More...
#include <cscore_oo.h>
Public Types | |
enum | Kind { kNone = CS_PROP_NONE , kBoolean = CS_PROP_BOOLEAN , kInteger = CS_PROP_INTEGER , kString = CS_PROP_STRING , kEnum = CS_PROP_ENUM } |
Public Member Functions | |
VideoProperty ()=default | |
std::string | GetName () const |
Returns property name. More... | |
Kind | GetKind () const |
Returns property kind. More... | |
operator bool () const | |
Returns true if property is valid. More... | |
bool | IsBoolean () const |
Returns true if property is a boolean. More... | |
bool | IsInteger () const |
Returns true if property is an integer. More... | |
bool | IsString () const |
Returns true if property is a string. More... | |
bool | IsEnum () const |
Returns true if property is an enum. More... | |
int | Get () const |
Returns property value. More... | |
void | Set (int value) |
Sets property value. More... | |
int | GetMin () const |
Returns property minimum value. More... | |
int | GetMax () const |
Returns property maximum value. More... | |
int | GetStep () const |
Returns property step size. More... | |
int | GetDefault () const |
Returns property default value. More... | |
std::string | GetString () const |
Returns the string property value. More... | |
std::string_view | GetString (wpi::SmallVectorImpl< char > &buf) const |
Returns the string property value as a reference to the given buffer. More... | |
void | SetString (std::string_view value) |
Sets the string property value. More... | |
std::vector< std::string > | GetChoices () const |
Returns the possible values for the enum property value. More... | |
CS_Status | GetLastStatus () const |
Returns the last status. More... | |
Friends | |
class | ImageSource |
class | VideoEvent |
class | VideoSink |
class | VideoSource |
A source or sink property.
|
default |
|
inline |
Returns property value.
|
inline |
Returns the possible values for the enum property value.
This function is enum-specific.
|
inline |
Returns property default value.
|
inline |
Returns property kind.
|
inline |
Returns the last status.
|
inline |
Returns property maximum value.
|
inline |
Returns property minimum value.
|
inline |
Returns property name.
|
inline |
Returns property step size.
|
inline |
Returns the string property value.
This function is string-specific.
|
inline |
Returns the string property value as a reference to the given buffer.
This function is string-specific.
buf | The backing storage to which to write the property value. |
|
inline |
Returns true if property is a boolean.
|
inline |
Returns true if property is an enum.
|
inline |
Returns true if property is an integer.
|
inline |
Returns true if property is a string.
|
inlineexplicit |
Returns true if property is valid.
|
inline |
Sets property value.
value | Property value. |
|
inline |
Sets the string property value.
This function is string-specific.
value | String property value. |
|
friend |
|
friend |
|
friend |
|
friend |