#include <pwrOnOffNode.hpp>


Public Member Functions | |
| pwrOnOffNode (const std::string &name, ingr::instGraphXML *parentGraph) | |
| void | pwrKey (const std::string &pk) |
| const std::string & | pwrKey () const |
| virtual int | handleSetProperty (const pcf::IndiProperty &ipRecv) |
| INDI SetProperty callback. | |
| virtual void | toggleOn () |
| virtual void | toggleOff () |
| void | loadConfig (mx::app::appConfigurator &config) |
| std::string | name () |
| Get the name of this node. | |
| const std::set< std::string > & | keys () |
| Get the set holding the INDI keys for this node. | |
| void | key (const std::string &nkey) |
| Add a key to the set. | |
| ingr::instNode * | node () |
| Get the pointer to the underlying node. | |
| virtual void | togglePutsOn () |
| Change the state of all inputs and all outputs to on. | |
| virtual void | togglePutsOff () |
| Change the state of all inputs and all outputs to off. | |
Protected Attributes | |
| std::string | m_pwrKey |
| int | m_pwrState { -1 } |
| std::set< std::string > | m_keys |
| The INDI keys (device.property) which this node subscribes to. | |
| ingr::instGraphXML * | m_parentGraph { nullptr } |
| The parent instGraph that this node is a part of. | |
| ingr::instNode * | m_node { nullptr } |
| The underlying instGraph node. | |
| int | m_changes { 0 } |
| Counter that can be incremented when changes are detected. Set to 0 when graph is updated. | |
Definition at line 12 of file pwrOnOffNode.hpp.
|
inline |
Definition at line 20 of file pwrOnOffNode.hpp.
References xigNode::m_node, and xigNode::m_parentGraph.
|
inlinevirtual |
INDI SetProperty callback.
| [in] | ipRecv | the received INDI property to handle |
Implements xigNode.
Definition at line 55 of file pwrOnOffNode.hpp.
References m_pwrKey, toggleOff(), and toggleOn().
|
inlineinherited |
Add a key to the set.
Definition at line 116 of file xigNode.hpp.
References xigNode::m_keys.
Referenced by fsmNode::device(), stdMotionNode::device(), stdMotionNode::presetPrefix(), indiPropNode::propKey(), pwrKey(), SCENARIO(), stdMotionNode::trackerKey(), and stdMotionNode::trackingReqKey().
|
inlineinherited |
Get the set holding the INDI keys for this node.
Definition at line 111 of file xigNode.hpp.
References xigNode::m_keys.
Referenced by SCENARIO().
|
inline |
Definition at line 104 of file pwrOnOffNode.hpp.
References xigNode::m_parentGraph, xigNode::name(), and pwrKey().
Referenced by TEST_CASE().
|
inlineinherited |
Get the name of this node.
Definition at line 106 of file xigNode.hpp.
References xigNode::m_node.
Referenced by xigNode::xigNode(), fsmNode::device(), fsmNode::fsmElName(), fsmNode::fsmPropName(), fsmNode::loadConfig(), indiPropNode::loadConfig(), loadConfig(), staticNode::loadConfig(), stdMotionNode::loadConfig(), fsmNode::loadConfigDerived(), SCENARIO(), SCENARIO(), SCENARIO(), SCENARIO(), SCENARIO(), TEST_CASE(), TEST_CASE(), stdMotionNode::togglePutsOff(), and stdMotionNode::togglePutsOn().
|
inlineinherited |
Get the pointer to the underlying node.
Definition at line 121 of file xigNode.hpp.
References xigNode::m_node.
Referenced by SCENARIO(), SCENARIO(), SCENARIO(), SCENARIO(), SCENARIO(), TEST_CASE(), and TEST_CASE().
|
inline |
|
inline |
Definition at line 43 of file pwrOnOffNode.hpp.
References xigNode::key(), and m_pwrKey.
Referenced by TEST_CASE().
|
inlinevirtual |
Definition at line 92 of file pwrOnOffNode.hpp.
References xigNode::m_node, xigNode::m_parentGraph, m_pwrState, and xigNode::togglePutsOff().
Referenced by handleSetProperty().
|
inlinevirtual |
Definition at line 79 of file pwrOnOffNode.hpp.
References xigNode::m_node, xigNode::m_parentGraph, m_pwrState, and xigNode::togglePutsOn().
Referenced by handleSetProperty().
|
inlinevirtualinherited |
Change the state of all inputs and all outputs to off.
Reimplemented in staticNode, and stdMotionNode.
Definition at line 141 of file xigNode.hpp.
References xigNode::m_node.
Referenced by fsmNode::handleSetProperty(), indiPropNode::toggleOff(), and toggleOff().
|
inlinevirtualinherited |
Change the state of all inputs and all outputs to on.
Reimplemented in staticNode, and stdMotionNode.
Definition at line 126 of file xigNode.hpp.
References xigNode::m_node.
Referenced by fsmNode::handleSetProperty(), indiPropNode::toggleOn(), toggleOn(), and stdMotionNode::togglePutsOn().
|
protectedinherited |
Counter that can be incremented when changes are detected. Set to 0 when graph is updated.
Definition at line 39 of file xigNode.hpp.
Referenced by fsmNode::handleSetProperty(), indiPropNode::handleSetProperty(), and stdMotionNode::handleSetProperty().
|
protectedinherited |
The INDI keys (device.property) which this node subscribes to.
Definition at line 33 of file xigNode.hpp.
Referenced by xigNode::key(), and xigNode::keys().
|
protectedinherited |
The underlying instGraph node.
Definition at line 37 of file xigNode.hpp.
Referenced by indiPropNode::indiPropNode(), pwrOnOffNode(), xigNode::xigNode(), fsmNode::handleSetProperty(), indiPropNode::handleSetProperty(), stdMotionNode::handleSetProperty(), fsmNode::loadConfigDerived(), xigNode::name(), xigNode::node(), toggleOff(), toggleOn(), staticNode::togglePutsAll(), stdMotionNode::togglePutsOff(), xigNode::togglePutsOff(), stdMotionNode::togglePutsOn(), and xigNode::togglePutsOn().
|
protectedinherited |
The parent instGraph that this node is a part of.
Definition at line 35 of file xigNode.hpp.
Referenced by indiPropNode::indiPropNode(), pwrOnOffNode(), xigNode::xigNode(), fsmNode::handleSetProperty(), indiPropNode::handleSetProperty(), fsmNode::loadConfig(), indiPropNode::loadConfig(), loadConfig(), staticNode::loadConfig(), stdMotionNode::loadConfig(), fsmNode::loadConfigDerived(), toggleOff(), toggleOn(), stdMotionNode::togglePutsOff(), and stdMotionNode::togglePutsOn().
|
protected |
Definition at line 16 of file pwrOnOffNode.hpp.
Referenced by handleSetProperty(), pwrKey(), and pwrKey().
|
protected |
Definition at line 17 of file pwrOnOffNode.hpp.
Referenced by toggleOff(), and toggleOn().