Version: 9.16.0
InPropertyPort.hxx
Go to the documentation of this file.
1// Copyright (C) 2006-2026 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 __INPROPERTYPORT_HXX__
21#define __INPROPERTYPORT_HXX__
22
23#include <string>
24#include "InputPort.hxx"
25
26namespace YACS
27{
28 namespace ENGINE
29 {
30 class OutPort;
31
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);
63 virtual void put(YACS::ENGINE::Any *data);
64 void releaseData() override;
65 protected:
66 InPropertyPort(const InPropertyPort& other, Node *newHelder);
67 InPropertyPort(const std::string& name, Node *node, TypeCode* type, bool canBeNull = false);
68
71 };
72
73 }
74}
75
76#endif
77
#define YACSLIBENGINE_EXPORT
: Interface for management of storage of data formated dynamically in its TypeCode....
Definition: Any.hxx:79
class for Input Property Ports
YACS::ENGINE::Any * _init_property_data
virtual InPropertyPort * getPublicRepresentant()
returns the final physical port behind 'this'.
YACS::ENGINE::Any * _property_data
virtual std::string typeName()
Base class for Input Ports.
Definition: InputPort.hxx:44
Base class for all nodes.
Definition: Node.hxx:70
Base class for all type objects.
Definition: TypeCode.hxx:68