Open Model Railroad Network (OpenMRN)
Loading...
Searching...
No Matches
GcPacketPrinter::Impl Struct Reference

Implementation for the gridconnect bridge. More...

Inheritance diagram for GcPacketPrinter::Impl:
FlowInterface< Buffer< CanHubData > >

Public Member Functions

 Impl (CanHubFlow *can_hub, bool timestamped)
 Constructor.
 
void send (Buffer< CanHubData > *message, unsigned priority) OVERRIDE
 Overridden entry method to send binary data to this hub.
 
- Public Member Functions inherited from FlowInterface< Buffer< CanHubData > >
virtual Poolpool ()
 
virtual Buffer< CanHubData > * type_helper ()
 This function is never user in the code, but GDB can use it to infer the correct message types.
 
Buffer< CanHubData > * alloc ()
 Synchronously allocates a message buffer from the pool of this flow.
 
void alloc_async (Executable *target)
 Asynchronously allocates a message buffer from the pool of this flow.
 

Public Attributes

CanHubFlowcanHub_
 Which hun are we registered to.
 
bool timestamped_
 Whether we are printing timestamps of the packets.
 

Additional Inherited Members

- Public Types inherited from FlowInterface< Buffer< CanHubData > >
typedef Buffer< CanHubDatamessage_type
 Stores the message template type for external reference.
 
- Static Public Member Functions inherited from FlowInterface< Buffer< CanHubData > >
static Buffer< CanHubData > * cast_alloc (QMember *entry)
 Down casts and initializes an asynchronous allocation result to the appropriate flow's buffer type.
 

Detailed Description

Implementation for the gridconnect bridge.

Owns all necessary structures, and is responsible for the initialization, registering, unregistering and destruction of these structures.

Definition at line 375 of file GridConnectHub.cxx.

Constructor & Destructor Documentation

◆ Impl()

GcPacketPrinter::Impl::Impl ( CanHubFlow can_hub,
bool  timestamped 
)
inline

Constructor.

Parameters
can_hubWhich hub's packets to write to stdout.
timestampedWhether to put timestamps on the packets written.

Definition at line 381 of file GridConnectHub.cxx.

◆ ~Impl()

GcPacketPrinter::Impl::~Impl ( )
inline

Definition at line 388 of file GridConnectHub.cxx.

Member Function Documentation

◆ send()

void GcPacketPrinter::Impl::send ( Buffer< CanHubData > *  message,
unsigned  priority 
)
inlinevirtual

Overridden entry method to send binary data to this hub.

Parameters
messageCAN frame buffer.
prioritypriority

Implements FlowInterface< Buffer< CanHubData > >.

Definition at line 397 of file GridConnectHub.cxx.

Member Data Documentation

◆ canHub_

CanHubFlow* GcPacketPrinter::Impl::canHub_

Which hun are we registered to.

Definition at line 423 of file GridConnectHub.cxx.

◆ timestamped_

bool GcPacketPrinter::Impl::timestamped_

Whether we are printing timestamps of the packets.

Definition at line 425 of file GridConnectHub.cxx.


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