Changeset 9823 in orxonox.OLD for branches/new_class_id/src/lib/util/filesys
- Timestamp:
- Sep 25, 2006, 11:28:28 PM (18 years ago)
- Location:
- branches/new_class_id/src/lib/util/filesys
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/new_class_id/src/lib/util/filesys/directory.cc
r9785 r9823 215 215 File operator+(const Directory& dir, const File& file) 216 216 { 217 return File(dir.name() + '/'+ file.name());218 } 217 return File(dir.name() + Directory::delimiter + file.name()); 218 } -
branches/new_class_id/src/lib/util/filesys/directory.h
r9785 r9823 65 65 const std::string& operator[](unsigned int fileNumber) const { return this->_fileNames[fileNumber]; }; 66 66 /** @returns a formated string containing the FileName, prepended with the directory-Name */ 67 std::string fileNameInDir(unsigned int fileNumber) const { return this->name() + "/"+ _fileNames[fileNumber]; };67 std::string fileNameInDir(unsigned int fileNumber) const { return this->name() + Directory::delimiter + _fileNames[fileNumber]; }; 68 68 /** @returns a File pointing to the File @param fileNumber the fileNumber (must not bigger than fileCount()) */ 69 69 File getFile(unsigned int fileNumber) const { return File(fileNameInDir(fileNumber)); };
Note: See TracChangeset
for help on using the changeset viewer.