Open Model Railroad Network (OpenMRN)
Loading...
Searching...
No Matches
GcPacketPrinter Class Reference

Create this port for a CAN hub and all packets will be written to stdout in gridconnect format. More...

#include <GridConnectHub.hxx>

Classes

struct  Impl
 Implementation for the gridconnect bridge. More...
 

Public Member Functions

 GcPacketPrinter (CanHubFlow *can_hub, bool timestamped)
 constructor
 

Private Attributes

std::unique_ptr< Implimpl_
 pImpl object.
 

Detailed Description

Create this port for a CAN hub and all packets will be written to stdout in gridconnect format.

Definition at line 108 of file GridConnectHub.hxx.

Constructor & Destructor Documentation

◆ GcPacketPrinter()

GcPacketPrinter::GcPacketPrinter ( CanHubFlow can_hub,
bool  timestamped 
)

constructor

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

Definition at line 428 of file GridConnectHub.cxx.

◆ ~GcPacketPrinter()

GcPacketPrinter::~GcPacketPrinter ( )

Definition at line 432 of file GridConnectHub.cxx.

Member Data Documentation

◆ impl_

std::unique_ptr<Impl> GcPacketPrinter::impl_
private

pImpl object.

Definition at line 122 of file GridConnectHub.hxx.


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