senf::ppi::module::debug::ActiveSource Class Reference

Debug packet source with active output. More...

#include <senf/PPI/DebugModules.hh>

Inheritance diagram for senf::ppi::module::debug::ActiveSource:

Public Member Functions

 ActiveSource ()
 
void submit (Packet const &packet)
 Submit packet. More...
 
bool boolean_test () const
 true if output is not throttled More...
 
- Public Member Functions inherited from senf::ppi::module::Module
virtual ~Module ()
 
- Public Member Functions inherited from senf::comparable_safe_bool< class >
 operator bool_type () const
 
bool operator! () const
 

Public Attributes

connector::ActiveOutput output
 

Additional Inherited Members

- Protected Types inherited from senf::safe_bool_base
typedef void(safe_bool_base::* bool_type) () const
 
- Protected Member Functions inherited from senf::ppi::module::Module
 Module ()
 
Route< connector::InputConnector, connector::OutputConnector > & route (connector::InputConnector &input, connector::OutputConnector &output)
 Define flow information. More...
 
Route< connector::InputConnector, EventDescriptor > & route (connector::InputConnector &input, EventDescriptor &output)
 Define flow information. More...
 
Route< EventDescriptor, connector::OutputConnector > & route (EventDescriptor &input, connector::OutputConnector &output)
 Define flow information. More...
 
void noroute (connector::Connector &connector)
 Define terminal connectors. More...
 
template<class Target >
void registerEvent (EventDescriptor &descriptor, Target target)
 Register an external event. More...
 
ClockService::clock_type const & time () const
 Time-stamp of the currently processing event. More...
 
ClockService::clock_type const & now () const
 Current time of the currently processing event. More...
 
virtual void v_init ()
 Called after module setup. More...
 
console::DirectoryNodesysConsoleDir () const
 
void destroy ()
 
- Protected Member Functions inherited from senf::comparable_safe_bool< class >
 ~comparable_safe_bool ()
 
- Protected Member Functions inherited from senf::safe_bool_base
void this_type_does_not_support_comparisons () const
 
 safe_bool_base ()
 
 safe_bool_base (const safe_bool_base &)
 
safe_bool_baseoperator= (const safe_bool_base &)
 
 ~safe_bool_base ()
 

Detailed Description

Debug packet source with active output.

This module provides packets into the network. Each call to submit() will process the packet synchronously.

Note
This module should not be used together with senf::ppi::run(). Instead use senf::ppi::init() and explicit submit() calls. It follows, that no events will be signaled in the network.

Definition at line 67 of file DebugModules.hh.

Constructor & Destructor Documentation

◆ ActiveSource()

senf::ppi::module::debug::ActiveSource::ActiveSource ( )

Member Function Documentation

◆ boolean_test()

bool senf::ppi::module::debug::ActiveSource::boolean_test ( ) const

true if output is not throttled

◆ submit()

void senf::ppi::module::debug::ActiveSource::submit ( Packet const &  packet)

Submit packet.

Precondition
boolean_test() is true

Member Data Documentation

◆ output

connector::ActiveOutput senf::ppi::module::debug::ActiveSource::output

Definition at line 71 of file DebugModules.hh.


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