Salome HOME
merge from branch DEV tag mergeto_trunk_04apr08
[modules/yacs.git] / src / engine / OutPort.hxx
index 177ca3c03e5715e76c0db8a112566236107a109e..0dec8538ea48ee752269e70bf7ba89d633e01f0d 100644 (file)
@@ -12,12 +12,14 @@ namespace YACS
   namespace ENGINE
   {
     class InPort;
+    class LinkInfo;
     class OutPort : public virtual DataPort
     {
     protected:
       OutPort(const OutPort& other, Node *newHelder);
       OutPort(const std::string& name, Node *node, TypeCode* type);
     public:
+      virtual void checkConsistency(LinkInfo& info) const;
       virtual int edGetNumberOfOutLinks() const;
       virtual std::set<InPort *> edSetInPort() const = 0;
       virtual bool isAlreadyLinkedWith(InPort *with) const = 0;
@@ -26,6 +28,7 @@ namespace YACS
       virtual int removeInPort(InPort *inPort, bool forward) throw(Exception) = 0;
       virtual ~OutPort();
       std::vector<DataPort *> calculateHistoryOfLinkWith(InPort *end);
+      virtual std::string typeName() {return "YACS__ENGINE__OutPort";}
     };
   }
 }