Version: 9.16.0
CalStreamPort.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 __CALSTREAMPORT_HXX__
21#define __CALSTREAMPORT_HXX__
22
23#include "yacsconfig.h"
24#ifdef DSC_PORTS
25#include "DSC_Engines.hh"
26#endif
27
30
31namespace YACS
32{
33 namespace ENGINE
34 {
41 {
42 public:
43 static const char NAME[];
44 InputCalStreamPort(const std::string& name, Node *node, TypeCode* type);
45 InputCalStreamPort(const InputCalStreamPort& other, Node *newHelder);
46 virtual ~InputCalStreamPort();
47 void setProperty(const std::string& name, const std::string& value);
48 std::string getNameOfTypeOfCurrentInstance() const;
49 InputCalStreamPort * clone(Node *newHelder) const;
50#ifdef DSC_PORTS
51 virtual void initPortProperties();
52#endif
53 void setSchema(const std::string& value);
54 std::string getSchema(){return _schema;};
55 void setLevel(const std::string& value);
56 int getLevel(){return _level;};
57 void setDepend(const std::string& value);
58 std::string getDepend(){return _depend;};
59 void setDelta(const std::string& value);
60 double getDelta(){return _delta;};
61 void setAlpha(const std::string& value);
62 double getAlpha(){return _alpha;};
63 void setInterp(const std::string& value);
64 std::string getInterp(){return _interp;};
65 void setExtrap(const std::string& value);
66 std::string getExtrap(){return _extrap;};
67 protected:
68 std::string _depend;
69 std::string _schema;
70 std::string _interp;
71 std::string _extrap;
72 int _level;
73 double _delta;
74 double _alpha;
75 };
76
83 {
84 public:
85 static const char NAME[];
86 OutputCalStreamPort(const std::string& name, Node *node, TypeCode* type);
87 OutputCalStreamPort(const OutputCalStreamPort& other, Node *newHelder);
88 virtual ~OutputCalStreamPort();
89 void setDepend(const std::string& depend);
90 void setLevel(const std::string& schema);
91 std::string getDepend(){return _depend;};
92 int getLevel(){return _level;};
93 void setSchema(const std::string& schema);
94 std::string getSchema(){return _schema;};
95 void setProperty(const std::string& name, const std::string& value);
96 virtual bool addInPort(InPort *inPort) ;
97 std::string getNameOfTypeOfCurrentInstance() const;
98 OutputCalStreamPort * clone(Node *newHelder) const;
99 virtual int removeInPort(InPort *inPort, bool forward) ;
100 protected:
101 std::string _depend;
102 std::string _schema;
104 double _delta;
105 };
106 }
107}
108
109#endif
virtual void initPortProperties()
Initialize port properties at the start of calculation phase.
Class for Input Calcium DataStream Ports.
void setSchema(const std::string &value)
void setProperty(const std::string &name, const std::string &value)
Set a new value for a property of the port.
void setLevel(const std::string &value)
void setDepend(const std::string &value)
InputCalStreamPort(const std::string &name, Node *node, TypeCode *type)
void setAlpha(const std::string &value)
void setExtrap(const std::string &value)
void setDelta(const std::string &value)
std::string getNameOfTypeOfCurrentInstance() const
InputCalStreamPort * clone(Node *newHelder) const
void setInterp(const std::string &value)
Base class for all nodes.
Definition: Node.hxx:70
Class for Output Calcium DataStream Ports.
void setSchema(const std::string &schema)
virtual int removeInPort(InPort *inPort, bool forward)
std::string getNameOfTypeOfCurrentInstance() const
void setProperty(const std::string &name, const std::string &value)
Set a new value for a property of the port.
void setDepend(const std::string &depend)
virtual bool addInPort(InPort *inPort)
OutputCalStreamPort(const std::string &name, Node *node, TypeCode *type)
void setLevel(const std::string &schema)
OutputCalStreamPort * clone(Node *newHelder) const
Base class for all type objects.
Definition: TypeCode.hxx:68