VR-Forces 4.10 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
ifObjectIndexMessage.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2008 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 /*******************************************************************************
6 ** $RCSfile: ifObjectIndexData.h,v $ $Revision: 1.1 $ $State: Exp $
7 *******************************************************************************/
8 
11 
16 
17 #pragma once
18 
19 #include <vrfmsgs/vrfmsgsDefines.h>
20 
22 
23 #include <vlutil/vlString.h>
24 
25 #include <set>
26 #include <vector>
27 
28 typedef std::set<DtString> DtStringSet;
29 typedef std::map<DtString, DtString> DtNameToObjectIdMap;
30 
37 {
38 public:
39 
42 
45  const DtString& simAddress,
46  const DtNameToObjectIdMap& objectNames,
47  const DtStringSet& objectIds);
48 
51 
53  const DtIfObjectIndexMessage & operator=(const
54  DtIfObjectIndexMessage & orig);
55 
57  virtual ~DtIfObjectIndexMessage();
58 
60  static DtSimInterfaceContent* creator();
61 
63  virtual int type() const;
64 
66 
67  virtual void setSimAddress(const DtString& simAddress);
68  virtual DtString simAddress() const;
70 
72 
73  virtual void setObjectNames(const DtNameToObjectIdMap& objectNames);
74  virtual const DtNameToObjectIdMap& objectNames() const;
76 
78 
79  virtual void setObjectIds(const DtStringSet& objectIds);
80  virtual const DtStringSet& objectIds() const;
82 
85  virtual DtSimInterfaceContent * clone() const;
86 
88  virtual DtString stringRep() const;
89 
91  virtual int netRepSize() const;
92 
94  virtual bool setFromNet(const char* contentBuffer,
95  unsigned contentSize);
96 
98  virtual bool setToNet();
99 
100 protected:
101 
105 
108 
111 
112 };
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
std::set< DtString > DtStringSet
Class DtIfObjectIndexMessage; Message content used in publishing the names and objectIds of a sim eng...
Definition: ifObjectIndexMessage.h:28
virtual int type() const =0
DtNameToObjectIdMap myObjectNames
Map of object names to object ids. Used to search by names, or find an objectId for a name...
Definition: ifObjectIndexMessage.h:107
DtString mySimAddress
Sim address of this sim engine.
Definition: ifObjectIndexMessage.h:104
Class DtIfObjectIndexMessage is the message content that contains information the names of the sim en...
Definition: ifObjectIndexMessage.h:36
DtStringSet myObjectIds
Set of object ids. Used for searching by Ids.
Definition: ifObjectIndexMessage.h:110
std::map< DtString, DtString > DtNameToObjectIdMap
Definition: ifObjectIndexMessage.h:29
const DtSimInterfaceContent & operator=(const DtSimInterfaceContent &orig)
virtual bool setToNet()
Definition: simInterfaceContent.h:83
Definition: simInterfaceContent.h:45
virtual DtSimInterfaceContent * clone() const =0

Document ID: Generated on Tue Sep 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)