Changeset 8781

Show
Ignore:
Timestamp:
02/25/09 15:10:51 (4 years ago)
Author:
mcarrick
Message:

reformatting debugging calls

Location:
ossiedev/trunk/system/ossie/parser
Files:
5 modified

Legend:

Unmodified
Added
Removed
  • ossiedev/trunk/system/ossie/parser/DeviceClass.cpp

    r8751 r8781  
    3939void DeviceClass::parseElement(TiXmlElement *elem) 
    4040{ 
     41        DEBUG(4, DeviceClass, "in parseElement"); 
     42 
    4143        TiXmlElement *classType = elem->FirstChildElement("class"); // set link to class tags 
    4244         
  • ossiedev/trunk/system/ossie/parser/DevicePkg.cpp

    r8751 r8781  
    5959void DevicePkg::parseAttributeID(TiXmlElement *elem) 
    6060{ 
     61        DEBUG(4, DevicePkg, "in parseAttributeID"); 
     62 
    6163        if (elem->Attribute("id")) 
    6264        { 
    63                 DEBUG(4, DevicePkg, "Found ID attribute"); 
    6465                id = elem->Attribute("id"); 
    6566        } 
     
    7374void DevicePkg::parseAttributeName(TiXmlElement *elem) 
    7475{ 
     76        DEBUG(4, DevicePkg, "in parseAttributeName"); 
     77 
    7578        if (elem->Attribute("name")) 
    7679        { 
    77                 DEBUG(4, DevicePkg, "Found NAME attribute"); 
    7880                name = elem->Attribute("name"); 
    7981        } 
     
    8789void DevicePkg::parseAttributeVersion(TiXmlElement *elem) 
    8890{ 
     91        DEBUG(4, DevicePkg, "in parseAttributeVersion"); 
     92 
    8993        if (elem->Attribute("version")) 
    9094        { 
    91                 DEBUG(4, DevicePkg, "Found VERSION attribute"); 
    9295                version = elem->Attribute("version"); 
    9396        } 
     
    108111void DevicePkg::parseAuthor(TiXmlElement *elem) 
    109112{ 
     113        DEBUG(4, DevicePkg, "in parseAuthor"); 
     114 
    110115        TiXmlElement *auth = elem->FirstChildElement("author"); 
    111116        if (auth) 
    112117        { 
    113                 DEBUG(4, DevicePkg, "Found author"); 
    114118                author = auth->GetText(); 
    115119        } 
     
    123127void DevicePkg::parseTitle(TiXmlElement *elem) 
    124128{ 
     129        DEBUG(4, DevicePkg, "in parseTitle"); 
     130 
    125131        TiXmlElement *titleElem = elem->FirstChildElement("title"); 
    126132        if (titleElem) 
    127133        { 
    128                 DEBUG(4, DevicePkg, "Found title"); 
    129134                title = titleElem->GetText(); 
    130135        } 
     
    138143void DevicePkg::parseDescription(TiXmlElement *elem) 
    139144{ 
     145        DEBUG(4, DevicePkg, "in parseDescription"); 
     146 
    140147        TiXmlElement *descrip = elem->FirstChildElement("description"); 
    141148        if (descrip) 
    142149        { 
    143                 DEBUG(4, DevicePkg, "Found description"); 
    144150                description = descrip->GetText(); 
    145151        } 
  • ossiedev/trunk/system/ossie/parser/DevicePkgRef.cpp

    r8751 r8781  
    4848void DevicePkgRef::parseAttributes(TiXmlElement *elem) 
    4949{ 
     50        DEBUG(4, DevicePkgRef, "in parseAttributes"); 
     51 
    5052        if (elem->Attribute("type")) 
    5153        { 
    52                 DEBUG(4, DevicePkgRef, "Found type attribute"); 
    5354                type = elem->Attribute("type"); 
    5455        } 
     
    6263void DevicePkgRef::parseChildElements(TiXmlElement *elem) 
    6364{ 
     65        DEBUG(4, DevicePkgRef, "in parseChildElements"); 
     66 
    6467        TiXmlElement *local = elem->FirstChildElement("localfile"); 
    6568        if (local) 
    6669        { 
    67                 DEBUG(4, DevicePkgRef, "Found localfile name"); 
    6870                localfile = local->Attribute("name"); 
    6971        } 
  • ossiedev/trunk/system/ossie/parser/HWDeviceRegistration.cpp

    r8751 r8781  
    2929HWDeviceRegistration::HWDeviceRegistration(TiXmlElement *elem) 
    3030{ 
     31        DEBUG(4, HWDeviceRegistration, "in constructor."); 
     32 
    3133        parseElement(elem); // parse tags in hwdeviceregistration, with exception of propertyfile, deviceclass, childhwdevice 
    3234 
     
    5456void HWDeviceRegistration::constructChildHWDevice(TiXmlElement *elem) 
    5557{ 
     58        DEBUG(4, HWDeviceRegistration, "in constructChildHWDevice"); 
     59 
    5660        // parse childhwdevice tag(s) 
    5761        for (; elem; elem=elem->NextSiblingElement("childhwdevice")) 
     
    6973void HWDeviceRegistration::parseElement(TiXmlElement *elem) 
    7074{ 
     75        DEBUG(4, HWDeviceRegistration, "in parseElement"); 
     76 
    7177        // pull info from hwdeviceregistration tag 
    7278        parseAttributes(elem); 
     
    7884void HWDeviceRegistration::parseAttributes(TiXmlElement *elem) 
    7985{ 
     86        DEBUG(4, HWDeviceRegistration, "in parseAttributes"); 
     87 
    8088        parseAttributeID(elem); 
    8189        parseAttributeVersion(elem); 
     
    8593void HWDeviceRegistration::parseAttributeID(TiXmlElement *elem) 
    8694{ 
     95        DEBUG(4, HWDeviceRegistration, "in parseAttributeID"); 
     96 
    8797        // verify attribute exists to prevent seg fault 
    8898        if (elem->Attribute("id")) 
     
    99109void HWDeviceRegistration::parseAttributeVersion(TiXmlElement *elem) 
    100110{ 
     111        DEBUG(4, HWDeviceRegistration, "in parseAttributeVersion"); 
     112 
    101113        // verify attribute exists to prevent seg fault 
    102114        if (elem->Attribute("version")) 
     
    113125void HWDeviceRegistration::parseAttributeName(TiXmlElement *elem) 
    114126{ 
     127        DEBUG(4, HWDeviceRegistration, "in parseAttributeName"); 
     128 
    115129        // verify attribute exists to prevent seg fault 
    116130        if (elem->Attribute("name")) 
     
    127141void HWDeviceRegistration::parseChildElements(TiXmlElement *elem) 
    128142{ 
     143        DEBUG(4, HWDeviceRegistration, "in parseChildElements"); 
     144 
    129145        parseDescription(elem); 
    130146        parseManufacturer(elem); 
     
    134150void HWDeviceRegistration::parseDescription(TiXmlElement *elem) 
    135151{ 
     152        DEBUG(4, HWDeviceRegistration, "in parseDescription"); 
     153 
    136154        TiXmlElement *descrip = elem->FirstChildElement("description"); 
    137155        if (descrip) 
     
    148166void HWDeviceRegistration::parseManufacturer(TiXmlElement *elem) 
    149167{ 
     168        DEBUG(4, HWDeviceRegistration, "in parseManufacturer"); 
     169 
    150170        TiXmlElement *manufac = elem->FirstChildElement("manufacturer"); 
    151171        if (manufac) 
     
    162182void HWDeviceRegistration::parseModelNumber(TiXmlElement *elem) 
    163183{ 
     184        DEBUG(4, HWDeviceRegistration, "in parseModelNumber"); 
     185 
    164186        TiXmlElement *modNum = elem->FirstChildElement("modelnumber"); 
    165187        if (modNum) 
     
    176198ChildHWDevice::ChildHWDevice(TiXmlElement *elem) 
    177199{ 
     200        DEBUG(4, ChildHWDevice, "in constructor."); 
     201 
    178202        hwDeviceReg = new HWDeviceRegistration(elem->FirstChildElement("hwdeviceregistration")); 
    179203        devPkgRef = new DevicePkgRef(elem->FirstChildElement("devicepkgref")); 
  • ossiedev/trunk/system/ossie/parser/PropertyFile.cpp

    r8751 r8781  
    4747void PropertyFile::parseAttributes(TiXmlElement *elem) 
    4848{ 
     49        DEBUG(4, PropertyFile, "in parseAttributes"); 
     50 
    4951        // verify attribute exists before parsing to prevent seg fault 
    5052        if (elem->Attribute("type")) 
    5153        { 
    52                 DEBUG(4, PropertyFile, "Found TYPE attribute"); 
    5354                type = elem->Attribute("type"); 
    5455        } 
     
    6263void PropertyFile::parseChildElements(TiXmlElement *elem) 
    6364{ 
     65        DEBUG(4, PropertyFile, "in parseChildElements"); 
     66 
    6467        TiXmlElement *local = elem->FirstChildElement("localfile"); 
    6568        if (local) 
    6669        { 
    67                 DEBUG(4, PropertyFile, "Found localfile name"); 
    6870                localfile = local->Attribute("name"); 
    6971        }