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