|
Open Model Railroad Network (OpenMRN)
|
Implementation for the gridconnect bridge. More...
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 Pool * | pool () |
| 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 | |
| CanHubFlow * | canHub_ |
| 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< CanHubData > | message_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. | |
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.
|
inline |
Constructor.
| can_hub | Which hub's packets to write to stdout. |
| timestamped | Whether to put timestamps on the packets written. |
Definition at line 381 of file GridConnectHub.cxx.
|
inline |
Definition at line 388 of file GridConnectHub.cxx.
|
inlinevirtual |
Overridden entry method to send binary data to this hub.
| message | CAN frame buffer. |
| priority | priority |
Implements FlowInterface< Buffer< CanHubData > >.
Definition at line 397 of file GridConnectHub.cxx.
| CanHubFlow* GcPacketPrinter::Impl::canHub_ |
Which hun are we registered to.
Definition at line 423 of file GridConnectHub.cxx.
| bool GcPacketPrinter::Impl::timestamped_ |
Whether we are printing timestamps of the packets.
Definition at line 425 of file GridConnectHub.cxx.