]> SALOME platform Git repositories - modules/yacs.git/blobdiff - src/runtime/XMLPorts.hxx
Salome HOME
PR: merge from BR_DATACONV_PR tag "mergeto_trunk_25oct06"
[modules/yacs.git] / src / runtime / XMLPorts.hxx
diff --git a/src/runtime/XMLPorts.hxx b/src/runtime/XMLPorts.hxx
new file mode 100644 (file)
index 0000000..1a16cb7
--- /dev/null
@@ -0,0 +1,37 @@
+
+#ifndef _XMLPORTS_HXX_
+#define _XMLPORTS_HXX_
+
+#include "InputPort.hxx"
+#include "OutputPort.hxx"
+
+namespace YACS
+{
+  namespace ENGINE
+  {
+    class InputXmlPort : public InputPort
+    {
+    public:
+      InputXmlPort(const std::string& name, Node* node, TypeCode * type);
+      virtual void put(const void *data) throw (ConversionException);
+      void put(const char *data) throw (ConversionException);
+      virtual const char * getXml() const;
+    protected:
+      std::string _data;
+    };
+    
+    class OutputXmlPort : public OutputPort
+    {
+    public:
+      OutputXmlPort(const std::string& name,  Node* node, TypeCode * type);
+      virtual void put(const void *data) throw (ConversionException);
+      void put(const char *data) throw (ConversionException);
+      virtual const char * get() const throw (ConversionException);
+    protected:
+      std::string _data;
+    };
+
+  }
+}
+
+#endif