![]() |
VISR
0.11.6
Versatile Interactive Scene Renderer
|
#include <communication_protocol_base.hpp>
Public Member Functions | |
Output () | |
virtual | ~Output () |
virtual void | setProtocolInstance (CommunicationProtocolBase *protocol)=0 |
virtual CommunicationProtocolBase * | getProtocol ()=0 |
virtual CommunicationProtocolBase const * | getProtocol () const =0 |
Abstract base class for communication protocol inputs. Communication protocols derived from CommunicationProtocolBase must provide a Input class derived from this base class and override its pure virtual methods.
visr::CommunicationProtocolBase::Output::Output | ( | ) |
Default constructor. Because this class exports its symbol from a shared library, we need to provide an explicit constructor in order to avoid multiple auto-generated default constructors.
|
virtual |
Virtual destructor. Derived classes are instantiated and used polymorphically, therefore the destructor has to be virtual.
|
pure virtual |
Return a pointer to the connected communication protocol, or nullptr
if it is not connected.
Implemented in visr::pml::MessageQueueProtocol::OutputBase, and visr::pml::SharedDataProtocol::OutputBase.
|
pure virtual |
Return a pointer to the connected communication protocol (const version), or nullptr
if it is not connected.
Implemented in visr::pml::MessageQueueProtocol::OutputBase, and visr::pml::SharedDataProtocol::OutputBase.
|
pure virtual |
Set the protocol instance for this protocol input.
Implemented in visr::pml::MessageQueueProtocol::OutputBase, and visr::pml::SharedDataProtocol::OutputBase.