Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 8332 in orxonox.OLD for trunk/src/lib/util


Ignore:
Timestamp:
Jun 12, 2006, 10:51:14 PM (19 years ago)
Author:
bensch
Message:

trunk: some more functionality

Location:
trunk/src/lib/util/filesys
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/util/filesys/directory.cc

    r8330 r8332  
    5757  this->_opened = false;
    5858}
     59
     60/**
     61 * @brief construct a Copy of directory.
     62 * @param directory the Directory to copy.
     63 */
     64Directory::Directory(const Directory& directory)
     65  : File(directory)
     66{
     67  this->_opened = directory._opened;
     68  this->_fileNames = directory._fileNames;
     69}
     70
    5971
    6072/**
  • trunk/src/lib/util/filesys/directory.h

    r8330 r8332  
    3333public:
    3434  Directory(const std::string& directoryName = "");
     35  Directory(const Directory& directory);
    3536  ~Directory();
    3637
  • trunk/src/lib/util/filesys/file.h

    r8330 r8332  
    2929  File(const File& file);
    3030  virtual ~File();
     31
     32  /// Set-Up
    3133  void setFileName(const std::string& fileName);
    3234  File& operator=(const std::string& fileName);
    3335  File& operator=(const File& file);
     36
     37  /// Comparison
    3438  bool operator==(const std::string& fileName) const;
    3539  bool operator==(const File& file) const;
     
    4246  const std::string& name() const { return this->_name; };
    4347
     48  /// Testing
    4449  bool exists() const;
    4550  bool isLink() const;
    46   bool isFile() const ;
     51  bool isFile() const;
    4752  bool isDirectory() const;
    4853  bool isReadeable() const;
     
    5156
    5257
     58  /// Operate on the FileSystem
    5359  bool copy(const File& destination);
    5460  bool rename(const File& destination);
     
    5662  bool remove();
    5763
     64  /// Transformations
    5865  static void relToAbs(std::string& relFileName);
    5966  static void absToRel(std::string& absFileName);
Note: See TracChangeset for help on using the changeset viewer.