tools/NavGenProj/include/NavGenProjPdgInput.h Source File
Go to the documentation of this file.
10 #ifndef GwNavGen_NavGenProjPdgInput_H
11 #define GwNavGen_NavGenProjPdgInput_H
41 void SetFileName(std::string geometryFileName)
43 m_fileName = geometryFileName;
46 std::string FileType()
48 std::string fileType =
"pdginput";
52 bool Read(TiXmlNode* node)
55 for (child = node->FirstChild(); child != 0; child = child->NextSibling())
57 NavGenProj::GetParam(child,
"filepath", m_fileName);
62 bool Write(TiXmlNode* node)
65 TiXmlNode* geometryFolderNode = NavGenProj::GetOrCreateFolderNode(node,
"pdginputs");
68 TiXmlElement* geometryNode =
new TiXmlElement(
"pdginput");
69 geometryFolderNode->LinkEndChild(geometryNode);
72 TiXmlElement* filePathNode =
new TiXmlElement(
"filepath");
73 geometryNode->LinkEndChild(filePathNode);
74 TiXmlText* text =
new TiXmlText(m_fileName.c_str());
75 filePathNode->LinkEndChild(text);
81 std::string m_fileName;
Definition: gamekitcrowddispersion.h:20