![]() |
An output producer sends data to a device. More...
Public Member Functions | |
OutputProducer () | |
Constructor. More... | |
virtual | ~OutputProducer () |
Destructor. More... | |
virtual bool | requestOutput (const std::string &device, SurgSim::DataStructures::DataGroup *outputData) override |
Send the output to the device. More... | |
void | setData (const SurgSim::DataStructures::DataGroup &dataGroup) |
Set the output data information stored in this output producer. More... | |
![]() | |
virtual | ~OutputProducerInterface () |
Virtual destructor (empty). More... | |
Private Attributes | |
SurgSim::Framework::LockedContainer< SurgSim::DataStructures::DataGroup > | m_lastOutput |
Used to store output data information to be passed out to device. More... | |
bool | m_haveData |
Has setData been called since construction? More... | |
An output producer sends data to a device.
|
inline |
Constructor.
|
inlinevirtual |
Destructor.
|
inlineoverridevirtual |
Send the output to the device.
device | The name of the device to receive the output. | |
[out] | outputData | The output data going to the device. |
Implements SurgSim::Input::OutputProducerInterface.
|
inline |
Set the output data information stored in this output producer.
dataGroup | Data to be sent to the device |
|
private |
Has setData been called since construction?
|
private |
Used to store output data information to be passed out to device.
The DataGroup in the LockedContainer is default-constructed, so m_lastOutput.get will assert until after the first call to m_lastOutput.set in setData.