|
Revision 8699, 0.9 KB
(checked in by mcarrick, 4 years ago)
|
|
reducing ambiguity in member functions, cleaning up calls
|
| Line | |
|---|
| 1 | #ifndef DEVICEPKG_H |
|---|
| 2 | #define DEVICEPKG_H |
|---|
| 3 | |
|---|
| 4 | //#include "ossie/ossieparser.h" |
|---|
| 5 | |
|---|
| 6 | #include <string> |
|---|
| 7 | #include <vector> |
|---|
| 8 | |
|---|
| 9 | #include "HWDeviceRegistration.h" |
|---|
| 10 | |
|---|
| 11 | #include "include/tinyxml.h" |
|---|
| 12 | |
|---|
| 13 | //class OSSIEPARSER_API DevicePkg |
|---|
| 14 | class DevicePkg:public HWDeviceRegistration |
|---|
| 15 | { |
|---|
| 16 | public: |
|---|
| 17 | DevicePkg(TiXmlElement *elem); |
|---|
| 18 | ~DevicePkg(); |
|---|
| 19 | |
|---|
| 20 | std::string getDevPkgID(); |
|---|
| 21 | std::string getDevPkgName(); |
|---|
| 22 | std::string getDevPkgVersion(); |
|---|
| 23 | |
|---|
| 24 | std::string getDevPkgTitle(); |
|---|
| 25 | std::string getDevPkgAuthor(); |
|---|
| 26 | std::string getDevPkgDescription(); |
|---|
| 27 | |
|---|
| 28 | protected: |
|---|
| 29 | void parseElement(TiXmlElement *elem); |
|---|
| 30 | void parseAttributes(TiXmlElement *elem); |
|---|
| 31 | void parseChildElements(TiXmlElement *elem); |
|---|
| 32 | |
|---|
| 33 | private: |
|---|
| 34 | DevicePkg(); // no default constructor |
|---|
| 35 | DevicePkg(const DevicePkg& aDevicePkg); // no copying |
|---|
| 36 | |
|---|
| 37 | std::string id; |
|---|
| 38 | std::string name; |
|---|
| 39 | std::string version; |
|---|
| 40 | |
|---|
| 41 | std::string title; |
|---|
| 42 | std::string author; |
|---|
| 43 | std::string description; |
|---|
| 44 | |
|---|
| 45 | HWDeviceRegistration hwDev(TiXmlElement *elem); |
|---|
| 46 | }; |
|---|
| 47 | |
|---|
| 48 | #endif |
|---|
| 49 | |
|---|
| 50 | |
|---|