VR-Link API Documentation for DIS
 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-2010 VT MAK
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 
45 
46 
47 
48  bool operator==(const DtAttachedPartCollection& other) const;
49  bool operator!=(const DtAttachedPartCollection& other) const;
51 
54  virtual DtAttachedPart& getPart(int station);
55 
57 
58 
59 
60 
61 
62 
63  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 

Document ID: Generated on Thu Feb 22 04:26:36 EST 2018 from SVN revision 186468
Copyright © 2005-2016 VT MÄK. All Rights Reserved (www.mak.com)