Version: 8.3.0
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
StudyPorts.hxx
Go to the documentation of this file.
1
// Copyright (C) 2006-2016 CEA/DEN, EDF R&D
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 _STUDYPORTS_HXX_
21
#define _STUDYPORTS_HXX_
22
23
#include "
YACSRuntimeSALOMEExport.hxx
"
24
#include "
XMLPorts.hxx
"
25
#include "SALOMEDS.hh"
26
27
namespace
YACS
28
{
29
namespace
ENGINE
30
{
31
32
class
YACSRUNTIMESALOME_EXPORT
OutputStudyPort
:
public
OutputXmlPort
33
{
34
public
:
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(SALOMEDS::Study_var myStudy);
46
protected
:
47
std::string
_storeData
;
48
};
49
50
class
YACSRUNTIMESALOME_EXPORT
InputStudyPort
:
public
InputXmlPort
51
{
52
public
:
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::Study_var myStudy,SALOMEDS::StudyBuilder_var aBuilder);
65
protected
:
66
std::string
_storeData
;
67
};
68
69
}
70
}
71
72
73
#endif
src
runtime
StudyPorts.hxx
Copyright © 2006-2017 CEA/DEN, EDF R&D