LCC Fusion Project 1.0
LCC Automation
Loading...
Searching...
No Matches
Variable Class Reference

Logic's Variable object. More...

#include <Logics.h>

Inherits ConfigUpdateListener.

Collaboration diagram for Variable:

Public Types

enum  Trigger
 Possible event related triggers.
 
using Impl = openlcb::NetworkInitializedBit
 

Public Member Functions

 Variable (openlcb::Node *n, const VariableConfig &cfg, LogicCallback *p, const LogicCallback::Which which)
 Invoked on initial load of CDI and when CDI is udpated.
Register configured events with OpenMRN. More...
 
virtual void factory_reset (int fd)
 

Detailed Description

Logic's Variable object.

Definition at line 189 of file Logics.h.

Member Typedef Documentation

◆ Impl

using Variable::Impl = openlcb::NetworkInitializedBit

type of NetworkInitializedBit object

Definition at line 191 of file Logics.h.

Constructor & Destructor Documentation

◆ Variable()

Variable::Variable ( openlcb::Node *  n,
const VariableConfig &  cfg,
LogicCallback p,
const LogicCallback::Which  which 
)
inline

Invoked on initial load of CDI and when CDI is udpated.
Register configured events with OpenMRN.

Parameters
nis the OpenLCB node object from the stack.
cfgis the variable configuration object from the configuration space that represents the locations of the events.
pis the logic callback function
whichis the callback which function

Definition at line 207 of file Logics.h.

Member Function Documentation

◆ factory_reset()

void Variable::factory_reset ( int  fd)
virtual

Reset CDI configuration entries to their initial (default) values

Parameters
fdused to access the CDI information in the file system

Definition at line 176 of file Logics.cpp.


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