Lines Matching refs:attrName
69 inline void appendStrAttr(NodeType *e, const std::string &attrName, const std::string &attr) { in appendStrAttr() argument
70 e->SetAttribute(attrName.c_str(), attr.c_str()); in appendStrAttr()
104 inline bool getAttr(NodeType *root, const std::string &attrName, std::string *s) { in getAttr() argument
105 const char *c = root->Attribute(attrName.c_str()); in getAttr()
186 inline void appendAttr(NodeType *e, const std::string &attrName, const T &attr) const { in appendAttr()
187 return appendStrAttr(e, attrName, ::android::vintf::to_string(attr)); in appendAttr()
190 inline void appendAttr(NodeType *e, const std::string &attrName, bool attr) const { in appendAttr()
191 return appendStrAttr(e, attrName, attr ? "true" : "false"); in appendAttr()
225 inline bool parseOptionalAttr(NodeType *root, const std::string &attrName, in parseOptionalAttr()
228 bool success = getAttr(root, attrName, &attrText) && in parseOptionalAttr()
237 inline bool parseAttr(NodeType *root, const std::string &attrName, T *attr) const { in parseAttr()
239 bool ret = getAttr(root, attrName, &attrText) && ::android::vintf::parse(attrText, attr); in parseAttr()
241 mLastError = "Could not find/parse attr with name \"" + attrName + "\" for element <" in parseAttr()
247 inline bool parseAttr(NodeType *root, const std::string &attrName, std::string *attr) const { in parseAttr()
248 bool ret = getAttr(root, attrName, attr); in parseAttr()
250 mLastError = "Could not find attr with name \"" + attrName + "\" for element <" in parseAttr()