Changeset 2125
- Timestamp:
- Dec 22, 2009, 9:19:41 PM (13 years ago)
- Location:
- trunk/yat/utility
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/yat/utility/FileUtil.cc
r2121 r2125 51 51 FileUtil::FileUtil(const std::string& path) 52 52 : path_(path) 53 { 54 } 55 56 57 FileUtil::FileUtil(const FileUtil& other) 58 : path_(other.path_) 53 59 { 54 60 } … … 122 128 } 123 129 130 131 FileUtil& FileUtil::operator=(const FileUtil& rhs) 132 { 133 path_ = rhs.path_; 134 return *this; 135 } 136 124 137 }}} // of namespace utility, yat, and theplu -
trunk/yat/utility/FileUtil.h
r2119 r2125 9 9 Copyright (C) 2006 Jari Häkkinen 10 10 Copyright (C) 2007, 2008 Jari Häkkinen, Peter Johansson 11 Copyright (C) 2009 Peter Johansson 11 12 12 13 This file is part of the yat library, http://dev.thep.lu.se/yat … … 47 48 /// 48 49 explicit FileUtil(const std::string& path); 50 51 /** 52 \brief Copies the path 53 54 \since New in yat 0.6 55 */ 56 FileUtil(const FileUtil&); 49 57 50 58 /// … … 103 111 const std::string& path(void) const; 104 112 105 private:106 ///107 /// \brief The copy constructor, not implemented 108 ///109 FileUtil(const FileUtil&);113 /** 114 \brief assignment operator 115 116 \since New in yat 0.6 117 */ 110 118 FileUtil& operator=(const FileUtil&); 111 119 120 private: 112 121 bool exists_common(bool) const; 113 122
Note: See TracChangeset
for help on using the changeset viewer.