Open Model Railroad Network (OpenMRN)
Loading...
Searching...
No Matches
openlcb::MockHubPort Class Reference
Inheritance diagram for openlcb::MockHubPort:
FlowInterface< Buffer< HubData > >

Public Member Functions

 MOCK_METHOD2 (send, void(const string &message, unsigned priority))
 
void send (Buffer< HubData > *b, unsigned priority) override
 Entry point to the flow.
 
- Public Member Functions inherited from FlowInterface< Buffer< HubData > >
virtual Poolpool ()
 
virtual Buffer< HubData > * type_helper ()
 This function is never user in the code, but GDB can use it to infer the correct message types.
 
Buffer< HubData > * 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.
 

Additional Inherited Members

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

Detailed Description

Definition at line 19 of file if_tcp_test_helper.hxx.

Member Function Documentation

◆ send()

void openlcb::MockHubPort::send ( Buffer< HubData > *  message,
unsigned  priority 
)
inlineoverridevirtual

Entry point to the flow.

Users of the flow should call this mehtod to send a buffer to the flow.

Parameters
messagebuffer to send to the flow
prioritywhich priority back the flow should process it. Lower numbers mean process earlier.

Implements FlowInterface< Buffer< HubData > >.

Definition at line 24 of file if_tcp_test_helper.hxx.


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