tools/NavGenProj/include/NavGenProjClientInput.h Source File
Go to the documentation of this file.
13 #ifndef GwNavGen_NavGenProjClientInput_H
14 #define GwNavGen_NavGenProjClientInput_H
39 void SetFileName(std::string inputFileName)
41 m_fileName = inputFileName;
44 std::string FileType()
46 std::string fileType =
"ClientInput";
50 bool Read(TiXmlNode* node)
53 for (child = node->FirstChild(); child != 0; child = child->NextSibling())
55 NavGenProj::GetParam(child,
"filepath", m_fileName);
58 ReadDeprecatedParam(child);
63 bool Write(TiXmlNode* node)
65 TiXmlNode* inputsFolderNode = NavGenProj::GetOrCreateFolderNode(node,
"clientInputs");
67 TiXmlElement* clientInputNode =
new TiXmlElement(
"clientInput");
68 inputsFolderNode->LinkEndChild(clientInputNode);
70 TiXmlElement* filePathNode =
new TiXmlElement(
"filepath");
71 clientInputNode->LinkEndChild(filePathNode);
72 TiXmlText* text =
new TiXmlText(m_fileName.c_str());
73 filePathNode->LinkEndChild(text);
79 void ReadDeprecatedParam(TiXmlNode* child)
82 if(NavGenProj::GetParam(child,
"useOnlyGeometry", tmp))
83 KY_LOG_WARNING((
"[useOnlyGeometry] is deprecated"));
84 if(NavGenProj::GetParam(child,
"counterClockWise", tmp))
85 KY_LOG_WARNING((
"[counterClockWise] is deprecated"));
89 std::string m_fileName;
Definition: gamekitcrowddispersion.h:20