Registers as a member ofthe railcom hub.
More...
#include <RailcomPortDebug.hxx>
|
| | RailcomPrintfFlow (dcc::RailcomHubFlow *source) |
| | Constructor.
|
| |
| virtual Pool * | pool () |
| |
| virtual void | send (MessageType *message, unsigned priority=UINT_MAX)=0 |
| | Entry point to the flow.
|
| |
| virtual MessageType * | type_helper () |
| | This function is never user in the code, but GDB can use it to infer the correct message types.
|
| |
| MessageType * | 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.
|
| |
|
| typedef MessageType | message_type |
| | Stores the message template type for external reference.
|
| |
| static MessageType * | cast_alloc (QMember *entry) |
| | Down casts and initializes an asynchronous allocation result to the appropriate flow's buffer type.
|
| |
Registers as a member ofthe railcom hub.
Formats all incoming railcom packet in a human-visible way, and puts into the logging facility.
Definition at line 46 of file RailcomPortDebug.hxx.
◆ RailcomPrintfFlow()
Constructor.
- Parameters
-
| source | is the railcom hub to listen to. |
Definition at line 50 of file RailcomPortDebug.hxx.
◆ ~RailcomPrintfFlow()
| dcc::RailcomPrintfFlow::~RailcomPrintfFlow |
( |
| ) |
|
|
inline |
◆ display_railcom_data()
| string dcc::RailcomPrintfFlow::display_railcom_data |
( |
const uint8_t * |
data, |
|
|
int |
len |
|
) |
| |
|
inlineprivate |
Helper function to turn some railcom data into string.
- Parameters
-
| data | is the pointer to the data. |
| len | tells how many bytes are there valid. |
- Returns
- textual representation of that data (debugging).
Definition at line 65 of file RailcomPortDebug.hxx.
◆ send()
Incoming railcom data.
- Parameters
-
| d | railcom buffer. |
| prio | priority |
Definition at line 109 of file RailcomPortDebug.hxx.
◆ parent_
The documentation for this class was generated from the following file: