1 // Copyright (C) 2006-2014 CEA/DEN, EDF R&D
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 __CALSTREAMPORT_HXX__
21 #define __CALSTREAMPORT_HXX__
23 #include "yacsconfig.h"
25 #include "DSC_Engines.hh"
28 #include "InputDataStreamPort.hxx"
29 #include "OutputDataStreamPort.hxx"
35 /*! \brief Class for Input Calcium DataStream Ports
40 class InputCalStreamPort : public InputDataStreamPort
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;
51 virtual void initPortProperties();
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;};
77 /*! \brief Class for Output Calcium DataStream Ports
82 class OutputCalStreamPort : public OutputDataStreamPort
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) throw(Exception);
97 std::string getNameOfTypeOfCurrentInstance() const;
98 OutputCalStreamPort * clone(Node *newHelder) const;
99 virtual int removeInPort(InPort *inPort, bool forward) throw(Exception);