Ignore:
Timestamp:
Dec 20, 2006, 11:08:25 PM (15 years ago)
Author:
Jari Häkkinen
Message:

Addresses #1 and #80. Changed FileIO to FileUtil? and added tests on FileUtil?.

File:
1 moved

Legend:

Unmodified
Added
Removed
  • trunk/yat/utility/FileUtil.cc

    r709 r710  
    2424*/
    2525
    26 #include "FileIO.h"
     26#include "FileUtil.h"
    2727
    2828#include <cerrno>
     
    3939
    4040
    41   FileIO::FileIO(const std::string& path)
     41  FileUtil::FileUtil(const std::string& path)
    4242    : no_file_(false), path_(path)
    4343  {
     
    4747
    4848
    49   int FileIO::access_rights(const std::string& path,
    50                             const std::string& bits) const
     49  int FileUtil::access_rights(const std::string& path,
     50                              const std::string& bits) const
    5151  {
    5252    std::string tryme=path_;
     
    7474
    7575
    76   bool FileIO::file_exists(const std::string& file) const
     76  bool FileUtil::file_exists(const std::string& file) const
    7777  {
    7878    return !no_file_;
     
    8080
    8181
    82   const std::string& FileIO::path(void) const
     82  const std::string& FileUtil::path(void) const
    8383  {
    8484    return path_;
Note: See TracChangeset for help on using the changeset viewer.