]> SALOME platform Git repositories - modules/yacs.git/blobdiff - src/engine/DataFlowPort.hxx
Salome HOME
PR: first version from Antony GEAY, with directory restructuration
[modules/yacs.git] / src / engine / DataFlowPort.hxx
diff --git a/src/engine/DataFlowPort.hxx b/src/engine/DataFlowPort.hxx
new file mode 100644 (file)
index 0000000..9c04f05
--- /dev/null
@@ -0,0 +1,31 @@
+#ifndef __DATAFLOWPORT_HXX__
+#define __DATAFLOWPORT_HXX__
+
+#include "Port.hxx"
+#include "Data.hxx"
+
+#include <string>
+
+namespace YACS
+{
+  namespace ENGINE
+  {
+    class DataFlowPort : public virtual Port
+    {
+    protected:
+      Data _data;
+      std::string _name;
+    public:
+      static const char NAME[];
+    protected:
+      DataFlowPort(const std::string& name, Node *node, DynType type);
+    public:
+      std::string getNameOfTypeOfCurrentInstance() const;
+      DynType edGetType() const;
+      virtual void edSetType(DynType type);
+      std::string getName() const { return _name; }
+    };
+  }
+}
+
+#endif