VR-Link API Documentation for HLA 4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
attachedPartCollection.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 1992-2025 MAK Technologies, Inc
3 ** All rights reserved.
4 *********************************************************************/
5 
10 
11 #ifndef attachedPartCollection_H_
12 #define attachedPartCollection_H_
13 
14 #include <vlutil/vlMachineTypes.h>
15 #include <map>
16 #include <ostream>
17 
18 class DtAttachedPart;
19 
25  {
26 public:
27  typedef std::map<int, DtAttachedPart*> PartMap;
28  typedef PartMap::const_iterator const_iterator;
29 
30 
33 
36 
38  DtAttachedPartCollection& operator=(const DtAttachedPartCollection& orig);
39 
41  virtual ~DtAttachedPartCollection();
42 
44  bool operator==(const DtAttachedPartCollection& other) const;
49  bool operator!=(const DtAttachedPartCollection& other) const;
51 
54  virtual DtAttachedPart& getPart(int station);
55 
57  virtual DtAttachedPart* findPart(int station);
64  virtual const DtAttachedPart* findPart(int station) const;
66 
69  virtual void removeAllParts();
70 
75  virtual void removePart(int station);
76 
78  virtual unsigned int partCount() const;
79 
88  virtual DtAttachedPart* createPart(DtAttachedPart* copy=0) const;
89 
91  const_iterator begin() const;
92 
94  const_iterator end() const;
95 
97  void printDataToStream(std::ostream& stream) const;
98 
99 protected:
101 
102 };
103 
104 
105 #endif
106 
const bool operator==(const DtU128 &lhs, const DtU128 &rhs)
A DtAttachedPartCollection is a collection of attached parts of an entity.
Definition: attachedPartCollection.h:24
std::map< int, DtAttachedPart * > PartMap
Definition: attachedPartCollection.h:27
PartMap myPartMap
Definition: attachedPartCollection.h:100
A representation of a single attached part, which contains an entity type.
Definition: attachedPart.h:22
#define DT_DLL_VLPROTIND
Definition: vlMachineTypes.h:110
const bool operator!=(const DtU128 &lhs, const DtU128 &rhs)
PartMap::const_iterator const_iterator
Definition: attachedPartCollection.h:28
This file contains typedefs for machine dependant types.

Document ID: Generated on Thu Oct 16 00:12:25 EDT 2025 from SVN revision 280738
Copyright © 1992-2025 MAK Technologies. All Rights Reserved (www.mak.com)