VR-Forces 4.6.1 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
ifLoadedNavAreasResponse.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2015 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
9 #pragma once
10 
12 #include <vrfutil/rwInt.h>
13 #include <vrfutil/rwString.h>
14 #include <list>
15 #include <set>
16 
17 typedef std::pair<int, int> DtNavSectorIndex;
18 typedef std::set<DtNavSectorIndex> DtNavSectorIndices;
19 
30 #include "vrfmsgs/vrfmsgsDefines.h"
32 {
33 public:
34 
35  typedef std::pair<DtRwString, DtRwInt> LoadedNavArea;
36  typedef std::pair<DtNavSectorIndices, DtNavSectorIndices> NavRegenSectors;
37 
40 
42  virtual ~DtIfLoadedNavAreasResponse();
43 
46 
49 
51  virtual int type() const;
52 
53  virtual DtSimInterfaceContent * clone() const;
54 
55  virtual std::list<LoadedNavArea>& loadedNavAreas() { return myLoadedNavAreas; };
56 
57  virtual DtNavSectorIndices& sectorsQueuedForRegeneration(const DtRwString& areaName);
58 
59  virtual DtNavSectorIndices& sectorsBeingRegenerated(const DtRwString& areaName);
60 
62  virtual void addLoadedNavArea(const DtString& name, int debuggingPort = -1);
63 
65  virtual void addNavAreaRegenerationStatus(const DtString& name,
66  const DtNavSectorIndices& sectorsQueuedForRegen,
67  const DtNavSectorIndices& sectorsBeingRegen);
68 
69  virtual int netRepSize() const;
70  virtual bool setFromNet(const char* contentBuffer,
71  unsigned contentSize);
72  virtual bool setToNet();
73 
74  virtual void printDataToString(DtString& str);
75 
76  static DtSimInterfaceContent* creator();
77 
78 protected:
79  std::list<LoadedNavArea> myLoadedNavAreas;
80  std::map<DtRwString, NavRegenSectors> mySectorRegenStatus;
81 };

Document ID: Generated on Wed Jul 25 16:57:45 EDT 2018 from SVN revision 190790
Copyright © 2005-2018 VT MÄK. All Rights Reserved (www.mak.com)