Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jan 17, 2007, 12:26:26 AM (17 years ago)
Author:
patrick
Message:

still on this resource thingy

File:
1 edited

Legend:

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

    r10242 r10243  
    3030OIFData::OIFData()
    3131{
     32  PRINTF(0)("OIFDATA NEW (default)\n");
    3233  this->_root = NULL;
    3334}
     
    4041OIFData::OIFData(const std::string& fileName)
    4142{
    42   this->_root = NULL;
    43 
     43  PRINTF(0)("OIFDATA NEW\n");
    4444  this->load(fileName);
    4545}
     
    5252void OIFData::load(const std::string& fileName)
    5353{
    54   PRINTF(0)("loading |%s| as oif data\n", fileName.c_str());
     54  this->_root = NULL;
     55
    5556  if( fileName.empty())
    5657  {
    57     PRINTF(0)("No filename specified for object information loading");
     58    PRINTF(3)("No filename specified for object information loading");
    5859    return;
    5960  }
     
    6465  {
    6566    // report an error
    66     PRINTF(0)("Could not load XML File %s: %s @ %d:%d\n", fileName.c_str(), XMLDoc.ErrorDesc(), XMLDoc.ErrorRow(), XMLDoc.ErrorCol());
     67    PRINTF(3)("Could not load XML File %s: %s @ %d:%d\n", fileName.c_str(), XMLDoc.ErrorDesc(), XMLDoc.ErrorRow(), XMLDoc.ErrorCol());
    6768    return;
    6869  }
     
    7273  assert( this->_root != NULL);
    7374
     75  PRINTF(0)("%s\n\n\n", this->_root->Value());
    7476  if( strcmp( this->_root->Value(), "ObjectInformationFile"))
    7577  {
    7678    // report an error
    77     PRINTF(0)("Specified XML File is not an orxonox object information file (<ObjectInformationFile> element missing)\n");
     79    PRINTF(3)("Specified XML File is not an orxonox object information file (<ObjectInformationFile> element missing)\n");
    7880    return;
    7981  }
    80   PRINTF(0)("OIF loaded\n");
    81 
    8282}
    8383
Note: See TracChangeset for help on using the changeset viewer.