API
 
Loading...
Searching...
No Matches
test_xigNode Class Reference
Inheritance diagram for test_xigNode:
Inheritance graph
Collaboration diagram for test_xigNode:
Collaboration graph

Public Member Functions

 test_xigNode (const std::string &name, ingr::instGraphXML *parentGraph)
 
int handleSetProperty (const pcf::IndiProperty &ipRecv)
 INDI SetProperty callback.
 
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::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.
 

Detailed Description

Definition at line 26 of file xigNode_test.cpp.

Constructor & Destructor Documentation

◆ test_xigNode()

test_xigNode::test_xigNode ( const std::string &  name,
ingr::instGraphXML *  parentGraph 
)
inline

Definition at line 29 of file xigNode_test.cpp.

Member Function Documentation

◆ handleSetProperty()

int test_xigNode::handleSetProperty ( const pcf::IndiProperty &  ipRecv)
inlinevirtual

INDI SetProperty callback.

This is a pure virtual function in xigNode.

Parameters
[in]ipRecvthe received INDI property to handle

Implements xigNode.

Definition at line 32 of file xigNode_test.cpp.

◆ key()

void xigNode::key ( const std::string &  nkey)
inlineinherited

◆ keys()

const std::set< std::string > & xigNode::keys ( )
inlineinherited

Get the set holding the INDI keys for this node.

Returns
a const reference to m_keys

Definition at line 111 of file xigNode.hpp.

References xigNode::m_keys.

Referenced by SCENARIO().

◆ name()

◆ node()

ingr::instNode * xigNode::node ( )
inlineinherited

Get the pointer to the underlying node.

Returns
the node pointer, which can not be nullptr after construction

Definition at line 121 of file xigNode.hpp.

References xigNode::m_node.

Referenced by SCENARIO(), SCENARIO(), SCENARIO(), SCENARIO(), SCENARIO(), TEST_CASE(), and TEST_CASE().

◆ togglePutsOff()

void xigNode::togglePutsOff ( )
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 pwrOnOffNode::toggleOff().

◆ togglePutsOn()

void xigNode::togglePutsOn ( )
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(), pwrOnOffNode::toggleOn(), and stdMotionNode::togglePutsOn().

Member Data Documentation

◆ m_changes

int xigNode::m_changes { 0 }
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().

◆ m_keys

std::set<std::string> xigNode::m_keys
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().

◆ m_node

◆ m_parentGraph


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