Version: 8.3.0
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
InPropertyPort.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 __INPROPERTYPORT_HXX__
21
#define __INPROPERTYPORT_HXX__
22
23
#include <string>
24
#include "
InputPort.hxx
"
25
26
namespace
YACS
27
{
28
namespace
ENGINE
29
{
30
class
OutPort;
31
37
class
YACSLIBENGINE_EXPORT
InPropertyPort
:
public
InputPort
38
{
39
friend
class
Runtime
;
// for port creation
40
friend
class
OutPort
;
41
friend
class
Node
;
42
43
public
:
44
static
const
char
NAME[];
45
public
:
46
virtual
~
InPropertyPort
();
47
48
std::string getNameOfTypeOfCurrentInstance()
const
;
50
#ifdef NOCOVARIANT
51
virtual
InPort
*getPublicRepresentant() {
return
this
; }
52
#else
53
virtual
InPropertyPort
*
getPublicRepresentant
() {
return
this
; }
54
#endif
55
virtual
std::string
typeName
() {
return
"YACS__ENGINE__InPropertyPort"
;}
56
virtual
void
exNewPropertyValue(
const
std::string & name,
const
std::string & value);
57
58
virtual
void
exSaveInit();
59
virtual
void
exRestoreInit();
60
virtual
InPropertyPort
*clone(
Node
*newHelder)
const
;
61
virtual
void
*
get
()
const
;
62
virtual
void
put(
const
void
*data)
throw
(
ConversionException
);
63
virtual
void
put(
YACS::ENGINE::Any
*data);
64
65
protected
:
66
InPropertyPort
(
const
InPropertyPort
& other,
Node
*newHelder);
67
InPropertyPort
(
const
std::string& name,
Node
*node,
TypeCode
* type,
bool
canBeNull =
false
);
68
69
YACS::ENGINE::Any
*
_property_data
;
70
YACS::ENGINE::Any
*
_init_property_data
;
71
};
72
73
}
74
}
75
76
#endif
77
src
engine
InPropertyPort.hxx
Copyright © 2006-2017 CEA/DEN, EDF R&D