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 _STUDYPORTS_HXX_
21 #define _STUDYPORTS_HXX_
23 #include "YACSRuntimeSALOMEExport.hxx"
24 #include "XMLPorts.hxx"
25 #include "SALOMEDS.hh"
32 class YACSRUNTIMESALOME_EXPORT OutputStudyPort: public OutputXmlPort
35 OutputStudyPort(const std::string& name, Node* node, TypeCode* type);
36 OutputStudyPort(const OutputStudyPort& other, Node *newHelder);
37 OutputPort *clone(Node *newHelder) const;
38 void setData(const std::string& data);
39 std::string getData();
40 virtual void putIOR(const std::string& ior);
41 virtual std::string dump();
42 virtual std::string getPyObj();
43 virtual std::string getAsString();
44 virtual std::string typeName() {return "YACS__ENGINE__OutputStudyPort";}
45 virtual void getDataFromStudy();
47 std::string _storeData;
50 class YACSRUNTIMESALOME_EXPORT InputStudyPort: public InputXmlPort
53 InputStudyPort(const std::string& name, Node* node, TypeCode* type);
54 InputStudyPort(const InputStudyPort& other, Node *newHelder);
55 InputPort *clone(Node *newHelder) const;
56 void setData(const std::string& data);
57 std::string getData();
58 virtual std::string getIOR();
59 virtual std::string splitXML(const std::string& s);
60 virtual std::string dump();
61 virtual std::string getPyObj();
62 virtual std::string getAsString();
63 virtual std::string typeName() {return "YACS__ENGINE__InputStudyPort";}
64 virtual void putDataInStudy(SALOMEDS::StudyBuilder_var aBuilder);
66 std::string _storeData;