VR-Forces 4.3.1 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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/simInterfaceContent.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 
71  virtual void setInitialSend(bool);
72  bool initialSend() const;
73 
76  virtual void addTemplateEntry(DtRwSpawnData * spawnTemplate,unsigned int spawnPointCount);
77 
78  virtual int netRepSize() const;
79 
80  virtual bool setFromNet(const char* contentBuffer, unsigned contentSize);
81 
82  virtual bool setToNet();
83 
84  virtual void printDataToString(DtString& str);
85 
86  static DtSimInterfaceContent* creator();
87 
88  protected:
89 
92  };
93 
94 }
95 

Document ID: Generated on Wed Jul 29 00:55:00 EDT 2015 from SVN revision 155257
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)