COVISE Core
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
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 
16 namespace covise
17 {
18 
19 class coDistributedObject;
20 class coInputPort;
21 
27 {
28 
29 private:
31  coOutputPort(const coOutputPort &);
32 
34  coOutputPort &operator=(const coOutputPort &);
35 
37  coOutputPort();
38 
41 
43  char *d_objName;
44 
46  char *d_depPort;
47 
48 public:
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
GLsizei GLsizei GLuint * obj
Definition: khronos-glext.h:6733
char * d_depPort
Name of the port this one is depending on.
Definition: coOutputPort.h:46
Definition: coOutputPort.h:26
GLuint const GLchar * name
Definition: khronos-glext.h:6722
GLdouble n
Definition: khronos-glext.h:8447
Data input Port.
Definition: coInputPort.h:27
Definition: coObjID.h:230
#define APIEXPORT
Definition: coExport.h:251
coDistributedObject * d_outObj
Object at the output port.
Definition: coOutputPort.h:40
Definition: coPort.h:24
Definition: coDistributedObject.h:295
Kind
enum Kind: SWITCH, PARAM, INPORT, OUTPORT
Definition: coUifElem.h:25
char * d_objName
Name for the output port object.
Definition: coOutputPort.h:43