1 // Copyright (C) 2006-2008 CEA/DEN, EDF R&D
3 // This library is free software; you can redistribute it and/or
4 // modify it under the terms of the GNU Lesser General Public
5 // License as published by the Free Software Foundation; either
6 // version 2.1 of the License.
8 // This library is distributed in the hope that it will be useful,
9 // but WITHOUT ANY WARRANTY; without even the implied warranty of
10 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 // Lesser General Public License for more details.
13 // You should have received a copy of the GNU Lesser General Public
14 // License along with this library; if not, write to the Free Software
15 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
19 #ifndef _PYTHONNODE_HXX_
20 #define _PYTHONNODE_HXX_
22 #include "InlineNode.hxx"
29 class PythonNode : public InlineNode
32 Node *simpleClone(ComposedNode *father, bool editionOnly) const;
34 PythonNode(const PythonNode& other, ComposedNode *father);
35 PythonNode(const std::string& name);
36 virtual ~PythonNode();
37 virtual void execute();
39 PythonNode* cloneNode(const std::string& name);
40 static const char KIND[];
41 static const char IMPL_NAME[];
42 virtual std::string typeName() {return "YACS__ENGINE__PythonNode";}
47 class PyFuncNode : public InlineFuncNode
50 Node *simpleClone(ComposedNode *father, bool editionOnly) const;
52 PyFuncNode(const PyFuncNode& other, ComposedNode *father);
53 PyFuncNode(const std::string& name);
54 virtual ~PyFuncNode();
55 virtual void execute();
57 PyFuncNode* cloneNode(const std::string& name);
58 virtual std::string typeName() {return "YACS__ENGINE__PyFuncNode";}