Version: 8.3.0
YACS::HMI::SubjectPyFuncNode Class Reference

#include <guiObservers.hxx>

Inheritance diagram for YACS::HMI::SubjectPyFuncNode:
Collaboration diagram for YACS::HMI::SubjectPyFuncNode:

Public Member Functions

 SubjectPyFuncNode (YACS::ENGINE::PyFuncNode *pyFuncNode, Subject *parent)
 
virtual ~SubjectPyFuncNode ()
 
virtual bool setFunctionName (std::string funcName)
 
virtual void clean (Command *command=0)
 
void localclean (Command *command=0)
 
virtual TypeOfElem getType ()
 
- Public Member Functions inherited from YACS::HMI::SubjectInlineNode
 SubjectInlineNode (YACS::ENGINE::InlineNode *inlineNode, Subject *parent)
 
virtual ~SubjectInlineNode ()
 
virtual bool setScript (std::string script)
 
virtual std::string getScript ()
 
void localclean (Command *command=0)
 
virtual bool setContainer (SubjectContainerBase *scont)
 
virtual bool setExecutionMode (const std::string &mode)
 
- Public Member Functions inherited from YACS::HMI::SubjectElementaryNode
 SubjectElementaryNode (YACS::ENGINE::ElementaryNode *elementaryNode, Subject *parent)
 
virtual ~SubjectElementaryNode ()
 
virtual void recursiveUpdate (GuiEvent event, int type, Subject *son)
 
virtual SubjectDataPortaddInputPort (YACS::ENGINE::Catalog *catalog, std::string type, std::string name)
 
virtual SubjectDataPortaddOutputPort (YACS::ENGINE::Catalog *catalog, std::string type, std::string name)
 
virtual SubjectDataPortaddIDSPort (YACS::ENGINE::Catalog *catalog, std::string type, std::string name)
 
virtual SubjectDataPortaddODSPort (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 ()
 
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::NodegetNode ()
 
void registerUndoDestroy ()
 
SubjectControlLinkaddSubjectControlLink (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 SubjectgetParent ()
 
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 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::PyFuncNode_pyFuncNode
 
- Protected Attributes inherited from YACS::HMI::SubjectInlineNode
YACS::ENGINE::InlineNode_inlineNode
 
- Protected Attributes inherited from YACS::HMI::SubjectElementaryNode
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 SubjectInputPortaddSubjectInputPort (YACS::ENGINE::InputPort *port, std::string name="")
 
virtual SubjectOutputPortaddSubjectOutputPort (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)
 

Detailed Description

Definition at line 718 of file guiObservers.hxx.

Constructor & Destructor Documentation

SubjectPyFuncNode::SubjectPyFuncNode ( YACS::ENGINE::PyFuncNode pyFuncNode,
Subject parent 
)

Definition at line 2539 of file guiObservers.cxx.

2540  : SubjectInlineNode(pyFuncNode, parent), _pyFuncNode(pyFuncNode)
2541 {
2542 }
SubjectPyFuncNode::~SubjectPyFuncNode ( )
virtual

Definition at line 2544 of file guiObservers.cxx.

References DEBTRACE, and YACS::HMI::SubjectNode::getName().

2545 {
2546  DEBTRACE("SubjectPyFuncNode::~SubjectPyFuncNode " << getName());
2547 }

Member Function Documentation

void SubjectPyFuncNode::clean ( Command command = 0)
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::SubjectInlineNode.

Definition at line 2563 of file guiObservers.cxx.

References YACS::HMI::Subject::_askRegisterUndo, YACS::HMI::SubjectInlineNode::clean(), localclean(), and YACS::HMI::SubjectNode::registerUndoDestroy().

2564 {
2565  if (_askRegisterUndo)
2566  {
2567  _askRegisterUndo = false;
2569  }
2570  localclean(command);
2571  SubjectInlineNode::clean(command);
2572 }
virtual TypeOfElem YACS::HMI::SubjectPyFuncNode::getType ( )
inlinevirtual

Reimplemented from YACS::HMI::Subject.

Definition at line 726 of file guiObservers.hxx.

References YACS::HMI::PYFUNCNODE.

726 {return PYFUNCNODE;}
void SubjectPyFuncNode::localclean ( Command command = 0)

Definition at line 2574 of file guiObservers.cxx.

References DEBTRACE.

Referenced by clean().

2575 {
2576  DEBTRACE("SubjectPyFuncNode::localClean ");
2577 }
bool SubjectPyFuncNode::setFunctionName ( std::string  funcName)
virtual

Definition at line 2549 of file guiObservers.cxx.

References YACS::HMI::SubjectNode::_node, YACS::HMI::Invocator::add(), YACS::HMI::Command::execute(), YACS::ENGINE::ComposedNode::getChildName(), YACS::HMI::GuiContext::getCurrent(), YACS::HMI::GuiContext::getInvoc(), and YACS::HMI::GuiContext::getProc().

Referenced by YACS::HMI::EditionPyFunc::onApply().

2550 {
2551  Proc *proc = GuiContext::getCurrent()->getProc();
2553  new CommandSetFuncNodeFunctionName(proc->getChildName(_node), funcName);
2554  if (command->execute())
2555  {
2556  GuiContext::getCurrent()->getInvoc()->add(command);
2557  return true;
2558  }
2559  else delete command;
2560  return false;
2561 }

Member Data Documentation

YACS::ENGINE::PyFuncNode* YACS::HMI::SubjectPyFuncNode::_pyFuncNode
protected

Definition at line 728 of file guiObservers.hxx.


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