An instGraph node which is static, with status set at config time and not changing. More...
#include <staticNode.hpp>


Public Member Functions | |
| staticNode (const std::string &name, ingr::instGraphXML *parentGraph) | |
| Only c'tor. Must be constructed with node name and a parent graph. | |
| const std::set< std::string > & | inputsOn () const |
| Get the always on inputs. | |
| const std::set< std::string > & | inputsOff () const |
| Get the always off inputs. | |
| const std::set< std::string > & | outputsOn () const |
| Get the always on outputs. | |
| const std::set< std::string > & | outputsOff () const |
| Get the always off outputs. | |
| virtual int | handleSetProperty (const pcf::IndiProperty &ipRecv) |
| INDI SetProperty callback. | |
| virtual void | togglePutsAll () |
| Toggle all puts to their static state. | |
| virtual void | togglePutsOn () |
| Toggle all puts on. | |
| virtual void | togglePutsOff () |
| Toggle all puts off. | |
| void | loadConfig (mx::app::appConfigurator &config) |
| Configure this node form an appConfigurator. | |
| 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. | |
Protected Attributes | |
| std::set< std::string > | m_inputsOn |
| inputs which are always on | |
| std::set< std::string > | m_inputsOff |
| inputs which are always off | |
| std::set< std::string > | m_outputsOn |
| outputs which are always on | |
| std::set< std::string > | m_outputsOff |
| outputs which are always off | |
| 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. | |
An instGraph node which is static, with status set at config time and not changing.
Definition at line 13 of file staticNode.hpp.
| staticNode::staticNode | ( | const std::string & | name, |
| ingr::instGraphXML * | parentGraph | ||
| ) |
Only c'tor. Must be constructed with node name and a parent graph.
| [in] | parentGraph | the name of this node [in] the graph which this node belongs to |
Definition at line 70 of file staticNode.hpp.
|
inlinevirtual |
INDI SetProperty callback.
| [in] | ipRecv | the received INDI property to handle |
Implements xigNode.
Definition at line 94 of file staticNode.hpp.
| const std::set< std::string > & staticNode::inputsOff | ( | ) | const |
Get the always off inputs.
Definition at line 79 of file staticNode.hpp.
References m_inputsOff.
Referenced by loadConfig(), and TEST_CASE().
| const std::set< std::string > & staticNode::inputsOn | ( | ) | const |
Get the always on inputs.
Definition at line 74 of file staticNode.hpp.
References m_inputsOn.
Referenced by loadConfig(), and TEST_CASE().
|
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(), pwrOnOffNode::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 |
Configure this node form an appConfigurator.
| [in] | config | the loaded configuration |
Definition at line 174 of file staticNode.hpp.
References inputsOff(), inputsOn(), m_inputsOff, m_inputsOn, m_outputsOff, m_outputsOn, xigNode::m_parentGraph, xigNode::name(), outputsOff(), outputsOn(), togglePutsAll(), and XIGN_EXCEPTION.
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(), pwrOnOffNode::loadConfig(), 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().
| const std::set< std::string > & staticNode::outputsOff | ( | ) | const |
Get the always off outputs.
Definition at line 89 of file staticNode.hpp.
References m_outputsOff.
Referenced by loadConfig(), and TEST_CASE().
| const std::set< std::string > & staticNode::outputsOn | ( | ) | const |
Get the always on outputs.
Definition at line 84 of file staticNode.hpp.
References m_outputsOn.
Referenced by loadConfig(), and TEST_CASE().
|
inlinevirtual |
Toggle all puts to their static state.
Definition at line 101 of file staticNode.hpp.
References m_inputsOff, m_inputsOn, xigNode::m_node, m_outputsOff, m_outputsOn, and XIGN_EXCEPTION.
Referenced by loadConfig(), togglePutsOff(), and togglePutsOn().
|
inlinevirtual |
Toggle all puts off.
Reimplemented from xigNode.
Definition at line 169 of file staticNode.hpp.
References togglePutsAll().
|
inlinevirtual |
Toggle all puts on.
Reimplemented from xigNode.
Definition at line 164 of file staticNode.hpp.
References togglePutsAll().
|
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().
|
protected |
inputs which are always off
Definition at line 18 of file staticNode.hpp.
Referenced by inputsOff(), loadConfig(), and togglePutsAll().
|
protected |
inputs which are always on
Definition at line 17 of file staticNode.hpp.
Referenced by inputsOn(), loadConfig(), and togglePutsAll().
|
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::pwrOnOffNode(), xigNode::xigNode(), fsmNode::handleSetProperty(), indiPropNode::handleSetProperty(), stdMotionNode::handleSetProperty(), fsmNode::loadConfigDerived(), xigNode::name(), xigNode::node(), pwrOnOffNode::toggleOff(), pwrOnOffNode::toggleOn(), togglePutsAll(), stdMotionNode::togglePutsOff(), xigNode::togglePutsOff(), stdMotionNode::togglePutsOn(), and xigNode::togglePutsOn().
|
protected |
outputs which are always off
Definition at line 21 of file staticNode.hpp.
Referenced by loadConfig(), outputsOff(), and togglePutsAll().
|
protected |
outputs which are always on
Definition at line 20 of file staticNode.hpp.
Referenced by loadConfig(), outputsOn(), and togglePutsAll().
|
protectedinherited |
The parent instGraph that this node is a part of.
Definition at line 35 of file xigNode.hpp.
Referenced by indiPropNode::indiPropNode(), pwrOnOffNode::pwrOnOffNode(), xigNode::xigNode(), fsmNode::handleSetProperty(), indiPropNode::handleSetProperty(), fsmNode::loadConfig(), indiPropNode::loadConfig(), pwrOnOffNode::loadConfig(), loadConfig(), stdMotionNode::loadConfig(), fsmNode::loadConfigDerived(), pwrOnOffNode::toggleOff(), pwrOnOffNode::toggleOn(), stdMotionNode::togglePutsOff(), and stdMotionNode::togglePutsOn().