gwnavruntime/pathfollower/shortcuttrajectoryconfigblob.h Source File

shortcuttrajectoryconfigblob.h
Go to the documentation of this file.
1 /*
2 * Copyright 2015 Autodesk, Inc. All rights reserved.
3 * Use of this software is subject to the terms of the Autodesk license agreement and any attachments or Appendices thereto provided at the time of installation or download,
4 * or which otherwise accompanies this software in either electronic or hard copy form, or which is signed by you and accepted by Autodesk.
5 */
6 
7 
8 // primary contact: MAMU - secondary contact: NOBODY
9 
10 #ifndef Navigation_ShortcutTrajectoryConfig_Blob_H
11 #define Navigation_ShortcutTrajectoryConfig_Blob_H
12 
17 
18 
19 
20 namespace Kaim
21 {
22 
23 class ShortcutTrajectoryConfigBlob
24 {
25  KY_ROOT_BLOB_CLASS(Runtime, ShortcutTrajectoryConfigBlob, 1)
26 
27 public:
28  ShortcutTrajectoryConfigBlob() {}
29 
30  KyUInt32 m_snapOnPath;
31  AdvancedShortcutTrajectoryConfig m_advancedConfig;
32 };
33 
34 inline void SwapEndianness(Endianness::Target e, ShortcutTrajectoryConfigBlob& self)
35 {
36  SwapEndianness(e, self.m_snapOnPath);
37  SwapEndianness(e, self.m_advancedConfig);
38 }
39 
40 class ShortcutTrajectoryConfigBlobBuilder : public BaseBlobBuilder < ShortcutTrajectoryConfigBlob >
41 {
42  KY_CLASS_WITHOUT_COPY(ShortcutTrajectoryConfigBlobBuilder)
43 
44 public:
45  ShortcutTrajectoryConfigBlobBuilder(const ShortcutTrajectoryConfig* shortcutTrajectoryConfig)
46  : m_shortcutTrajectoryConfig(shortcutTrajectoryConfig)
47  {}
48 
49  virtual void DoBuild();
50 
51 private:
52  const ShortcutTrajectoryConfig* m_shortcutTrajectoryConfig;
53 };
54 
55 } // namespace Kaim
56 
57 #endif
#define KY_CLASS_WITHOUT_COPY(ClassName)
Define to forbid copy constructor and copy assignment.
Definition: types.h:387
Target
Enumerates the possible endianness types relative to the current platform.
Definition: endianness.h:35
Definition: gamekitcrowddispersion.h:20
unsigned int KyUInt32
Type used internally to represent an unsigned 32-bit integer.
Definition: types.h:36