VR-Forces 5.0.3 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
entListIOPort.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2003 MaK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 /*******************************************************************************
6 ** $RCSfile: entListIOPort.h,v $ $Revision: 1.6 $ $State: Exp $
7 *******************************************************************************/
8 
11 
14 
15 #ifndef DtEntityListInputPort_H_
16 #define DtEntityListInputPort_H_
17 
19 #include "vrfobjcore/outputPort.h"
20 #include "vrfobjcore/portData.h"
22 
30 {
31 public:
32  DtEntityListInputPort(const DtString& portName);
33  virtual ~DtEntityListInputPort();
34 
36  virtual bool acceptType(const DtString& type) const;
37 
39  virtual const DtEntityTargetList* value() const;
40 };
41 
46 {
47 public:
48  DtEntityListOutputPort(const DtString& portName);
49  virtual ~DtEntityListOutputPort();
50 
52  virtual const DtString type() const;
53 
55  virtual void createPortData();
56 
59  virtual void emptyList();
60 
62  virtual void addEntity(const DtEntityIdentifier & id);
63 
66  virtual void addEntity(const DtEntityTargetInformation& info);
67 
70  virtual void removeEntity(const DtEntityIdentifier & id);
71 
73  bool hasEntity(const DtEntityIdentifier & id) const;
74 
75  virtual const DtEntityTargetList* value() const;
76 
77 protected:
78  DtEntityTargetList myEntityList;
79 };
80 
85 {
86 public:
90  virtual ~DtEntityListPortData();
95 
97  virtual const DtString type() const;
98 
100  virtual void setValue(DtEntityTargetList* v);
101 
103  virtual DtEntityTargetList* value() const;
104 
106  virtual DtPortData* clone() const;
107 
108 protected:
109  DtEntityTargetList* myValue;
110 };
111 
112 #endif
DtEntityTargetList myEntityList
Definition: entListIOPort.h:78
virtual const DtString type() const =0
Override for each derrived class to return a unique type string. This type string is the type of the ...
Definition: entityTargetInformation.h:27
Contains the DtOutputPort class declaration.
Contains the class declaration for DtSingleConnectionInputPort.
Definition: singleConnectionInputPort.h:36
This is an abstract base class for all data elements that are passed through ports. Derived types will be such things as DtAnalogPortData which manage a double, or more complex data types such as a target list. Derived types must provide a type() method with a unique type string and a clone() method for copying the data.
Definition: portData.h:25
virtual void createPortData()=0
Override for each derived class to create and set the internal DtPortData representation.
virtual bool acceptType(const DtString &type) const =0
Returns true if this port should accept the recipt of the specified DtPortData type. Override this function to return true for the types your port will accept.
#define DT_DLL_vrfobjcore
This file is used to determine how to build.
Definition: vrfobjcoreDefines.h:24
virtual const DtString type() const =0
Returns a string type value for this class. Provide a unique string for each DtPortData class...
Contains class declarations for DtEntityListInputPort, DtEntityListOutputPort, and DtEntityListPortDa...
Definition: entListIOPort.h:29
Instances of DtEntityListOutputPort are output ports through which data producers can send a list of ...
Definition: entListIOPort.h:45
DtEntityTargetList * myValue
Definition: entListIOPort.h:109
DtOutputPorts are data ports owned by data producers. They are connected to DtPortConnections and sen...
Definition: outputPort.h:42
Instances of DtEntityListPortData are concrete data elements containing a list of object IDs of simul...
Definition: entListIOPort.h:84
virtual DtPortData * clone() const =0
Provides a copy of this port data.
DtPortData & operator=(const DtPortData &orig)
Assignment operator.

Document ID: Generated on Thu Jun 1 17:58:13 EDT 2023 from SVN revision 255404
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)