VR-Forces 4.2 Class Documentation
ifSpawnList.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2012 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
6 #pragma once
7 
8 #include <vrfExtProtocol/ifaceCont.h>
10 #include <vector>
12 //#include <vrfmsgs/rwSpawnData.h>
13 
14 namespace BHAVE
15 {
17  {
20  unsigned int mySpawnPtsCount;
21  unsigned int mySinkPtsCount;
22 
23  bool operator==(const SpawnTemplateListEntry& rhs) const
24  {
25  return ((myName == rhs.myName) && (myDescription == rhs.myDescription) &&
27  }
28 
29  bool operator!=(const SpawnTemplateListEntry& rhs) const
30  {
31  return !(*this == rhs);
32  }
33  };
34 
36  typedef std::vector<SpawnTemplateListEntry> SpawnTemplateDescriptionList;
37 
42  {
43 
44  public:
45 
47  DtIfSpawnList();
48 
50  DtIfSpawnList(const DtIfSpawnList & orig);
51 
53  const DtIfSpawnList & operator=(const DtIfSpawnList & orig);
54 
56  virtual ~DtIfSpawnList();
57 
59  virtual int type() const;
60 
62  virtual DtSimInterfaceContent * clone() const;
63 
66  const SpawnTemplateDescriptionList& spawnTemplateAndDescriptionList()
67  const;
69 
72  virtual void addTemplateEntry(DtRwSpawnData * spawnTemplate,unsigned int spawnPointCount);
73 
74  virtual int netRepSize() const;
75 
76  virtual bool setFromNet(const char* contentBuffer, unsigned contentSize);
77 
78  virtual bool setToNet();
79 
80  virtual void printDataToString(DtString& str);
81 
82  static DtSimInterfaceContent* creator();
83 
84  protected:
85 
87  };
88 
89 }
90 

Document ID: Generated on Sun Nov 24 19:49:21 EST 2013 from SVN revision 133924
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)