#include <artnetreceiver.h>
Public Member Functions | |
ArtNetReceiver ()=default | |
ArtNetReceiver (ArtNetService &service) | |
virtual bool | start (utility::ErrorState &errorState) override |
virtual void | stop () override |
void | addEvent (ArtNetEventPtr event) |
void | consumeEvents (std::queue< ArtNetEventPtr > &outEvents) |
![]() | |
Resource () | |
![]() | |
Object () | |
virtual | ~Object () |
virtual bool | init (utility::ErrorState &errorState) |
virtual void | onDestroy () |
Object (Object &)=delete | |
Object & | operator= (const Object &)=delete |
Object (Object &&)=delete | |
Object & | operator= (Object &&)=delete |
Public Attributes | |
std::string | mIpAddress = "" |
Property: 'IP Address' The IP address of the interface to use for receiving Art-Net, will use 0.0.0.0 (all local addresses) if left empty. More... | |
uint16 | mPort = 6454 |
Property: 'Port' The port that is opened and used to receive Art-Net messages. More... | |
![]() | |
std::string | mID |
Property: 'mID' unique name of the object. Used as an identifier by the system. More... | |
Additional Inherited Members | |
![]() | |
static bool | isIDProperty (rtti::Instance &object, const rtti::Property &property) |
Receives and processes Art-Net messages.
|
default |
ArtNetReceiver | ( | ArtNetService & | service | ) |
void addEvent | ( | ArtNetEventPtr | event | ) |
Adds an event to the queue
event | the event to add, note that this receiver will take ownership of the event |
void consumeEvents | ( | std::queue< ArtNetEventPtr > & | outEvents | ) |
Consumes all received Art-Net events and moves them to outEvents, called by the service on the main thread. Calling this will clear the internal queue and transfers ownership of the events to the caller
outEvents | will hold the transferred Art-Net events |
|
overridevirtual |
Starts the Art-Net receiver.
errorState | Contains error information in case the function returns false. |
Reimplemented from Device.
|
overridevirtual |
Stops the Art-Net receiver.
Reimplemented from Device.
std::string mIpAddress = "" |
Property: 'IP Address' The IP address of the interface to use for receiving Art-Net, will use 0.0.0.0 (all local addresses) if left empty.
uint16 mPort = 6454 |
Property: 'Port' The port that is opened and used to receive Art-Net messages.