Open Model Railroad Network (OpenMRN)
Loading...
Searching...
No Matches
BulkAliasAllocator.hxx
Go to the documentation of this file.
1
38#include "openlcb/CanDefs.hxx"
39
40namespace openlcb
41{
42
45{
47 void reset(unsigned count)
48 {
49 reset_base();
50 numAliases_ = count;
51 }
52
54 unsigned numAliases_;
55};
56
58
61std::unique_ptr<BulkAliasAllocatorInterface> create_bulk_alias_allocator(
62 IfCan *can_if);
63
64} // namespace openlcb
Implementation of the OpenLCB interface abstraction for the CAN-bus interface standard.
Definition IfCan.hxx:65
std::unique_ptr< BulkAliasAllocatorInterface > create_bulk_alias_allocator(IfCan *can_if)
Creates a bulk alias allocator.
All callable flow request objects have to derive from this struct.
void reset_base()
Call this from all instances of reset(...).
Message type to request allocating many aliases for an interface.
unsigned numAliases_
How many aliases to allocate.