Changeset 8332 in orxonox.OLD for trunk/src/lib/util
- Timestamp:
- Jun 12, 2006, 10:51:14 PM (19 years ago)
- Location:
- trunk/src/lib/util/filesys
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/util/filesys/directory.cc
r8330 r8332 57 57 this->_opened = false; 58 58 } 59 60 /** 61 * @brief construct a Copy of directory. 62 * @param directory the Directory to copy. 63 */ 64 Directory::Directory(const Directory& directory) 65 : File(directory) 66 { 67 this->_opened = directory._opened; 68 this->_fileNames = directory._fileNames; 69 } 70 59 71 60 72 /** -
trunk/src/lib/util/filesys/directory.h
r8330 r8332 33 33 public: 34 34 Directory(const std::string& directoryName = ""); 35 Directory(const Directory& directory); 35 36 ~Directory(); 36 37 -
trunk/src/lib/util/filesys/file.h
r8330 r8332 29 29 File(const File& file); 30 30 virtual ~File(); 31 32 /// Set-Up 31 33 void setFileName(const std::string& fileName); 32 34 File& operator=(const std::string& fileName); 33 35 File& operator=(const File& file); 36 37 /// Comparison 34 38 bool operator==(const std::string& fileName) const; 35 39 bool operator==(const File& file) const; … … 42 46 const std::string& name() const { return this->_name; }; 43 47 48 /// Testing 44 49 bool exists() const; 45 50 bool isLink() const; 46 bool isFile() const 51 bool isFile() const; 47 52 bool isDirectory() const; 48 53 bool isReadeable() const; … … 51 56 52 57 58 /// Operate on the FileSystem 53 59 bool copy(const File& destination); 54 60 bool rename(const File& destination); … … 56 62 bool remove(); 57 63 64 /// Transformations 58 65 static void relToAbs(std::string& relFileName); 59 66 static void absToRel(std::string& absFileName);
Note: See TracChangeset
for help on using the changeset viewer.