VR-Forces 4.3 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ifIntersectionInformationResponse.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2014 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
9 #pragma once
10 
11 #include <vrfExtProtocol/simInterfaceContent.h>
12 #include "vrfmsgs/vrfmsgsDefines.h"
13 #include "vrfmsgs/messageTypes.h"
14 
15 #include <matrix/vlVector.h>
16 
20 
22 {
23 public:
26 
29 
31  virtual ~DtIntersectionInformation();
32 
34 
35  virtual void setIntersectionPoint(const DtVector&);
36  const DtVector& intersectionPoint() const
37  {
38  return myIntersectionPoint;
39  }
40 
41  virtual void setIntersectionTime(double);
42  double intersectionTime() const
43  {
44  return myIntersectionTime;
45  }
46 
47  virtual void setSoilType(int mySoilType);
48  bool soilTypeDefined() const
49  {
50  return mySoilTypeDefined;
51  }
52 
53  int soilType() const
54  {
55  return mySoilType;
56  }
57 
58  virtual void setEntityIntersected(const DtString&);
59  const DtString& entityIntersected() const
60  {
61  return myEntityIntersected;
62  }
63 
64  virtual char* setToNet(char* buffer) const;
65  virtual const char* setFromNet(const char* buffer);
66  virtual int netRepSize() const;
67 
68 protected:
72  int mySoilType;
74 };
75 
76 namespace DtBufferSerialize
77 {
79  DT_DLL_vrfmsgs const char* decode (DtIntersectionInformation&, const char*);
80  DT_DLL_vrfmsgs char* encode(const DtIntersectionInformation&, char*);
81 }
82 
84 {
85 public:
86  typedef std::vector<DtIntersectionInformation> IntersectionInformation;
87  typedef std::vector<IntersectionInformation> IntersectionPairInformation;
88 
91 
94 
97 
99 
100  virtual int type() const;
101 
102  virtual DtSimInterfaceContent* clone() const;
103 
104  virtual int netRepSize() const;
105  virtual bool setFromNet(const char* contentBuffer,
106  unsigned contentSize);
107  virtual bool setToNet();
108 
109  virtual void printDataToString(DtString& str);
110 
111  static DtSimInterfaceContent* creator();
112 
114  virtual void setResponseId(unsigned long);
115  unsigned long responseId() const
116  {
117  return myResponseId;
118  }
119 
123  virtual void addIntersectionFor(int intersectionPairIndex, const DtIntersectionInformation&);
124  virtual IntersectionInformation intersectionsFor(int intersectionPairIndex);
125  int numResponses() const
126  {
127  return myIntersectionPairInformation.size();
128  }
129 
131  virtual void setResponseSetSize(int size);
132 
133  const IntersectionPairInformation& intersectionPairInformation() const
134  {
135  return myIntersectionPairInformation;
136  }
137 
138 protected:
141 };

Document ID: Generated on Wed Mar 11 21:20:57 EDT 2015 from SVN revision 150940
Copyright © 2005-2014 VT MÄK. All Rights Reserved (www.mak.com)