senf::ppi::connector::ActiveInput< PacketType > Class Template Reference

Connector actively reading packets. More...

#include <senf/PPI/Connectors.hh>

Inheritance diagram for senf::ppi::connector::ActiveInput< PacketType >:
Inheritance graph
[legend]

List of all members.


Detailed Description

template<class PacketType = Packet>
class senf::ppi::connector::ActiveInput< PacketType >

Connector actively reading packets.
Template Parameters:
PacketType  Type of packet to read. Defaults to senf::Packet
The ActiveInput connector template reads data actively from a connected module. This class is completely implemented via it's base-class, GenericActiveInput, the only difference is that read packets are returned as PacketType instead of generic senf::Packet references.
See also:
GenericActiveInput
senf::ppi::connector

Definition at line 625 of file Connectors.hh.


Public Member Functions

PacketType  operator() ()
  Read packet.
PacketType  read ()
  Alias for operator().

Member Function Documentation

template<class PacketType = Packet>
PacketType senf::ppi::connector::ActiveInput< PacketType >::
operator() ()

Read packet.

Exceptions:
std::bad_cast  if the connector receives a Packet which is not of type PacketType.
Returns:
newly read packet reference.

Reimplemented from senf::ppi::connector::InputConnector.

template<class PacketType = Packet>
PacketType senf::ppi::connector::ActiveInput< PacketType >::
read ()

Alias for operator().

Reimplemented from senf::ppi::connector::InputConnector.


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