Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7623 in orxonox.OLD for branches/qt_gui/src/lib


Ignore:
Timestamp:
May 15, 2006, 6:46:33 PM (19 years ago)
Author:
bensch
Message:

qt_gui: minor more implementations

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/qt_gui/src/lib/util/file.cc

    r7622 r7623  
    3333#include <cassert>
    3434
     35/**
     36 * @brief default constructor.
     37 */
    3538File::File()
    3639{
     
    3841}
    3942
     43/**
     44 * @brief A File will be constructed and stated from a given FileName.
     45 * @param fileName the FileName to load and stat.
     46 */
    4047File::File(const std::string& fileName)
    4148{
     
    4451}
    4552
     53/**
     54 * @brief A File will be constructed and stated from a given other File.
     55 * @param file the File to get the Name from.
     56 */
    4657File::File(const File& file)
    4758{
     
    124135  return (this->_name == file.name());
    125136}
    126 
    127137
    128138
     
    233243bool File::copy(const File& destination)
    234244{
     245  if (*this == destination)
     246  {
     247    std::cout << "files are the Same '" << this->_name << "'\n";
     248    return false;
     249  }
    235250  char ch;
    236251  std::ifstream iFile(this->_name.c_str());
     
    286301bool File::remove()
    287302{
     303  this->close();
    288304  unlink(this->_name.c_str());
    289305  delete this->_status;
    290306  this->_status = NULL;
    291   /// FIXME HANDLE
    292307}
    293308
Note: See TracChangeset for help on using the changeset viewer.