28 QDomDocument domDoc = parentElem.ownerDocument();
31 QDomElement childElem = domDoc.createElement(nodeName);
33 parentElem.appendChild(childElem);
36 QDomText dataVal = domDoc.createTextNode(nodeValue);
38 childElem.appendChild(dataVal);
41 #if TY_ARCH_TYPE == TY_ARCHITECTURE_64
43 unsigned int nodeValue)
52 #if TY_COMPILER == TY_COMPILER_MSVC
54 unsigned long nodeValue)
66 unsigned long nodeValue)
97 if (parentElem.nodeName() == nodeName)
99 QDomNode child = parentElem.firstChild();
103 nodeValue = child.nodeValue();
111 QString& nodeValue,
bool& ok)
117 if (parentElem.nodeName() == nodeName)
119 DOM_Node child = parentElem.firstChild();
123 nodeValue = child.nodeValue();
131 QString nodeValueStr;
137 nodeValue = nodeValueStr.toInt();
151 QString nodeValueStr;
157 nodeValue = nodeValueStr.toInt();
162 unsigned int& nodeValue,
bool& ok)
169 QString nodeValueStr;
175 nodeValue = nodeValueStr.toUInt();
181 QString nodeValueStr;
187 nodeValue = (nodeValueStr.toInt() == 1) ?
true :
false;
201 QString nodeValueStr;
207 nodeValue = (nodeValueStr.toInt() == 1) ?
true :
false;
213 QString nodeValueStr;
219 nodeValue = nodeValueStr.toFloat();
233 QString nodeValueStr;
239 nodeValue = nodeValueStr.toFloat();
246 QString nodeValueStr;
252 nodeValue = nodeValueStr.toDouble();
259 double& nodeValue,
bool& ok)
266 QString nodeValueStr;
272 nodeValue = nodeValueStr.toDouble();
280 if (!parentElem.isNull())
282 attValue = parentElem.attribute(attName);
std::string floatToStr(float val)
std::string uintToStr(unsigned int val)
std::string doubleToStr(double val)
std::string intToStr(int val)