Changeset 8781
- Timestamp:
- 02/25/09 15:10:51 (4 years ago)
- Location:
- ossiedev/trunk/system/ossie/parser
- Files:
-
- 5 modified
-
DeviceClass.cpp (modified) (1 diff)
-
DevicePkg.cpp (modified) (6 diffs)
-
DevicePkgRef.cpp (modified) (2 diffs)
-
HWDeviceRegistration.cpp (modified) (12 diffs)
-
PropertyFile.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
ossiedev/trunk/system/ossie/parser/DeviceClass.cpp
r8751 r8781 39 39 void DeviceClass::parseElement(TiXmlElement *elem) 40 40 { 41 DEBUG(4, DeviceClass, "in parseElement"); 42 41 43 TiXmlElement *classType = elem->FirstChildElement("class"); // set link to class tags 42 44 -
ossiedev/trunk/system/ossie/parser/DevicePkg.cpp
r8751 r8781 59 59 void DevicePkg::parseAttributeID(TiXmlElement *elem) 60 60 { 61 DEBUG(4, DevicePkg, "in parseAttributeID"); 62 61 63 if (elem->Attribute("id")) 62 64 { 63 DEBUG(4, DevicePkg, "Found ID attribute");64 65 id = elem->Attribute("id"); 65 66 } … … 73 74 void DevicePkg::parseAttributeName(TiXmlElement *elem) 74 75 { 76 DEBUG(4, DevicePkg, "in parseAttributeName"); 77 75 78 if (elem->Attribute("name")) 76 79 { 77 DEBUG(4, DevicePkg, "Found NAME attribute");78 80 name = elem->Attribute("name"); 79 81 } … … 87 89 void DevicePkg::parseAttributeVersion(TiXmlElement *elem) 88 90 { 91 DEBUG(4, DevicePkg, "in parseAttributeVersion"); 92 89 93 if (elem->Attribute("version")) 90 94 { 91 DEBUG(4, DevicePkg, "Found VERSION attribute");92 95 version = elem->Attribute("version"); 93 96 } … … 108 111 void DevicePkg::parseAuthor(TiXmlElement *elem) 109 112 { 113 DEBUG(4, DevicePkg, "in parseAuthor"); 114 110 115 TiXmlElement *auth = elem->FirstChildElement("author"); 111 116 if (auth) 112 117 { 113 DEBUG(4, DevicePkg, "Found author");114 118 author = auth->GetText(); 115 119 } … … 123 127 void DevicePkg::parseTitle(TiXmlElement *elem) 124 128 { 129 DEBUG(4, DevicePkg, "in parseTitle"); 130 125 131 TiXmlElement *titleElem = elem->FirstChildElement("title"); 126 132 if (titleElem) 127 133 { 128 DEBUG(4, DevicePkg, "Found title");129 134 title = titleElem->GetText(); 130 135 } … … 138 143 void DevicePkg::parseDescription(TiXmlElement *elem) 139 144 { 145 DEBUG(4, DevicePkg, "in parseDescription"); 146 140 147 TiXmlElement *descrip = elem->FirstChildElement("description"); 141 148 if (descrip) 142 149 { 143 DEBUG(4, DevicePkg, "Found description");144 150 description = descrip->GetText(); 145 151 } -
ossiedev/trunk/system/ossie/parser/DevicePkgRef.cpp
r8751 r8781 48 48 void DevicePkgRef::parseAttributes(TiXmlElement *elem) 49 49 { 50 DEBUG(4, DevicePkgRef, "in parseAttributes"); 51 50 52 if (elem->Attribute("type")) 51 53 { 52 DEBUG(4, DevicePkgRef, "Found type attribute");53 54 type = elem->Attribute("type"); 54 55 } … … 62 63 void DevicePkgRef::parseChildElements(TiXmlElement *elem) 63 64 { 65 DEBUG(4, DevicePkgRef, "in parseChildElements"); 66 64 67 TiXmlElement *local = elem->FirstChildElement("localfile"); 65 68 if (local) 66 69 { 67 DEBUG(4, DevicePkgRef, "Found localfile name");68 70 localfile = local->Attribute("name"); 69 71 } -
ossiedev/trunk/system/ossie/parser/HWDeviceRegistration.cpp
r8751 r8781 29 29 HWDeviceRegistration::HWDeviceRegistration(TiXmlElement *elem) 30 30 { 31 DEBUG(4, HWDeviceRegistration, "in constructor."); 32 31 33 parseElement(elem); // parse tags in hwdeviceregistration, with exception of propertyfile, deviceclass, childhwdevice 32 34 … … 54 56 void HWDeviceRegistration::constructChildHWDevice(TiXmlElement *elem) 55 57 { 58 DEBUG(4, HWDeviceRegistration, "in constructChildHWDevice"); 59 56 60 // parse childhwdevice tag(s) 57 61 for (; elem; elem=elem->NextSiblingElement("childhwdevice")) … … 69 73 void HWDeviceRegistration::parseElement(TiXmlElement *elem) 70 74 { 75 DEBUG(4, HWDeviceRegistration, "in parseElement"); 76 71 77 // pull info from hwdeviceregistration tag 72 78 parseAttributes(elem); … … 78 84 void HWDeviceRegistration::parseAttributes(TiXmlElement *elem) 79 85 { 86 DEBUG(4, HWDeviceRegistration, "in parseAttributes"); 87 80 88 parseAttributeID(elem); 81 89 parseAttributeVersion(elem); … … 85 93 void HWDeviceRegistration::parseAttributeID(TiXmlElement *elem) 86 94 { 95 DEBUG(4, HWDeviceRegistration, "in parseAttributeID"); 96 87 97 // verify attribute exists to prevent seg fault 88 98 if (elem->Attribute("id")) … … 99 109 void HWDeviceRegistration::parseAttributeVersion(TiXmlElement *elem) 100 110 { 111 DEBUG(4, HWDeviceRegistration, "in parseAttributeVersion"); 112 101 113 // verify attribute exists to prevent seg fault 102 114 if (elem->Attribute("version")) … … 113 125 void HWDeviceRegistration::parseAttributeName(TiXmlElement *elem) 114 126 { 127 DEBUG(4, HWDeviceRegistration, "in parseAttributeName"); 128 115 129 // verify attribute exists to prevent seg fault 116 130 if (elem->Attribute("name")) … … 127 141 void HWDeviceRegistration::parseChildElements(TiXmlElement *elem) 128 142 { 143 DEBUG(4, HWDeviceRegistration, "in parseChildElements"); 144 129 145 parseDescription(elem); 130 146 parseManufacturer(elem); … … 134 150 void HWDeviceRegistration::parseDescription(TiXmlElement *elem) 135 151 { 152 DEBUG(4, HWDeviceRegistration, "in parseDescription"); 153 136 154 TiXmlElement *descrip = elem->FirstChildElement("description"); 137 155 if (descrip) … … 148 166 void HWDeviceRegistration::parseManufacturer(TiXmlElement *elem) 149 167 { 168 DEBUG(4, HWDeviceRegistration, "in parseManufacturer"); 169 150 170 TiXmlElement *manufac = elem->FirstChildElement("manufacturer"); 151 171 if (manufac) … … 162 182 void HWDeviceRegistration::parseModelNumber(TiXmlElement *elem) 163 183 { 184 DEBUG(4, HWDeviceRegistration, "in parseModelNumber"); 185 164 186 TiXmlElement *modNum = elem->FirstChildElement("modelnumber"); 165 187 if (modNum) … … 176 198 ChildHWDevice::ChildHWDevice(TiXmlElement *elem) 177 199 { 200 DEBUG(4, ChildHWDevice, "in constructor."); 201 178 202 hwDeviceReg = new HWDeviceRegistration(elem->FirstChildElement("hwdeviceregistration")); 179 203 devPkgRef = new DevicePkgRef(elem->FirstChildElement("devicepkgref")); -
ossiedev/trunk/system/ossie/parser/PropertyFile.cpp
r8751 r8781 47 47 void PropertyFile::parseAttributes(TiXmlElement *elem) 48 48 { 49 DEBUG(4, PropertyFile, "in parseAttributes"); 50 49 51 // verify attribute exists before parsing to prevent seg fault 50 52 if (elem->Attribute("type")) 51 53 { 52 DEBUG(4, PropertyFile, "Found TYPE attribute");53 54 type = elem->Attribute("type"); 54 55 } … … 62 63 void PropertyFile::parseChildElements(TiXmlElement *elem) 63 64 { 65 DEBUG(4, PropertyFile, "in parseChildElements"); 66 64 67 TiXmlElement *local = elem->FirstChildElement("localfile"); 65 68 if (local) 66 69 { 67 DEBUG(4, PropertyFile, "Found localfile name");68 70 localfile = local->Attribute("name"); 69 71 }