]> SALOME platform Git repositories - modules/yacs.git/blob - src/engine/DataNode.hxx
Salome HOME
c389e362e4230aa47185d53def9fd3c9ee9ea1ce
[modules/yacs.git] / src / engine / DataNode.hxx
1 #ifndef __DATANODE_HXX__
2 #define __DATANODE_HXX__
3
4 #include "ElementaryNode.hxx"
5 #include <string>
6
7 namespace YACS
8 {
9   namespace ENGINE
10   {
11 /*! \brief Class for data parameters specification
12  *
13  * \ingroup Nodes
14  *
15  */
16     class DataNode : public ElementaryNode 
17     {
18     protected:
19       DataNode(const DataNode& other, ComposedNode *father)
20         :ElementaryNode(other,father){ }
21       DataNode(const std::string& name):ElementaryNode(name) { }
22     public:
23       virtual void setData(InputPort* port ,std::string& data);
24       virtual void setData(OutputPort* port ,std::string& data);
25       virtual void setRef(std::string& ref);
26       virtual std::string getRef();
27       virtual ~DataNode();
28       virtual std::string typeName() {return "YACS__ENGINE__DataNode";}
29     protected:
30       std::string _ref;
31     };
32   }
33 }
34
35 #endif