-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDSChannel2ChannelConnection.h
59 lines (47 loc) · 2.52 KB
/
DSChannel2ChannelConnection.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
#ifndef _DSCHANNEL2CHANNELCONNECTION_H_
#define _DSCHANNEL2CHANNELCONNECTION_H_
#include "DSBasicTypes.h"
#include "DSObject.h"
#include "DSChannelRefComponent.h"
#include "DSChannelComponent.h"
/************************************************************************
* Classname: DSChannel2ChannelConnection
* Purpose: Speicherung der Verbindung zwischen einem Kanal und
* mehreren Signalrouten (Umsetzung des SDL-connects)
* Z100: Seite 47
************************************************************************/
class DSChannel2ChannelConnection : public DSObject
{
public:
DSChannel2ChannelConnection(DSObject* = NULL, // Vaterobjekt
DSChannelRefComponent * = NULL, // first list
DSChannelRefComponent * = NULL); // second list
virtual ~DSChannel2ChannelConnection(void);
DSObject * New(DSObject * = NULL) const; // virtueller Konstruktor
/***********************************************/
/* Die folgenden zwei Funktionen stellen fest, */
/* ob ein Kanal bzw. eine Signalroute in der */
/* Verbindung vorkommt: */
/***********************************************/
DSChannelRefComponent * GetFirstChannelComponent(void) const;
DSChannelRefComponent * GetSecondChannelComponent(void) const;
DSResult SetFirstChannelComponent(DSChannelRefComponent *);
DSResult SetSecondChannelComponent(DSChannelRefComponent *);
DSBoolean IsChannelConnectedInFirst(DSChannelRef) const;
DSBoolean IsChannelConnectedInSecond(DSChannelRef) const;
DSObject *Clone(DSObject * = NULL,
DSObject * = NULL) const;
// erzeugt eine identische
// Kopie dieses Objekts
/***********************************************************/
/* Die folgenden zwei Funktionen dienen zum systematischen */
/* Durchlaufen und Verarbeiten der Datenstruktur: */
/***********************************************************/
virtual DSResult Write(DSWriter *, DSCardinal = 0) const;
virtual DSResult Run(DSWriter*, DSType, DSCardinal = 0) const;
private:
DSChannelRefComponent * first_channel_component;
DSChannelRefComponent * second_channel_component;
};
typedef DSList<DSChannel2ChannelConnection> DSChannel2ChannelConnectionList;
#endif