Changeset 10243 in orxonox.OLD for branches/mount_points/src/lib/graphics/importer/oif/object_information_file.cc
- Timestamp:
- Jan 17, 2007, 12:26:26 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/mount_points/src/lib/graphics/importer/oif/object_information_file.cc
r10242 r10243 30 30 OIFData::OIFData() 31 31 { 32 PRINTF(0)("OIFDATA NEW (default)\n"); 32 33 this->_root = NULL; 33 34 } … … 40 41 OIFData::OIFData(const std::string& fileName) 41 42 { 42 this->_root = NULL; 43 43 PRINTF(0)("OIFDATA NEW\n"); 44 44 this->load(fileName); 45 45 } … … 52 52 void OIFData::load(const std::string& fileName) 53 53 { 54 PRINTF(0)("loading |%s| as oif data\n", fileName.c_str()); 54 this->_root = NULL; 55 55 56 if( fileName.empty()) 56 57 { 57 PRINTF( 0)("No filename specified for object information loading");58 PRINTF(3)("No filename specified for object information loading"); 58 59 return; 59 60 } … … 64 65 { 65 66 // 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()); 67 68 return; 68 69 } … … 72 73 assert( this->_root != NULL); 73 74 75 PRINTF(0)("%s\n\n\n", this->_root->Value()); 74 76 if( strcmp( this->_root->Value(), "ObjectInformationFile")) 75 77 { 76 78 // 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"); 78 80 return; 79 81 } 80 PRINTF(0)("OIF loaded\n");81 82 82 } 83 83
Note: See TracChangeset
for help on using the changeset viewer.