GoPxL SDK
GoGdpMsg.h
Go to the documentation of this file.
1 
10 #ifndef GO_PXL_SDK_GOGDPMSG_H
11 #define GO_PXL_SDK_GOGDPMSG_H
12 
13 #include <GoApi/GoApi.h>
14 #include <kApi/Io/kSerializer.h>
18 
19 namespace GoPxLSdk
20 {
21 
23  {
24  k8u spaceType;
31  std::string dataSourceId;
32  std::string stampSourceId;
33  k64u dataSetId;
34  bool isLastMsg;
35  k16u gdpId;
36  };
37 
39  {
40  public:
49 
50  virtual ~GoGdpMsg() = default;
51 
60  virtual void Deserialize(kSerializer serializer);
61 
69  const MessageType Type() const;
70 
80  const std::string& DataSourceId() const;
81 
95  const std::string& StampSourceId() const;
96 
108  const k8u SpaceType() const;
109 
119  const bool HasTransform() const;
120 
133  const GoGdpTransform& Transform() const;
134 
145  const k32u ArrayedCount() const;
146 
155  const k32u ArrayedIndex() const;
156 
164  const bool HasBoundingBox() const;
165 
175  const GoGdpBoundingBox& BoundingBox() const;
176 
187  const k64u DataSetId() const;
188 
196  const bool IsLastMsg() const;
197 
206  const k16u GdpId() const;
207 
208  private:
209  void ReadText(kSerializer serializer, k16u numCharsToRead, std::string& destString);
210 
211  protected:
214  };
215 
216 
217 
218 }
219 #endif
220 
Declares the GoPxLSdk.GoGdpBoundingBox class.
Definition: GoGdpBoundingBox.h:21
std::string stampSourceId
Definition: GoGdpMsg.h:32
bool hasTransform
Definition: GoGdpMsg.h:25
#define GoPxLSdkClass
Definition: Def.h:35
CommonAttributes attributes
Definition: GoGdpMsg.h:212
Declares the GoPxLSdk.GoGdpTransform class.
bool isLastMsg
Definition: GoGdpMsg.h:34
GoGdpBoundingBox boundingBox
Definition: GoGdpMsg.h:28
k64u dataSetId
Definition: GoGdpMsg.h:33
k32u arrayedIndex
Definition: GoGdpMsg.h:30
Definition: GoGdpTransform.h:31
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:22
bool hasBoundingBox
Definition: GoGdpMsg.h:27
MessageType msgType
Definition: GoGdpMsg.h:213
GoGdpTransform transform
Definition: GoGdpMsg.h:26
k8u spaceType
Definition: GoGdpMsg.h:24
std::string dataSourceId
Definition: GoGdpMsg.h:31
k32u arrayedCount
Definition: GoGdpMsg.h:29
Definition: Def.h:46
k16u gdpId
Definition: GoGdpMsg.h:35
Definition: GoGdpMsg.h:38