VR-Forces Developer's Guide
 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 <readerWriter/rwInt.h>
13 #include <readerWriter/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() override;
43 
46 
49 
51  virtual int type() const override;
52 
53  virtual DtSimInterfaceContent * clone() const override;
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 override;
70  virtual bool setFromNet(const char* contentBuffer, unsigned contentSize) override;
71  virtual bool setToNet() override;
72 
73  virtual void printDataToString(DtString& str) override;
74 
75  static DtSimInterfaceContent* creator();
76 
77 protected:
78  std::list<LoadedNavArea> myLoadedNavAreas;
79  std::map<DtRwString, NavRegenSectors> mySectorRegenStatus;
80 };
virtual bool setFromNet(const char *contentBuffer, unsigned contentSize)
Definition: simInterfaceContent.h:78
virtual int netRepSize() const
Definition: simInterfaceContent.h:76
#define DT_DLL_vrfmsgs
This file is used to determine how to build.
Definition: vrfmsgsDefines.h:28
virtual int type() const =0
Description: Readable, Writable DtString Variable substitutions are done on this object when it is re...
Definition: rwString.h:20
std::pair< DtNavSectorIndices, DtNavSectorIndices > NavRegenSectors
Definition: ifLoadedNavAreasResponse.h:36
virtual void printDataToString(DtString &str)
std::pair< int, int > DtNavSectorIndex
Definition: ifLoadedNavAreasResponse.h:17
class DtIfNavAreaDebugPorts:
Definition: ifLoadedNavAreasResponse.h:31
std::set< DtNavSectorIndex > DtNavSectorIndices
Definition: ifLoadedNavAreasResponse.h:18
std::list< LoadedNavArea > myLoadedNavAreas
Definition: ifLoadedNavAreasResponse.h:78
std::map< DtRwString, NavRegenSectors > mySectorRegenStatus
Definition: ifLoadedNavAreasResponse.h:79
const DtSimInterfaceContent & operator=(const DtSimInterfaceContent &orig)
std::pair< DtRwString, DtRwInt > LoadedNavArea
Definition: ifLoadedNavAreasResponse.h:35
virtual bool setToNet()
Definition: simInterfaceContent.h:83
Definition: simInterfaceContent.h:45
virtual DtSimInterfaceContent * clone() const =0
virtual std::list< LoadedNavArea > & loadedNavAreas()
Definition: ifLoadedNavAreasResponse.h:55

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)