COVISE Core
coUifPort.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_UIF_PORT_H_
9#define _CO_UIF_PORT_H_
10
12// (C)2001 VirCinity
13//
14// Base class for input and (not yet output) ports of a module
15//
16//
17//
18// Sven Kufer
19// VirCinity IT-Consulting GmbH
20// Nobelstrasse 15
21// 70569 Stuttgart
22// Date: 13.08.2001
23//
25
26#include <covise/covise.h>
27#include "coPort.h"
28
29namespace covise
30{
31
33{
34private:
35 // whether port is connected
37
38public:
39 // default (de)constructors
40
42 {
43 }
44
45private:
47
48public:
49 coUifPort(const char *name, const char *desc)
50 : coPort(name, desc)
51 {
52 d_connected = 0;
53 }
54
56 {
57 return d_connected;
58 }
59
60 // called by paramCB
61 virtual int paramChange()
62 {
63 if (d_connected == 0)
64 d_connected = 1;
65 else
66 d_connected = 0;
67 return 1;
68 }
69};
70}
71#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
Definition: coPort.h:25
Definition: coUifPort.h:33
int isConnected()
Definition: coUifPort.h:55
virtual int paramChange()
handle parameter changes: called by paramCB
Definition: coUifPort.h:61
coUifPort(const coUifPort &)
int d_connected
Definition: coUifPort.h:36
coUifPort(const char *name, const char *desc)
Definition: coUifPort.h:49
~coUifPort()
Definition: coUifPort.h:41