浏览代码

Added FileReference::FileName().


git-svn-id: https://svn.microneil.com/svn/CodeDweller/branches/adeniz_1@66 d34b734f-a00e-4b39-a726-e4eeb87269ab
adeniz_1
adeniz 10 年前
父节点
当前提交
57cfcac1e0
共有 2 个文件被更改,包括 12 次插入1 次删除
  1. 4
    0
      filesystem.cpp
  2. 8
    1
      filesystem.hpp

+ 4
- 0
filesystem.cpp 查看文件

} }
std::string FileReference::FileName() const {
return name;
}
void FileReference::refresh() { void FileReference::refresh() {
reset(); reset();

+ 8
- 1
filesystem.hpp 查看文件

*/ */
FileReference(std::string fileName); FileReference(std::string fileName);


/** Get the name passed to the constructor.

@returns the name passed to the constructor.

*/
std::string FileName() const;

/** Return timestamp. /** Return timestamp.


@returns the epoch modification time of the file if the file @returns the epoch modification time of the file if the file
@returns a fully referenced path to the file if the file @returns a fully referenced path to the file if the file
exists. Otherwise, "" is returned. exists. Otherwise, "" is returned.
*/ */
std:: string FullPath();
std::string FullPath();


/** Refreshes the FileReference object. /** Refreshes the FileReference object.



正在加载...
取消
保存