gwnavruntime/pathfollower/shortcuttrajectoryconfigblob.h Source File

shortcuttrajectoryconfigblob.h
Go to the documentation of this file.
1 /*
2 * Copyright 2016 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 #pragma once
9 
14 
15 
16 
17 namespace Kaim
18 {
19 
20 class ShortcutTrajectoryConfigBlob
21 {
22  KY_ROOT_BLOB_CLASS(Runtime, ShortcutTrajectoryConfigBlob, 1)
23 
24 public:
25  ShortcutTrajectoryConfigBlob() {}
26 
27  KyUInt32 m_snapOnPath;
28  AdvancedShortcutTrajectoryConfig m_advancedConfig;
29 };
30 
31 inline void SwapEndianness(Endianness::Target e, ShortcutTrajectoryConfigBlob& self)
32 {
33  SwapEndianness(e, self.m_snapOnPath);
34  SwapEndianness(e, self.m_advancedConfig);
35 }
36 
37 class ShortcutTrajectoryConfigBlobBuilder : public BaseBlobBuilder < ShortcutTrajectoryConfigBlob >
38 {
39  KY_CLASS_WITHOUT_COPY(ShortcutTrajectoryConfigBlobBuilder)
40 
41 public:
42  ShortcutTrajectoryConfigBlobBuilder(const ShortcutTrajectoryConfig* shortcutTrajectoryConfig)
43  : m_shortcutTrajectoryConfig(shortcutTrajectoryConfig)
44  {}
45 
46  virtual void DoBuild();
47 
48 private:
49  const ShortcutTrajectoryConfig* m_shortcutTrajectoryConfig;
50 };
51 
52 } // namespace Kaim
53 
std::uint32_t KyUInt32
uint32_t
Definition: types.h:29
#define KY_CLASS_WITHOUT_COPY(ClassName)
Define to forbid copy constructor and copy assignment.
Definition: types.h:196
Target
Enumerates the possible endianness types relative to the current platform.
Definition: endianness.h:27
The Autodesk Navigation namespace.
Definition: gamekitcrowddispersion.cpp:17