Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7622 in orxonox.OLD for branches/qt_gui


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

orxonox/qt_gui: all functions implemented so far

Location:
branches/qt_gui/src/lib/util
Files:
2 edited

Legend:

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

    r7621 r7622  
    8383}
    8484
    85 
     85/**
     86 * @brief sets the file to the new File.
     87 * @param fileName the FileName to set the File to.
     88 * @returns this File.
     89 */
     90File& File::operator=(const std::string& fileName)
     91{
     92  this->setFileName(fileName);
     93  return *this;
     94}
     95
     96/**
     97 * @brief sets the file to the new File.
     98 * @param file the File to set the File to.
     99 * @returns this File.
     100 */
     101File& File::operator=(const File& file)
     102{
     103  this->setFileName(file.name());
     104  return *this;
     105}
     106
     107/**
     108 * @brief compares two files.
     109 * @param fileName the File to compare against the stored one.
     110 * @returns true if the filenames match.
     111 */
     112bool File::operator==(const std::string& fileName) const
     113{
     114  return (this->_name == fileName);
     115}
     116
     117/**
     118 * @brief compares two files.
     119 * @param file the File to compare against the stored one.
     120 * @returns true if the filenames match.
     121 */
     122bool File::operator==(const File& file) const
     123{
     124  return (this->_name == file.name());
     125}
     126
     127
     128
     129/**
     130 * @brief stats a File.
     131 * Gathers information about the File, like permissions, and if it exists.
     132 */
    86133void File::statFile()
    87134{
  • branches/qt_gui/src/lib/util/file.h

    r7621 r7622  
    3232  bool operator==(const std::string& fileName) const;
    3333  bool operator==(const File& file) const;
    34 
    35 
    3634
    3735  virtual bool open(OpenMode mode);
Note: See TracChangeset for help on using the changeset viewer.