COVISE Core
coOutputPort.h
Go to the documentation of this file.
1/* This file is part of COVISE.
2
3 You can use it under the terms of the GNU Lesser General Public License
4 version 2.1 or later, see lgpl-2.1.txt.
5
6 * License: LGPL 2+ */
7
8#ifndef _CO_OUT_PORT_H_
9#define _CO_OUT_PORT_H_
10
11// 20.09.99
12#include <covise/covise.h>
13#include <util/coObjID.h>
14#include "coPort.h"
15
16namespace covise
17{
18
19class coDistributedObject;
20class coInputPort;
21
27{
28
29private:
32
35
38
41
43 char *d_objName;
44
46 char *d_depPort;
47
48public:
49 // create an input port
50 coOutputPort(const char *name, const char *typelist, const char *desc);
51
52 // set port required or not
53 void setRequired(int isRequired);
54
55 // set port dependent on an input port
56 void setDependencyPort(coInputPort *port);
57
59 virtual void initialize();
60
62 virtual Kind kind() const;
63
65 virtual ~coOutputPort();
66
68 virtual int preCompute();
69
71 virtual int postCompute();
72
74 void setCurrentObject(coDistributedObject *obj);
75
77 coDistributedObject *getCurrentObject();
78
80 const char *getObjName();
81
83 coObjInfo getNewObjectInfo();
84
86 void setObjName(const char *n);
87
89 void print(ostream &) const;
90};
91}
92#endif
#define APIEXPORT
Definition: coExport.h:275
GLdouble n
Definition: khronos-glext.h:8447
GLsizei GLsizei GLuint * obj
Definition: khronos-glext.h:6733
GLuint const GLchar * name
Definition: khronos-glext.h:6722
list of all chemical elements
Definition: coConfig.h:27
std::enable_if< I==sizeof...(Tp), void >::type print(Stream &s, const std::tuple< Tp... > &t)
Definition: tokenbuffer_util.h:68
Definition: coObjID.h:231
Definition: coDistributedObject.h:296
Data input Port.
Definition: coInputPort.h:28
Definition: coOutputPort.h:27
char * d_objName
Name for the output port object.
Definition: coOutputPort.h:43
coOutputPort(const coOutputPort &)
Copy-Constructor: NOT IMPLEMENTED.
coOutputPort()
Default constructor: NOT IMPLEMENTED.
void setRequired(int isRequired)
char * d_depPort
Name of the port this one is depending on.
Definition: coOutputPort.h:46
coOutputPort & operator=(const coOutputPort &)
Assignment operator: NOT IMPLEMENTED.
coDistributedObject * d_outObj
Object at the output port.
Definition: coOutputPort.h:40
Definition: coPort.h:25
Kind
enum Kind: SWITCH, PARAM, INPORT, OUTPORT
Definition: coUifElem.h:26