VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
ifMultiplePlanResponse.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 
11 #include <vlutil/vlString.h>
14 #include <vrfutil/rwUUID.h>
15 
16 #include <vector>
17 
18 class DtIfPlan;
19 
29 
30 #include "vrfmsgs/vrfmsgsDefines.h"
31 
33 {
34 public:
35 
38 
40  virtual ~DtIfMultiplePlanResponse();
41 
44 
47 
49  virtual int type() const;
50 
51  virtual DtSimInterfaceContent * clone() const;
52 
54  virtual const std::vector<DtUUID> & entities() const;
55  virtual void setEntities(const std::vector<DtUUID> & name);
56 
58  virtual void setRequestId(int);
59  virtual int requestId() const;
60 
62  virtual bool differingPlans() const;
63  virtual void setDifferingPlans(bool);
64 
66  virtual void setPlan(DtIfPlan*);
67  virtual const DtIfPlan* plan() const;
68 
69  virtual void setSimulationAddress(const DtSimulationAddress&);
70  virtual const DtSimulationAddress& simulationAddress() const;
71 
72  virtual int netRepSize() const;
73  virtual bool setFromNet(const char* contentBuffer,
74  unsigned contentSize);
75  virtual bool setToNet();
76 
77  virtual void printDataToString(DtString& str);
78 
79  static DtSimInterfaceContent* creator();
80 
81  virtual bool hasPlan() const;
82 
83 protected:
84  std::vector<DtUUID> myEntities;
85  DtSimulationAddress mySimulationAddress;
86  DtU32 myRequestId;
89 };
90 
91 namespace DtBufferSerialize
92 {
95  DT_DLL_vrfmsgs int getSize(const DtIfPlan* const& messagePtr);
96 
101  DT_DLL_vrfmsgs char *encode(const DtIfPlan* const& messagePtr, char *buffer);
102 
107  DT_DLL_vrfmsgs const char *decode(DtIfPlan*& messagePtr, const char *buffer);
108 }
class DtIfPlan:
Definition: ifPlan.h:61
virtual bool setFromNet(const char *contentBuffer, unsigned contentSize)
Definition: simInterfaceContent.h:78
bool myDifferingPlans
Definition: ifMultiplePlanResponse.h:88
virtual int netRepSize() const
Definition: simInterfaceContent.h:76
DT_DLL_readerWriter int getSize(const DtString &val)
The number of bytes required to encode the value.
#define DT_DLL_vrfmsgs
This file is used to determine how to build.
Definition: vrfmsgsDefines.h:28
DtSimulationAddress mySimulationAddress
Definition: ifMultiplePlanResponse.h:85
virtual int type() const =0
DtU32 myRequestId
Definition: ifMultiplePlanResponse.h:86
Contains the DtUUID class declaration.
virtual void printDataToString(DtString &str)
const DtSimInterfaceContent & operator=(const DtSimInterfaceContent &orig)
DT_DLL_readerWriter char * encode(const DtFilename &val, char *buffer)
Serializes the provided value val into buffer. buffer must have at least the number of bytes returned...
class DtIfMultiplePlanResponse:
Definition: ifMultiplePlanResponse.h:32
std::vector< DtUUID > myEntities
Definition: ifMultiplePlanResponse.h:84
virtual bool setToNet()
Definition: simInterfaceContent.h:83
Definition: simInterfaceContent.h:45
DT_DLL_readerWriter const char * decode(DtString &val, const char *buffer)
Decodes a value from buffer and places the result in val of the type specified by val...
virtual DtSimInterfaceContent * clone() const =0
DtIfPlan * myPlan
Definition: ifMultiplePlanResponse.h:87

Document ID: Generated on Tue Sep 24 19:28:17 EDT 2024 from SVN revision 269799
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)