#include <guiObservers.hxx>
Public Member Functions | |
SubjectElementaryNode (YACS::ENGINE::ElementaryNode *elementaryNode, Subject *parent) | |
virtual | ~SubjectElementaryNode () |
virtual void | recursiveUpdate (GuiEvent event, int type, Subject *son) |
virtual SubjectDataPort * | addInputPort (YACS::ENGINE::Catalog *catalog, std::string type, std::string name) |
virtual SubjectDataPort * | addOutputPort (YACS::ENGINE::Catalog *catalog, std::string type, std::string name) |
virtual SubjectDataPort * | addIDSPort (YACS::ENGINE::Catalog *catalog, std::string type, std::string name) |
virtual SubjectDataPort * | addODSPort (YACS::ENGINE::Catalog *catalog, std::string type, std::string name) |
virtual bool | OrderDataPorts (SubjectDataPort *portToMove, int isUp) |
virtual void | removePort (SubjectDataPort *port) |
virtual void | loadChildren () |
virtual void | clean (Command *command=0) |
void | localclean (Command *command=0) |
virtual void | saveLinks () |
virtual void | restoreLinks () |
Public Member Functions inherited from YACS::HMI::SubjectNode | |
SubjectNode (YACS::ENGINE::Node *node, Subject *parent) | |
virtual | ~SubjectNode () |
virtual bool | setProperties (std::map< std::string, std::string > properties) |
virtual std::map< std::string, std::string > | getProperties () |
virtual bool | reparent (Subject *parent) |
virtual bool | copy (Subject *parent) |
virtual std::string | getName () |
virtual bool | setName (std::string name) |
virtual YACS::ENGINE::Node * | getNode () |
void | registerUndoDestroy () |
SubjectControlLink * | addSubjectControlLink (SubjectControlLink *sub) |
void | removeSubjectControlLink (SubjectControlLink *sub) |
std::list< SubjectLink * > | getSubjectLinks () const |
std::list< SubjectControlLink * > | getSubjectControlLinks () const |
std::list< SubjectInputPort * > | getSubjectInputPorts () const |
std::list< SubjectOutputPort * > | getSubjectOutputPorts () const |
std::list < SubjectInputDataStreamPort * > | getSubjectInputDataStreamPorts () const |
std::list < SubjectOutputDataStreamPort * > | getSubjectOutputDataStreamPorts () const |
void | localclean (Command *command=0) |
virtual void | update (GuiEvent event, int type, Subject *son) |
virtual void | removeExternalLinks () |
virtual void | removeExternalControlLinks () |
virtual bool | putInComposedNode (std::string name, std::string type, bool toSaveRestoreLinks=true) |
virtual int | isValid () |
void | setExecState (int execState) |
Public Member Functions inherited from YACS::HMI::Subject | |
Subject (Subject *parent=0) | |
virtual | ~Subject () |
virtual void | attach (GuiObserver *obs) |
virtual void | detach (GuiObserver *obs) |
virtual void | select (bool isSelected) |
virtual std::vector< std::string > | knownProperties () |
virtual Subject * | getParent () |
virtual void | setParent (Subject *son) |
virtual bool | destroy (Subject *son) |
From user action in Ihm, destroy an object. More... | |
virtual void | loadLinks () |
virtual void | addSubjectReference (Subject *ref) |
void | localclean (Command *command=0) |
void | registerUndoDestroy () |
void | askRegisterUndoDestroy () |
bool | isDestructible () |
virtual TypeOfElem | getType () |
virtual void | setProgress (std::string newProgress) |
virtual std::string | getProgress () |
Public Member Functions inherited from YACS::ENGINE::Observer | |
virtual void | notifyObserver2 (Node *object, const std::string &event, void *something) |
virtual | ~Observer () |
Protected Attributes | |
YACS::ENGINE::ElementaryNode * | _elementaryNode |
Protected Attributes inherited from YACS::HMI::SubjectNode | |
YACS::ENGINE::Node * | _node |
std::list< SubjectInputPort * > | _listSubjectInputPort |
std::list< SubjectOutputPort * > | _listSubjectOutputPort |
std::list < SubjectInputDataStreamPort * > | _listSubjectIDSPort |
std::list < SubjectOutputDataStreamPort * > | _listSubjectODSPort |
std::list< SubjectLink * > | _listSubjectLink |
std::list< SubjectControlLink * > | _listSubjectControlLink |
int | _execState |
std::list < YACS::ENGINE::OutGate * > | loutgate |
std::list< YACS::ENGINE::InGate * > | singate |
std::vector< std::pair < YACS::ENGINE::OutPort *, YACS::ENGINE::InPort * > > | dataLinks |
std::vector< std::pair < YACS::ENGINE::OutPort *, YACS::ENGINE::InPort * > > | dataflowLinks |
Protected Attributes inherited from YACS::HMI::Subject | |
std::set< GuiObserver * > | _setObs |
Subject * | _parent |
bool | _destructible |
bool | _askRegisterUndo |
std::string | _progress |
Additional Inherited Members | |
Static Public Member Functions inherited from YACS::HMI::SubjectNode | |
static bool | tryCreateLink (SubjectNode *subOutNode, SubjectNode *subInNode) |
Protected Member Functions inherited from YACS::HMI::SubjectNode | |
virtual SubjectInputPort * | addSubjectInputPort (YACS::ENGINE::InputPort *port, std::string name="") |
virtual SubjectOutputPort * | addSubjectOutputPort (YACS::ENGINE::OutputPort *port, std::string name="") |
virtual SubjectInputDataStreamPort * | addSubjectIDSPort (YACS::ENGINE::InputDataStreamPort *port, std::string name="") |
virtual SubjectOutputDataStreamPort * | addSubjectODSPort (YACS::ENGINE::OutputDataStreamPort *port, std::string name="") |
virtual void | notifyObserver (YACS::ENGINE::Node *object, const std::string &event) |
Definition at line 670 of file guiObservers.hxx.
SubjectElementaryNode::SubjectElementaryNode | ( | YACS::ENGINE::ElementaryNode * | elementaryNode, |
Subject * | parent | ||
) |
Definition at line 2058 of file guiObservers.cxx.
|
virtual |
all generic destruction is done in generic class SubjectNode
Definition at line 2067 of file guiObservers.cxx.
References DEBTRACE, and YACS::HMI::SubjectNode::getName().
|
virtual |
Definition at line 2135 of file guiObservers.cxx.
References YACS::HMI::SubjectNode::_node, YACS::HMI::Invocator::add(), YACS::HMI::SubjectNode::CommandAddIDSPortFromCatalog, DEBTRACE, YACS::HMI::Command::execute(), YACS::ENGINE::ComposedNode::getChildName(), YACS::HMI::GuiContext::getCurrent(), YACS::HMI::GuiContext::getInvoc(), YACS::HMI::GuiContext::getProc(), YACS::HMI::CommandAddIDSPortFromCatalog::getSubjectIDSPort(), and YASSERT.
|
virtual |
Definition at line 2093 of file guiObservers.cxx.
References YACS::HMI::SubjectNode::_node, YACS::HMI::Invocator::add(), YACS::HMI::SubjectNode::CommandAddInputPortFromCatalog, DEBTRACE, YACS::HMI::Command::execute(), YACS::ENGINE::ComposedNode::getChildName(), YACS::HMI::GuiContext::getCurrent(), YACS::HMI::GuiContext::getInvoc(), YACS::HMI::GuiContext::getProc(), YACS::HMI::CommandAddInputPortFromCatalog::getSubjectInputPort(), and YASSERT.
Referenced by YACS::HMI::GuiEditor::CreateInputPort().
|
virtual |
Definition at line 2156 of file guiObservers.cxx.
References YACS::HMI::SubjectNode::_node, YACS::HMI::Invocator::add(), YACS::HMI::SubjectNode::CommandAddODSPortFromCatalog, DEBTRACE, YACS::HMI::Command::execute(), YACS::ENGINE::ComposedNode::getChildName(), YACS::HMI::GuiContext::getCurrent(), YACS::HMI::GuiContext::getInvoc(), YACS::HMI::GuiContext::getProc(), YACS::HMI::CommandAddODSPortFromCatalog::getSubjectODSPort(), and YASSERT.
|
virtual |
Definition at line 2114 of file guiObservers.cxx.
References YACS::HMI::SubjectNode::_node, YACS::HMI::Invocator::add(), YACS::HMI::SubjectNode::CommandAddOutputPortFromCatalog, DEBTRACE, YACS::HMI::Command::execute(), YACS::ENGINE::ComposedNode::getChildName(), YACS::HMI::GuiContext::getCurrent(), YACS::HMI::GuiContext::getInvoc(), YACS::HMI::GuiContext::getProc(), YACS::HMI::CommandAddOutputPortFromCatalog::getSubjectOutputPort(), and YASSERT.
Referenced by YACS::HMI::GuiEditor::CreateOutputPort().
|
virtual |
Clean process prior to delete is redefined in derived classes: a local clean treatment relative to the derived class, then a call to the parent class clean method.
Reimplemented from YACS::HMI::SubjectNode.
Reimplemented in YACS::HMI::SubjectStudyOutNode, YACS::HMI::SubjectStudyInNode, YACS::HMI::SubjectOutNode, YACS::HMI::SubjectPresetNode, YACS::HMI::SubjectDataNode, YACS::HMI::SubjectSplitterNode, YACS::HMI::SubjectXmlNode, YACS::HMI::SubjectSalomePythonNode, YACS::HMI::SubjectSalomeNode, YACS::HMI::SubjectCppNode, YACS::HMI::SubjectCORBANode, YACS::HMI::SubjectServiceNode, YACS::HMI::SubjectPyFuncNode, YACS::HMI::SubjectPythonNode, and YACS::HMI::SubjectInlineNode.
Definition at line 2072 of file guiObservers.cxx.
References YACS::HMI::Subject::_askRegisterUndo, YACS::HMI::SubjectNode::clean(), localclean(), and YACS::HMI::SubjectNode::registerUndoDestroy().
Referenced by YACS::HMI::SubjectInlineNode::clean(), YACS::HMI::SubjectServiceNode::clean(), YACS::HMI::SubjectSplitterNode::clean(), and YACS::HMI::SubjectDataNode::clean().
|
virtual |
Reimplemented from YACS::HMI::Subject.
Definition at line 2228 of file guiObservers.cxx.
References _elementaryNode, YACS::HMI::SubjectNode::addSubjectIDSPort(), YACS::HMI::SubjectNode::addSubjectInputPort(), YACS::HMI::SubjectNode::addSubjectODSPort(), YACS::HMI::SubjectNode::addSubjectOutputPort(), YACS::ENGINE::ElementaryNode::getLocalInputPorts(), YACS::ENGINE::ElementaryNode::getLocalOutputPorts(), YACS::ENGINE::ElementaryNode::getSetOfInputDataStreamPort(), and YACS::ENGINE::ElementaryNode::getSetOfOutputDataStreamPort().
void SubjectElementaryNode::localclean | ( | Command * | command = 0 | ) |
|
virtual |
Definition at line 2177 of file guiObservers.cxx.
References YACS::HMI::SubjectNode::_node, YACS::HMI::Invocator::add(), DEBTRACE, YACS::HMI::Command::execute(), YACS::ENGINE::ComposedNode::getChildName(), YACS::HMI::GuiContext::getCurrent(), YACS::HMI::GuiContext::getInvoc(), YACS::HMI::SubjectDataPort::getName(), YACS::HMI::GuiContext::getProc(), and YASSERT.
Referenced by YACS::HMI::TablePortsEdition::oncb_insert_activated(), and YACS::HMI::TablePortsEdition::upOrDown().
Reimplemented from YACS::HMI::SubjectNode.
Definition at line 2088 of file guiObservers.cxx.
References YACS::HMI::SubjectNode::update().
|
virtual |
Definition at line 2203 of file guiObservers.cxx.
References YACS::HMI::SubjectNode::_listSubjectIDSPort, YACS::HMI::SubjectNode::_listSubjectInputPort, YACS::HMI::SubjectNode::_listSubjectODSPort, YACS::HMI::SubjectNode::_listSubjectOutputPort, DEBTRACE, and YACS::HMI::SubjectDataPort::getName().
Referenced by YACS::HMI::SubjectInputPort::localclean(), and YACS::HMI::SubjectOutputPort::localclean().
|
virtual |
Reimplemented from YACS::HMI::SubjectNode.
Definition at line 2255 of file guiObservers.cxx.
References YACS::HMI::SubjectNode::restoreLinks().
|
virtual |
Reimplemented from YACS::HMI::SubjectNode.
Definition at line 2250 of file guiObservers.cxx.
References YACS::HMI::SubjectNode::saveLinks().
|
protected |
Definition at line 688 of file guiObservers.hxx.
Referenced by loadChildren().