1 #ifndef __CALSTREAMPORT_HXX__
2 #define __CALSTREAMPORT_HXX__
4 #include "yacsconfig.h"
6 #include "DSC_Engines.hh"
9 #include "InputDataStreamPort.hxx"
10 #include "OutputDataStreamPort.hxx"
16 /*! \brief Class for Input Calcium DataStream Ports
21 class InputCalStreamPort : public InputDataStreamPort
24 static const char NAME[];
25 InputCalStreamPort(const std::string& name, Node *node, TypeCode* type);
26 InputCalStreamPort(const InputCalStreamPort& other, Node *newHelder);
27 virtual ~InputCalStreamPort();
28 void setDepend(const std::string& depend);
29 std::string getDepend(){return _depend;};
30 void setLevel(const std::string& schema);
31 void setSchema(const std::string& schema);
32 std::string getSchema(){return _schema;};
33 int getLevel(){return _level;};
34 void setProperty(const std::string& name, const std::string& value);
35 std::string getNameOfTypeOfCurrentInstance() const;
36 InputCalStreamPort * clone(Node *newHelder) const;
38 virtual void initPortProperties();
47 /*! \brief Class for Output Calcium DataStream Ports
52 class OutputCalStreamPort : public OutputDataStreamPort
55 static const char NAME[];
56 OutputCalStreamPort(const std::string& name, Node *node, TypeCode* type);
57 OutputCalStreamPort(const OutputCalStreamPort& other, Node *newHelder);
58 virtual ~OutputCalStreamPort();
59 void setDepend(const std::string& depend);
60 void setLevel(const std::string& schema);
61 std::string getDepend(){return _depend;};
62 int getLevel(){return _level;};
63 void setSchema(const std::string& schema);
64 std::string getSchema(){return _schema;};
65 void setProperty(const std::string& name, const std::string& value);
66 virtual bool addInPort(InPort *inPort) throw(Exception);
67 std::string getNameOfTypeOfCurrentInstance() const;
68 OutputCalStreamPort * clone(Node *newHelder) const;