Changeset 7626 in orxonox.OLD for branches/qt_gui/src/lib/parser/ini_parser
- Timestamp:
- May 16, 2006, 9:40:56 AM (19 years ago)
- Location:
- branches/qt_gui/src/lib/parser/ini_parser
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/qt_gui/src/lib/parser/ini_parser/ini_parser.cc
r7256 r7626 108 108 if( (stream = fopen (fileName.c_str(), "r")) == NULL) 109 109 { 110 PRINTF(1)("IniParser could not open %s \n", fileName.c_str());110 PRINTF(1)("IniParser could not open %s for reading\n", fileName.c_str()); 111 111 return false; 112 112 } … … 216 216 if( (stream = fopen (fileName.c_str(), "w")) == NULL) 217 217 { 218 PRINTF(1)("IniParser could not open %s \n", fileName.c_str());218 PRINTF(1)("IniParser could not open %s for writing\n", fileName.c_str()); 219 219 return false; 220 220 } -
branches/qt_gui/src/lib/parser/ini_parser/ini_parser.h
r7625 r7626 44 44 45 45 /** @returns true if the file is opened, false otherwise*/ 46 bool isOpen() const { return (!this->fileName.empty())? true : false; };46 bool isOpen() const { return true; } ///HACK //(this->fileName.empty()) ? false : true; }; 47 47 /** @returns the fileName we have opened. */ 48 48 const std::string& getFileName() const { return this->fileName; };
Note: See TracChangeset
for help on using the changeset viewer.