Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 10240 in orxonox.OLD


Ignore:
Timestamp:
Jan 16, 2007, 11:04:11 PM (17 years ago)
Author:
patrick
Message:

not checkinf for invalid xml files. runs again

Location:
branches/mount_points/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/mount_points/src/lib/graphics/importer/oif/object_information_file.cc

    r10239 r10240  
    2929 */
    3030OIFData::OIFData()
    31 {}
     31{
     32  this->_root = NULL;
     33}
    3234
    3335
     
    3840OIFData::OIFData(const std::string& fileName)
    3941{
     42  this->_root = NULL;
     43
    4044  this->load(fileName);
    4145}
     
    4852void OIFData::load(const std::string& fileName)
    4953{
    50   //
     54  PRINTF(0)("loading %s as oif data\n", fileName.c_str());
    5155    if( fileName.empty())
    5256  {
     
    6064  {
    6165    // report an error
    62     PRINTF(3)("Could not load XML File %s: %s @ %d:%d\n", fileName.c_str(), XMLDoc.ErrorDesc(), XMLDoc.ErrorRow(), XMLDoc.ErrorCol());
     66    PRINTF(1)("Could not load XML File %s: %s @ %d:%d\n", fileName.c_str(), XMLDoc.ErrorDesc(), XMLDoc.ErrorRow(), XMLDoc.ErrorCol());
    6367    return;
    6468  }
  • branches/mount_points/src/world_entities/mount_point.cc

    r10239 r10240  
    7070void MountPoint::initMountPoint(const TiXmlElement* root)
    7171{
     72  if( root == NULL)
     73  {
     74    PRINTF(1)("MountPoint - initialization failed, since I got no valid xml element\n");
     75    return;
     76  }
     77  // now get the first element
    7278  const TiXmlElement* element = root->FirstChildElement("MountPoints");
    7379  if( element == NULL)
Note: See TracChangeset for help on using the changeset viewer.