WPILibC++ 2024.3.2
cs::RawEvent Struct Reference

Listener event. More...

#include <cscore_cpp.h>

Inheritance diagram for cs::RawEvent:
cs::VideoEvent

Public Types

enum  Kind {
  kSourceCreated = CS_SOURCE_CREATED , kSourceDestroyed = CS_SOURCE_DESTROYED , kSourceConnected = CS_SOURCE_CONNECTED , kSourceDisconnected = CS_SOURCE_DISCONNECTED ,
  kSourceVideoModesUpdated = CS_SOURCE_VIDEOMODES_UPDATED , kSourceVideoModeChanged = CS_SOURCE_VIDEOMODE_CHANGED , kSourcePropertyCreated = CS_SOURCE_PROPERTY_CREATED , kSourcePropertyValueUpdated = CS_SOURCE_PROPERTY_VALUE_UPDATED ,
  kSourcePropertyChoicesUpdated = CS_SOURCE_PROPERTY_CHOICES_UPDATED , kSinkSourceChanged = CS_SINK_SOURCE_CHANGED , kSinkCreated = CS_SINK_CREATED , kSinkDestroyed = CS_SINK_DESTROYED ,
  kSinkEnabled = CS_SINK_ENABLED , kSinkDisabled = CS_SINK_DISABLED , kNetworkInterfacesChanged = CS_NETWORK_INTERFACES_CHANGED , kTelemetryUpdated = CS_TELEMETRY_UPDATED ,
  kSinkPropertyCreated = CS_SINK_PROPERTY_CREATED , kSinkPropertyValueUpdated = CS_SINK_PROPERTY_VALUE_UPDATED , kSinkPropertyChoicesUpdated = CS_SINK_PROPERTY_CHOICES_UPDATED , kUsbCamerasChanged = CS_USB_CAMERAS_CHANGED
}
 

Public Member Functions

 RawEvent ()=default
 
 RawEvent (RawEvent::Kind kind_)
 
 RawEvent (std::string_view name_, CS_Handle handle_, RawEvent::Kind kind_)
 
 RawEvent (std::string_view name_, CS_Source source_, const VideoMode &mode_)
 
 RawEvent (std::string_view name_, CS_Source source_, RawEvent::Kind kind_, CS_Property property_, CS_PropertyKind propertyKind_, int value_, std::string_view valueStr_)
 

Public Attributes

Kind kind
 
CS_Source sourceHandle = CS_INVALID_HANDLE
 
CS_Sink sinkHandle = CS_INVALID_HANDLE
 
std::string name
 
VideoMode mode
 
CS_Property propertyHandle
 
CS_PropertyKind propertyKind
 
int value
 
std::string valueStr
 
CS_Listener listener {0}
 

Detailed Description

Listener event.

Member Enumeration Documentation

◆ Kind

Enumerator
kSourceCreated 
kSourceDestroyed 
kSourceConnected 
kSourceDisconnected 
kSourceVideoModesUpdated 
kSourceVideoModeChanged 
kSourcePropertyCreated 
kSourcePropertyValueUpdated 
kSourcePropertyChoicesUpdated 
kSinkSourceChanged 
kSinkCreated 
kSinkDestroyed 
kSinkEnabled 
kSinkDisabled 
kNetworkInterfacesChanged 
kTelemetryUpdated 
kSinkPropertyCreated 
kSinkPropertyValueUpdated 
kSinkPropertyChoicesUpdated 
kUsbCamerasChanged 

Constructor & Destructor Documentation

◆ RawEvent() [1/5]

cs::RawEvent::RawEvent ( )
default

◆ RawEvent() [2/5]

cs::RawEvent::RawEvent ( RawEvent::Kind  kind_)
inlineexplicit

◆ RawEvent() [3/5]

cs::RawEvent::RawEvent ( std::string_view  name_,
CS_Handle  handle_,
RawEvent::Kind  kind_ 
)
inline

◆ RawEvent() [4/5]

cs::RawEvent::RawEvent ( std::string_view  name_,
CS_Source  source_,
const VideoMode mode_ 
)
inline

◆ RawEvent() [5/5]

cs::RawEvent::RawEvent ( std::string_view  name_,
CS_Source  source_,
RawEvent::Kind  kind_,
CS_Property  property_,
CS_PropertyKind  propertyKind_,
int  value_,
std::string_view  valueStr_ 
)
inline

Member Data Documentation

◆ kind

Kind cs::RawEvent::kind

◆ listener

CS_Listener cs::RawEvent::listener {0}

◆ mode

VideoMode cs::RawEvent::mode

◆ name

std::string cs::RawEvent::name

◆ propertyHandle

CS_Property cs::RawEvent::propertyHandle

◆ propertyKind

CS_PropertyKind cs::RawEvent::propertyKind

◆ sinkHandle

CS_Sink cs::RawEvent::sinkHandle = CS_INVALID_HANDLE

◆ sourceHandle

CS_Source cs::RawEvent::sourceHandle = CS_INVALID_HANDLE

◆ value

int cs::RawEvent::value

◆ valueStr

std::string cs::RawEvent::valueStr

The documentation for this struct was generated from the following file: