COVISE Core
coInputPort.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_IN_PORT_H_
9#define _CO_IN_PORT_H_
10
11// 20.09.99
12#include <covise/covise.h>
13#include "coUifPort.h"
14
20namespace covise
21{
22
23class coDistributedObject;
24class coOutputPort;
25
28{
29
30private:
33
36
39
42
45
47
48 // whether the port is required
50
51public:
52 // create an input port
53 coInputPort(const char *name, const char *typelist, const char *desc);
54
55 // set port required or not
56 void setRequired(int isRequired);
57
59 virtual void initialize();
60
62 virtual Kind kind() const;
63
65 virtual ~coInputPort();
66
68 virtual int preCompute();
69
71 virtual int postCompute();
72
74 const coDistributedObject *getCurrentObject() const;
75
77 void setCurrentObject(const coDistributedObject *o);
78
80 void print(ostream &) const;
81
84 {
85 return objectChanged;
86 };
87};
88}
89#endif
#define APIEXPORT
Definition: coExport.h:275
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: coDistributedObject.h:296
Data input Port.
Definition: coInputPort.h:28
bool objectChanged
Definition: coInputPort.h:46
const coDistributedObject * d_inObj
Object at the input port.
Definition: coInputPort.h:41
coInputPort(const coInputPort &)
Copy-Constructor: NOT IMPLEMENTED.
char * oldObjectName
to check whether the Dataobject changed since last execute
Definition: coInputPort.h:44
coInputPort & operator=(const coInputPort &)
Assignment operator: NOT IMPLEMENTED.
coInputPort()
Default constructor: NOT IMPLEMENTED.
int d_required
Definition: coInputPort.h:49
bool inputDataChanged()
return true whether the input data changed since last execute.
Definition: coInputPort.h:83
Kind
enum Kind: SWITCH, PARAM, INPORT, OUTPORT
Definition: coUifElem.h:26
Definition: coUifPort.h:33