Salome HOME
PR: merge from BR_DATACONV_PR tag "mergeto_trunk_25oct06"
[modules/yacs.git] / src / runtime / XMLPorts.hxx
1
2 #ifndef _XMLPORTS_HXX_
3 #define _XMLPORTS_HXX_
4
5 #include "InputPort.hxx"
6 #include "OutputPort.hxx"
7
8 namespace YACS
9 {
10   namespace ENGINE
11   {
12     class InputXmlPort : public InputPort
13     {
14     public:
15       InputXmlPort(const std::string& name, Node* node, TypeCode * type);
16       virtual void put(const void *data) throw (ConversionException);
17       void put(const char *data) throw (ConversionException);
18       virtual const char * getXml() const;
19     protected:
20       std::string _data;
21     };
22     
23     class OutputXmlPort : public OutputPort
24     {
25     public:
26       OutputXmlPort(const std::string& name,  Node* node, TypeCode * type);
27       virtual void put(const void *data) throw (ConversionException);
28       void put(const char *data) throw (ConversionException);
29       virtual const char * get() const throw (ConversionException);
30     protected:
31       std::string _data;
32     };
33
34   }
35 }
36
37 #endif