Open Model Railroad Network (OpenMRN)
Loading...
Searching...
No Matches
DefaultNode.cxx
Go to the documentation of this file.
1
35#include "utils/logging.h"
37#include "openlcb/If.hxx"
38
39namespace openlcb
40{
41
42DefaultNode::DefaultNode(If* iface, NodeID node_id, bool init)
43 : nodeId_(node_id), isInitialized_(0), iface_(iface)
44{
46 if (init)
47 {
48 initialize();
49 }
50}
51
55
56} // namespace openlcb
virtual ~DefaultNode()
Destructor.
If * iface_
Interface this node is bound to.
DefaultNode(If *iface, NodeID node_id, bool init=true)
Constructor.
Abstract class representing an OpenLCB Interface.
Definition If.hxx:185
void add_local_node(Node *node)
Registers a new local node on this interface.
Definition If.hxx:242
void initialize()
Callback from the simple stack to start the initialization process.
uint64_t NodeID
48-bit NMRAnet Node ID type