Vuo  2.3.2
VuoCable.hh
Go to the documentation of this file.
1 
10 #pragma once
11 
12 #include "VuoBase.hh"
13 
14 class VuoCompilerCable;
15 class VuoRendererCable;
16 class VuoNode;
17 class VuoPort;
18 
22 class VuoCable : public VuoBase<VuoCompilerCable,VuoRendererCable>
23 {
24 public:
25  VuoCable(VuoNode * fromNode, VuoPort * fromPort, VuoNode * toNode, VuoPort * toPort, bool addCableToPorts = true);
26 
27  VuoNode * getFromNode(void);
28  VuoPort * getFromPort(void);
29  VuoNode * getToNode(void);
30  VuoPort * getToPort(void);
31  void setFrom(VuoNode *fromNode, VuoPort *fromPort);
32  void setTo(VuoNode *toNode, VuoPort *toPort);
33  bool isPublished(void);
34  bool isPublishedInputCable(void);
35  bool isPublishedOutputCable(void);
36 
37 private:
38  VuoNode * fromNode;
39  VuoPort * fromPort;
40  VuoNode * toNode;
41  VuoPort * toPort;
42 };