GoPxL SDK
GoGdpMsg.h
Go to the documentation of this file.
1 
9 #ifndef GO_PXL_SDK_GOGDPMSG_H
10 #define GO_PXL_SDK_GOGDPMSG_H
11 
12 #include <GoApi/GoApi.h>
13 #include <kApi/Io/kSerializer.h>
17 
18 namespace GoPxLSdk
19 {
20 
22  {
23  k8u spaceType;
30  std::string dataSourceId;
31  std::string stampSourceId;
32  k64u dataSetId;
33  bool isLastMsg;
34  k16u gdpId;
35  };
36 
38  {
39  public:
48 
49  virtual ~GoGdpMsg() = default;
50 
59  virtual void Deserialize(kSerializer serializer);
60 
68  const MessageType Type() const;
69 
79  const std::string& DataSourceId() const;
80 
94  const std::string& StampSourceId() const;
95 
107  const k8u SpaceType() const;
108 
118  const bool HasTransform() const;
119 
132  const GoGdpTransform& Transform() const;
133 
144  const k32u ArrayedCount() const;
145 
154  const k32u ArrayedIndex() const;
155 
163  const bool HasBoundingBox() const;
164 
174  const GoGdpBoundingBox& BoundingBox() const;
175 
186  const k64u DataSetId() const;
187 
195  const bool IsLastMsg() const;
196 
205  const k16u GdpId() const;
206 
207  private:
208  void ReadText(kSerializer serializer, k16u numCharsToRead, std::string& destString);
209 
210  protected:
213  };
214 
215 
216 
217 }
218 #endif
219 
Definition: GoGdpBoundingBox.h:20
std::string stampSourceId
Definition: GoGdpMsg.h:31
bool hasTransform
Definition: GoGdpMsg.h:24
#define GoPxLSdkClass
Definition: Def.h:35
CommonAttributes attributes
Definition: GoGdpMsg.h:211
bool isLastMsg
Definition: GoGdpMsg.h:33
GoGdpBoundingBox boundingBox
Definition: GoGdpMsg.h:27
k64u dataSetId
Definition: GoGdpMsg.h:32
k32u arrayedIndex
Definition: GoGdpMsg.h:29
Definition: GoGdpTransform.h:30
MessageType
List of enums representing types available to be serialized out through GDP This list is essentially ...
Definition: GoGdpMsgDef.h:27
Signals to clients that data on a stream is invalidated.
Definition: GoGdpMsg.h:21
bool hasBoundingBox
Definition: GoGdpMsg.h:26
MessageType msgType
Definition: GoGdpMsg.h:212
GoGdpTransform transform
Definition: GoGdpMsg.h:25
k8u spaceType
Definition: GoGdpMsg.h:23
std::string dataSourceId
Definition: GoGdpMsg.h:30
k32u arrayedCount
Definition: GoGdpMsg.h:28
Definition: Def.h:46
k16u gdpId
Definition: GoGdpMsg.h:34
Definition: GoGdpMsg.h:37