Changeset 8714

Show
Ignore:
Timestamp:
02/17/09 15:13:06 (4 years ago)
Author:
mcarrick
Message:

improved testing

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • ossiedev/branches/mcarrick/DPD/testApp.cpp

    r8709 r8714  
    2929 
    3030 
    31                 // print xml tags ... 
    32                 std::cout << "******************************" << std::endl; 
    33                 std::cout << "DevicePkg: " << std::endl; 
    34                 std::cout << "<devicepkg id=" << parse.getDevPkgID() << " version=" << parse.getDevPkgVersion() << " name=" << parse.getDevPkgName() << ">" << std::endl; 
    35                 std::cout << "  <title>" << parse.getDevPkgTitle() << "</title>" << std::endl; 
     31                std::cout << std::endl << std::endl; 
     32                std::cout << "<devpkg id=" << parse.getDevPkgID() << " version=" << parse.getDevPkgVersion(); 
     33                        std::cout << " name=" << parse.getDevPkgName() << ">" << std::endl; 
    3634                std::cout << "  <author>" << parse.getDevPkgAuthor() << "</author>" << std::endl; 
    3735                std::cout << "  <description>" << parse.getDevPkgDescription() << "</description>" << std::endl; 
     36                std::cout << "  <title>" << parse.getDevPkgTitle() << "</title>" << std::endl; 
    3837                std::cout << "  <hwdeviceregistration id=" << parse.getHWDevRegID() << " version=" << parse.getHWDevRegVersion(); 
    3938                        std::cout << " name=" << parse.getHWDevRegName() << ">" << std::endl; 
     39 
    4040                std::cout << "          <propertyfile type=" << parse.getPropFileType() << ">" << std::endl; 
    4141                std::cout << "                  <localfile name=" << parse.getPropFileLocalFile() << "/>" << std::endl; 
     
    5454                { 
    5555                std::cout << "          <childhwdevice>" << std::endl; 
    56                 std::cout << "                  <hwdeviceregistration id=" << parse.getChildHWDevice()[i]  << std::endl; 
    57                 std::cout << "          </childhwdevice>" << std::endl; 
     56                std::cout << "                  <hwdeviceregistration id=" << parse.getChildHWDevice()[i]->getHWDeviceRegistration()->getHWDevRegID(); 
     57                        std::cout << " version=" << parse.getChildHWDevice()[i]->getHWDeviceRegistration()->getHWDevRegVersion(); 
     58                        std::cout << " name=" << parse.getChildHWDevice()[i]->getHWDeviceRegistration()->getHWDevRegName() << ">" << std::endl; 
     59                std::cout << "                          <propertyfile type=" << parse.getChildHWDevice()[i]->getHWDeviceRegistration()->getPropFileType(); 
     60                        std::cout << ">" << std::endl; 
     61                std::cout << "                                  <localfile name=" << parse.getChildHWDevice()[i]->getHWDeviceRegistration()->getPropFileLocalFile(); 
     62                        std::cout << "/>" << std::endl; 
     63                std::cout << "                          </propertyfile>" << std::endl; 
     64 
     65                std::cout << "                          <description>" << parse.getChildHWDevice()[i]->getHWDeviceRegistration()->getHWDevRegDescription(); 
     66                        std::cout << "</descripton>" << std::endl; 
     67                std::cout << "                          <manufacturer>" << parse.getChildHWDevice()[i]->getHWDeviceRegistration()->getHWDevRegManufacturer(); 
     68                        std::cout << "</manufacturer>" << std::endl; 
     69                std::cout << "                          <modelnumber>" << parse.getChildHWDevice()[i]->getHWDeviceRegistration()->getHWDevRegModelNumber(); 
     70                        std::cout << "</modelnumber>" << std::endl; 
     71                std::cout << "                          <deviceclass>" << std::endl; 
     72                for (int k = 0; k < parse.getChildHWDevice()[i]->getHWDeviceRegistration()->getDeviceClass().size(); k++) 
     73                { 
     74                std::cout << "                                  <class>" << parse.getChildHWDevice()[i]->getHWDeviceRegistration()->getDeviceClass()[k]; 
     75                        std::cout << "</class>" << std::endl; 
     76                } 
     77                std::cout << "                          </deviceclass>" << std::endl; 
     78 
     79 
     80                for (int j = 0; j < parse.getChildHWDevice()[i]->getHWDeviceRegistration()->getChildHWDevice().size(); j++) 
     81                { 
     82                std::cout << "                          <childhwdevice>" << std::endl; 
     83                std::cout << "                                  <hwdeviceregistration id="; 
     84                        std::cout << parse.getChildHWDevice()[i]->getHWDeviceRegistration()->getChildHWDevice()[j]->getHWDeviceRegistration()->getHWDevRegID(); 
     85                        std::cout << " version="; 
     86                        std::cout << parse.getChildHWDevice()[i]->getHWDeviceRegistration()->getChildHWDevice()[j]->getHWDeviceRegistration()->getHWDevRegVersion(); 
     87                        std::cout << " name="; 
     88                        std::cout << parse.getChildHWDevice()[i]->getHWDeviceRegistration()->getChildHWDevice()[j]->getHWDeviceRegistration()->getHWDevRegName(); 
     89                        std::cout << ">" << std::endl; 
     90                        std::cout << "                                  ..." << std::endl; 
     91                std::cout << "                                  </hwdeviceregistration>" << std::endl; 
     92                std::cout << "                          </childhwdevice>" << std::endl; 
     93                } 
     94 
    5895                } 
    5996                std::cout << "  </hwdeviceregistration>" << std::endl; 
     97                std::cout << "</devpkg>" << std::endl; 
    6098 
    61  
    62  
    63                 std::cout << "</devicepkg>" << std::endl; 
    6499        } 
    65100        else 
     
    72107 
    73108 
    74  
    75  
    76