#include <commandsProc.hxx>
Definition at line 425 of file commandsProc.hxx.
◆ CommandSetSwitchCase()
| CommandSetSwitchCase::CommandSetSwitchCase |
( |
std::string |
aSwitch, |
|
|
std::string |
node, |
|
|
std::string |
value |
|
) |
| |
◆ dump()
| std::string CommandSetSwitchCase::dump |
( |
| ) |
|
|
protectedvirtual |
◆ localExecute()
| bool CommandSetSwitchCase::localExecute |
( |
| ) |
|
|
protectedvirtual |
Implements YACS::HMI::Command.
Definition at line 2517 of file commandsProc.cxx.
2519 DEBTRACE(
"CommandSetSwitchCase::localExecute");
2522 DEBTRACE(
"CommandSetSwitchCase::localExecute");
2526 int val = atoi(
_value.c_str());
2529 throw YACS::Exception(
"Set Switch Case impossible: value already used");
2535 DEBTRACE(
"CommandSetSwitchCase::localExecute OK " << val);
2545 DEBTRACE(
"CommandSetSwitchCase::localExecute() : " <<
ex.what());
#define YASSERT(val)
YASSERT macro is always defined, used like assert, but throw a YACS::Exception instead of abort.
std::string getChildName(const Node *node) const
Node * getChildByName(const std::string &name) const
Base class for all nodes.
Base class for all schema objects.
Control node that emulates the C switch.
Node * edGetNode(int caseId)
void edChangeCase(int oldCase, int newCase)
Change the case of a node.
int getRankOfNode(Node *node) const
YACS::ENGINE::Proc * getProc()
std::map< YACS::ENGINE::Node *, YACS::HMI::SubjectNode * > _mapOfSubjectNode
static GuiContext * getCurrent()
virtual void update(GuiEvent event, int type, Subject *son)
virtual void recursiveUpdate(GuiEvent event, int type, Subject *son)
void setErrorMsg(YACS::Exception &ex)
References YACS::HMI::GuiContext::_mapOfSubjectNode, _node, _oldNode, _oldValue, _switch, _value, DEBTRACE, YACS::ENGINE::Switch::edChangeCase(), YACS::ENGINE::Switch::edGetNode(), testCppPluginInvokation::ex, YACS::ENGINE::ComposedNode::getChildByName(), YACS::ENGINE::ComposedNode::getChildName(), YACS::HMI::GuiContext::getCurrent(), YACS::HMI::GuiContext::getProc(), YACS::ENGINE::Switch::getRankOfNode(), YACS::HMI::SubjectNode::recursiveUpdate(), YACS::HMI::RENAME, YACS::HMI::SETCASE, setErrorMsg(), YACS::HMI::SubjectNode::update(), and YASSERT.
◆ localReverse()
| bool CommandSetSwitchCase::localReverse |
( |
| ) |
|
|
protectedvirtual |
Implements YACS::HMI::Command.
Definition at line 2551 of file commandsProc.cxx.
2553 DEBTRACE(
"CommandSetSwitchCase::localReverse");
2556 DEBTRACE(
"CommandSetSwitchCase::localReverse");
2563 throw YACS::Exception(
"Set Switch Case impossible: value already used");
2567 DEBTRACE(
"CommandSetSwitchCase::localReverse OK " << val);
2577 DEBTRACE(
"CommandSetSwitchCase::localReverse() : " <<
ex.what());
References YACS::HMI::GuiContext::_mapOfSubjectNode, _oldNode, _oldValue, _switch, DEBTRACE, YACS::ENGINE::Switch::edChangeCase(), YACS::ENGINE::Switch::edGetNode(), testCppPluginInvokation::ex, YACS::ENGINE::ComposedNode::getChildByName(), YACS::HMI::GuiContext::getCurrent(), YACS::HMI::GuiContext::getProc(), YACS::ENGINE::Switch::getRankOfNode(), YACS::HMI::SubjectNode::recursiveUpdate(), YACS::HMI::RENAME, YACS::HMI::SETCASE, setErrorMsg(), YACS::HMI::SubjectNode::update(), and YASSERT.
◆ _node
| std::string YACS::HMI::CommandSetSwitchCase::_node |
|
protected |
◆ _oldNode
| std::string YACS::HMI::CommandSetSwitchCase::_oldNode |
|
protected |
◆ _oldValue
| int YACS::HMI::CommandSetSwitchCase::_oldValue |
|
protected |
◆ _switch
| std::string YACS::HMI::CommandSetSwitchCase::_switch |
|
protected |
◆ _value
| std::string YACS::HMI::CommandSetSwitchCase::_value |
|
protected |
The documentation for this class was generated from the following files: