Open Model Railroad Network (OpenMRN)
Loading...
Searching...
No Matches
Bus< MessageType >::Activity Class Referenceabstract

Abstract class that gets scheduled for polling and when the master decides to take it, gets a buffer to fill in with a packet. More...

#include <BusMaster.hxx>

Inheritance diagram for Bus< MessageType >::Activity:
QMember

Public Types

using Packet = Bus::Packet
 
using PacketPtr = Bus::PacketPtr
 

Public Member Functions

virtual void fill_packet (Packet *packet)=0
 Complete a packet to send to the bus.
 
- Public Member Functions inherited from QMember
void init ()
 Initiailize a QMember, in place of a public placement construction.
 

Additional Inherited Members

- Protected Member Functions inherited from QMember
 QMember ()
 Constructor.
 
 ~QMember ()
 Destructor.
 
- Protected Attributes inherited from QMember
QMembernext
 pointer to the next member in the queue
 

Detailed Description

template<class MessageType>
class Bus< MessageType >::Activity

Abstract class that gets scheduled for polling and when the master decides to take it, gets a buffer to fill in with a packet.

Definition at line 60 of file BusMaster.hxx.

Member Typedef Documentation

◆ Packet

template<class MessageType >
using Bus< MessageType >::Activity::Packet = Bus::Packet

Definition at line 63 of file BusMaster.hxx.

◆ PacketPtr

template<class MessageType >
using Bus< MessageType >::Activity::PacketPtr = Bus::PacketPtr

Definition at line 64 of file BusMaster.hxx.

Member Function Documentation

◆ fill_packet()

template<class MessageType >
virtual void Bus< MessageType >::Activity::fill_packet ( Packet packet)
pure virtual

Complete a packet to send to the bus.

Parameters
packetmust be filled in the by callee. Ownership is retained by the caller.

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