Changeset 63 in flair-src for branches/mavlink/lib/FlairCore/src/Widget.cpp
- Timestamp:
- 08/23/16 12:10:01 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/mavlink/lib/FlairCore/src/Widget.cpp
r59 r63 20 20 21 21 using std::string; 22 23 //remove, for tests 24 #include <iostream> 22 25 23 26 namespace flair { … … 221 224 } 222 225 226 template <> void Widget::SetPersistentXmlProp(std::string prop, std::string value) { 227 SetVolatileXmlProp(prop, value); 228 SetVolatileXmlProp(prop, value, pimpl_->file_node); 229 } 230 231 void Widget::UnsetPersistentXmlProp(std::string prop) { 232 xmlNodePtr Node = pimpl_->file_node; 233 234 for(xmlAttrPtr attr = Node->properties; NULL != attr; attr = attr->next) 235 { 236 std::cout << attr->name << std::endl; 237 } 238 239 int ret = xmlUnsetProp(pimpl_->file_node, (xmlChar *)prop.c_str()); 240 std::cout << "UnsetPersistentXmlProp, item= " << prop << "result = " << ret << std::endl; 241 242 for(xmlAttrPtr attr = Node->properties; NULL != attr; attr = attr->next) 243 { 244 std::cout << attr->name << std::endl; 245 } 246 } 247 223 248 void Widget::SendXml(void) { pimpl_->SendXml(); } 224 249
Note:
See TracChangeset
for help on using the changeset viewer.