tools/navgenproj/ProjIntermediateFilesConfig.h Source File

ProjIntermediateFilesConfig.h
Go to the documentation of this file.
1 /*
2 * Copyright 2017 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 #pragma once
8 
9 #include "navgenproj/ProjTypes.h"
11 
12 namespace Kaim
13 {
14 
15 inline bool Read(XmlNode node, IntermediateFilesConfig& value)
16 {
17  for (XmlNode child = node.FirstChild(); child; child = child.NextSibling())
18  {
19  if (child.HasName("cellPos") == false)
20  return false;
21 
22  Kaim::CellPos cellPos;
23  if (child.ReadNode(cellPos) == false)
24  return false;
25 
26  value.Add(cellPos);
27  }
28  return true;
29 }
30 
31 inline void Write(XmlNode node, const IntermediateFilesConfig& value)
32 {
33  for (KyUInt32 i = 0; i < value.GetCount(); ++i)
34  node.WriteChild("cellPos", value.Get(i));
35 }
36 
37 }
std::uint32_t KyUInt32
uint32_t
Definition: types.h:29
2d vector using KyInt32
Definition: vec2i.h:18
The Autodesk Navigation namespace.
Definition: gamekitcrowddispersion.cpp:17