1 // Copyright (C) 2006-2024 CEA, EDF
3 // This library is free software; you can redistribute it and/or
4 // modify it under the terms of the GNU Lesser General Public
5 // License as published by the Free Software Foundation; either
6 // version 2.1 of the License, or (at your option) any later version.
8 // This library is distributed in the hope that it will be useful,
9 // but WITHOUT ANY WARRANTY; without even the implied warranty of
10 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 // Lesser General Public License for more details.
13 // You should have received a copy of the GNU Lesser General Public
14 // License along with this library; if not, write to the Free Software
15 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
20 #ifndef _XMLPORTS_HXX_
21 #define _XMLPORTS_HXX_
23 #include "YACSRuntimeSALOMEExport.hxx"
24 #include "InputPort.hxx"
25 #include "OutputPort.hxx"
31 /*! \brief Class for XML Input Ports
37 class YACSRUNTIMESALOME_EXPORT InputXmlPort : public InputPort
40 InputXmlPort(const std::string& name, Node* node, TypeCode * type);
41 InputXmlPort(const InputXmlPort& other, Node *newHelder);
42 bool edIsManuallyInitialized() const;
43 void edRemoveManInit();
44 virtual void put(const void *data);
45 void put(const char *data);
46 void releaseData() override;
47 InputPort *clone(Node *newHelder) const;
48 virtual const char * getXml() const;
51 virtual void exSaveInit();
52 virtual void exRestoreInit();
53 virtual std::string dump();
54 virtual std::string valToStr();
55 virtual void valFromStr(std::string valstr);
58 std::string _initData;
61 /*! \brief Class for XML Output Ports
67 class YACSRUNTIMESALOME_EXPORT OutputXmlPort : public OutputPort
70 OutputXmlPort(const std::string& name, Node* node, TypeCode * type);
71 OutputXmlPort(const OutputXmlPort& other, Node *newHelder);
72 virtual void put(const void *data);
73 void put(const char *data);
74 virtual const char * get() const;
75 OutputPort *clone(Node *newHelder) const;
76 virtual std::string dump();
77 virtual std::string valToStr();
78 virtual void valFromStr(std::string valstr);