Changeset 8722
- Timestamp:
- 02/17/09 19:50:17 (4 years ago)
- Location:
- ossiedev/branches/mcarrick/ossie
- Files:
-
- 12 modified
-
include/ossie/DPDParser.h (modified) (2 diffs)
-
include/ossie/DeviceClass.h (modified) (1 diff)
-
include/ossie/DevicePkg.h (modified) (3 diffs)
-
include/ossie/DevicePkgRef.h (modified) (1 diff)
-
include/ossie/HWDeviceRegistration.h (modified) (7 diffs)
-
include/ossie/PropertyFile.h (modified) (1 diff)
-
parser/DPDParser.cpp (modified) (1 diff)
-
parser/DeviceClass.cpp (modified) (2 diffs)
-
parser/DevicePkg.cpp (modified) (2 diffs)
-
parser/DevicePkgRef.cpp (modified) (2 diffs)
-
parser/HWDeviceRegistration.cpp (modified) (5 diffs)
-
parser/PropertyFile.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
ossiedev/branches/mcarrick/ossie/include/ossie/DPDParser.h
r8720 r8722 2 2 #define DPDPARSER_H 3 3 4 #include "ossie/ossieparser.h" 5 #include "ossie/cf.h" 4 //#include "ossie/cf.h" 6 5 #include "ossie/DevicePkg.h" 7 6 8 7 #include "tinyxml.h" 9 8 10 class OSSIEPARSER_API DPDParser :public DevicePkg9 class OSSIEPARSER_API DPDParser 11 10 { 12 11 public: … … 15 14 ~DPDParser(); 16 15 16 DevicePkg* getDevicePkg(); 17 18 protected: 19 17 20 private: 18 21 DPDParser(); // no default constructor 19 22 DPDParser(const DPDParser &aDPDParser); // no copying 23 24 DevicePkg *devPkg; 20 25 }; 21 26 -
ossiedev/branches/mcarrick/ossie/include/ossie/DeviceClass.h
r8716 r8722 15 15 ~DeviceClass(); 16 16 17 std::vector <std::string> get DeviceClass();17 std::vector <std::string> getClass(); 18 18 19 19 protected: -
ossiedev/branches/mcarrick/ossie/include/ossie/DevicePkg.h
r8716 r8722 7 7 #include <vector> 8 8 9 #include " ossie/HWDeviceRegistration.h"9 #include "HWDeviceRegistration.h" 10 10 11 11 #include "tinyxml.h" 12 12 13 class OSSIEPARSER_API DevicePkg :public HWDeviceRegistration13 class OSSIEPARSER_API DevicePkg 14 14 { 15 15 public: … … 17 17 ~DevicePkg(); 18 18 19 std::string getDevPkgID(); 20 std::string getDevPkgName(); 21 std::string getDevPkgVersion(); 22 std::string getDevPkgTitle(); 23 std::string getDevPkgAuthor(); 24 std::string getDevPkgDescription(); 19 std::string getID(); 20 std::string getName(); 21 std::string getVersion(); 22 std::string getTitle(); 23 std::string getAuthor(); 24 std::string getDescription(); 25 26 HWDeviceRegistration* getHWDeviceRegistration(); 25 27 26 28 protected: … … 42 44 std::string name; 43 45 std::string version; 44 45 46 std::string title; 46 47 std::string author; 47 48 std::string description; 48 49 49 HWDeviceRegistration hwDev(TiXmlElement *elem);50 HWDeviceRegistration *hwDev; 50 51 }; 51 52 -
ossiedev/branches/mcarrick/ossie/include/ossie/DevicePkgRef.h
r8716 r8722 15 15 ~DevicePkgRef(); 16 16 17 std::string get DevPkgRefType();18 std::string get DevPkgRefLocalFile();17 std::string getType(); 18 std::string getLocalFile(); 19 19 20 20 protected: -
ossiedev/branches/mcarrick/ossie/include/ossie/HWDeviceRegistration.h
r8717 r8722 4 4 #include "ossie/ossieparser.h" 5 5 6 #include " ossie/PropertyFile.h"7 #include " ossie/DeviceClass.h"8 #include " ossie/DevicePkgRef.h"6 #include "PropertyFile.h" 7 #include "DeviceClass.h" 8 #include "DevicePkgRef.h" 9 9 10 10 #include <string> … … 16 16 class ChildHWDevice; 17 17 18 class OSSIEPARSER_API HWDeviceRegistration :public PropertyFile, public DeviceClass18 class OSSIEPARSER_API HWDeviceRegistration 19 19 { 20 20 public: … … 22 22 ~HWDeviceRegistration(); 23 23 24 std::string get HWDevRegID();25 std::string get HWDevRegVersion();26 std::string get HWDevRegName();27 std::string get HWDevRegDescription();28 std::string get HWDevRegManufacturer();29 std::string get HWDevRegModelNumber();24 std::string getID(); 25 std::string getVersion(); 26 std::string getName(); 27 std::string getDescription(); 28 std::string getManufacturer(); 29 std::string getModelNumber(); 30 30 31 31 std::vector <ChildHWDevice*> getChildHWDevice(); 32 PropertyFile* getPropertyFile(); 33 DeviceClass* getDeviceClass(); 32 34 33 35 protected: … … 47 49 HWDeviceRegistration(const HWDeviceRegistration& aHWDeviceRegistration); // no copying 48 50 49 std::vector <ChildHWDevice*> childHWDevices;50 51 51 std::string id; 52 52 std::string version; … … 55 55 std::string manufacturer; 56 56 std::string modelnumber; 57 58 std::vector <ChildHWDevice*> childHWDevices; 59 PropertyFile *propFile; 60 DeviceClass *devClass; 57 61 }; 58 62 59 class OSSIEPARSER_API ChildHWDevice :public DevicePkgRef63 class OSSIEPARSER_API ChildHWDevice 60 64 { 61 65 public: … … 64 68 65 69 HWDeviceRegistration* getHWDeviceRegistration(); 70 DevicePkgRef* getDevicePkgRef(); 66 71 67 72 private: … … 70 75 71 76 HWDeviceRegistration *hwDeviceReg; 77 DevicePkgRef *devPkgRef; 72 78 }; 73 79 -
ossiedev/branches/mcarrick/ossie/include/ossie/PropertyFile.h
r8716 r8722 14 14 PropertyFile(TiXmlElement *elem); 15 15 ~PropertyFile(); 16 std::string get PropFileType();17 std::string get PropFileLocalFile();16 std::string getType(); 17 std::string getLocalFile(); 18 18 19 19 protected: -
ossiedev/branches/mcarrick/ossie/parser/DPDParser.cpp
r8720 r8722 1 1 #include "ossie/DPDParser.h" 2 2 3 DPDParser::DPDParser(TiXmlElement *elem) :DevicePkg(elem)3 DPDParser::DPDParser(TiXmlElement *elem) 4 4 { 5 devPkg = new DevicePkg(elem); 5 6 } 6 7 7 8 DPDParser::~DPDParser() 8 9 { 10 delete devPkg; 9 11 } 10 12 13 DevicePkg* DPDParser::getDevicePkg() 14 { 15 return devPkg; 16 } 17 -
ossiedev/branches/mcarrick/ossie/parser/DeviceClass.cpp
r8716 r8722 2 2 3 3 #include <iostream> 4 4 5 5 6 DeviceClass::DeviceClass(TiXmlElement *elem) … … 34 35 } 35 36 36 std::vector <std::string> DeviceClass::get DeviceClass()37 std::vector <std::string> DeviceClass::getClass() 37 38 { 38 39 return deviceClass; -
ossiedev/branches/mcarrick/ossie/parser/DevicePkg.cpp
r8716 r8722 3 3 #include <iostream> 4 4 5 DevicePkg::DevicePkg(TiXmlElement *elem):HWDeviceRegistration(elem->FirstChildElement("hwdeviceregistration")) 5 6 DevicePkg::DevicePkg(TiXmlElement *elem) 6 7 { 7 8 parseElement(elem); // parse elements within devicepkg 9 hwDev = new HWDeviceRegistration(elem->FirstChildElement("hwdeviceregistration")); 8 10 } 9 11 10 12 DevicePkg::~DevicePkg() 11 13 { 14 delete hwDev; 12 15 } 13 16 … … 117 120 } 118 121 119 std::string DevicePkg::get DevPkgID()122 std::string DevicePkg::getID() 120 123 { 121 124 return id; 122 125 } 123 126 124 std::string DevicePkg::get DevPkgName()127 std::string DevicePkg::getName() 125 128 { 126 129 return name; 127 130 } 128 131 129 std::string DevicePkg::get DevPkgVersion()132 std::string DevicePkg::getVersion() 130 133 { 131 134 return version; 132 135 } 133 136 134 std::string DevicePkg::get DevPkgTitle()137 std::string DevicePkg::getTitle() 135 138 { 136 139 return title; 137 140 } 138 141 139 std::string DevicePkg::get DevPkgAuthor()142 std::string DevicePkg::getAuthor() 140 143 { 141 144 return author; 142 145 } 143 146 144 std::string DevicePkg::getDe vPkgDescription()147 std::string DevicePkg::getDescription() 145 148 { 146 149 return description; 147 150 } 148 151 152 HWDeviceRegistration* DevicePkg::getHWDeviceRegistration() 153 { 154 return hwDev; 155 } -
ossiedev/branches/mcarrick/ossie/parser/DevicePkgRef.cpp
r8716 r8722 2 2 3 3 #include <iostream> 4 4 5 5 6 DevicePkgRef::DevicePkgRef(TiXmlElement *elem) … … 48 49 } 49 50 50 std::string DevicePkgRef::get DevPkgRefType()51 std::string DevicePkgRef::getType() 51 52 { 52 53 return type; 53 54 } 54 55 55 std::string DevicePkgRef::get DevPkgRefLocalFile()56 std::string DevicePkgRef::getLocalFile() 56 57 { 57 58 return localfile; -
ossiedev/branches/mcarrick/ossie/parser/HWDeviceRegistration.cpp
r8718 r8722 3 3 #include <iostream> 4 4 5 HWDeviceRegistration::HWDeviceRegistration(TiXmlElement *elem):PropertyFile(elem->FirstChildElement("propertyfile")), 6 DeviceClass(elem->FirstChildElement("deviceclass"))5 6 HWDeviceRegistration::HWDeviceRegistration(TiXmlElement *elem) 7 7 { 8 8 parseElement(elem); // parse tags in hwdeviceregistration, with exception of propertyfile, deviceclass, childhwdevice 9 10 propFile = new PropertyFile(elem->FirstChildElement("propertyfile")); 11 devClass = new DeviceClass(elem->FirstChildElement("deviceclass")); 12 9 13 constructChildHWDevice(elem->FirstChildElement("childhwdevice")); 10 14 } … … 12 16 HWDeviceRegistration::~HWDeviceRegistration() 13 17 { 14 for (int i = 0; i < childHWDevices.size(); i++)18 for (int i =0; i < childHWDevices.size(); i++) 15 19 { 16 20 delete childHWDevices[i]; 17 } 21 childHWDevices[i] = NULL; 22 } 23 24 delete propFile; 25 propFile = NULL; 26 delete devClass; 27 devClass = NULL; 28 18 29 } 19 30 … … 142 153 } 143 154 144 ChildHWDevice::ChildHWDevice(TiXmlElement *elem) :DevicePkgRef(elem->FirstChildElement("devicepkgref"))155 ChildHWDevice::ChildHWDevice(TiXmlElement *elem) 145 156 { 146 157 hwDeviceReg = new HWDeviceRegistration(elem->FirstChildElement("hwdeviceregistration")); 158 devPkgRef = new DevicePkgRef(elem->FirstChildElement("devicepkgref")); 147 159 } 148 160 … … 157 169 } 158 170 159 std::string HWDeviceRegistration::getHWDevRegID() 171 PropertyFile* HWDeviceRegistration::getPropertyFile() 172 { 173 return propFile; 174 } 175 176 DeviceClass* HWDeviceRegistration::getDeviceClass() 177 { 178 return devClass; 179 } 180 181 std::string HWDeviceRegistration::getID() 160 182 { 161 183 return id; 162 184 } 163 185 164 std::string HWDeviceRegistration::get HWDevRegVersion()186 std::string HWDeviceRegistration::getVersion() 165 187 { 166 188 return version; 167 189 } 168 190 169 std::string HWDeviceRegistration::get HWDevRegName()191 std::string HWDeviceRegistration::getName() 170 192 { 171 193 return name; 172 194 } 173 195 174 std::string HWDeviceRegistration::get HWDevRegDescription()196 std::string HWDeviceRegistration::getDescription() 175 197 { 176 198 return description; 177 199 } 178 200 179 std::string HWDeviceRegistration::get HWDevRegManufacturer()201 std::string HWDeviceRegistration::getManufacturer() 180 202 { 181 203 return manufacturer; 182 204 } 183 205 184 std::string HWDeviceRegistration::get HWDevRegModelNumber()206 std::string HWDeviceRegistration::getModelNumber() 185 207 { 186 208 return modelnumber; … … 192 214 } 193 215 194 195 196 197 216 DevicePkgRef* ChildHWDevice::getDevicePkgRef() 217 { 218 return devPkgRef; 219 } 220 221 222 -
ossiedev/branches/mcarrick/ossie/parser/PropertyFile.cpp
r8716 r8722 48 48 } 49 49 50 std::string PropertyFile::get PropFileType()50 std::string PropertyFile::getType() 51 51 { 52 52 return type; 53 53 } 54 54 55 std::string PropertyFile::get PropFileLocalFile()55 std::string PropertyFile::getLocalFile() 56 56 { 57 57 return localfile;