Version: 9.15.0
XMLPorts.hxx
Go to the documentation of this file.
1 // Copyright (C) 2006-2025 CEA, EDF
2 //
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.
7 //
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.
12 //
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
16 //
17 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
18 //
19 
20 #ifndef _XMLPORTS_HXX_
21 #define _XMLPORTS_HXX_
22 
24 #include "InputPort.hxx"
25 #include "OutputPort.hxx"
26 
27 namespace YACS
28 {
29  namespace ENGINE
30  {
38  {
39  public:
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;
49  void *get() const ;
50  bool isEmpty();
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);
56  protected:
57  std::string _data;
58  std::string _initData;
59  };
60 
68  {
69  public:
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);
79  protected:
80  std::string _data;
81  };
82 
83  }
84 }
85 
86 #endif
#define YACSRUNTIMESALOME_EXPORT
Base class for Input Ports.
Definition: InputPort.hxx:44
Class for XML Input Ports.
Definition: XMLPorts.hxx:38
Base class for all nodes.
Definition: Node.hxx:70
Class for XML Output Ports.
Definition: XMLPorts.hxx:68
Base class for all type objects.
Definition: TypeCode.hxx:68