瀏覽代碼

Added FileReference::FileName().


git-svn-id: https://svn.microneil.com/svn/CodeDweller/branches/adeniz_1@66 d34b734f-a00e-4b39-a726-e4eeb87269ab
adeniz_1
adeniz 9 年之前
父節點
當前提交
57cfcac1e0
共有 2 個檔案被更改,包括 12 行新增1 行删除
  1. 4
    0
      filesystem.cpp
  2. 8
    1
      filesystem.hpp

+ 4
- 0
filesystem.cpp 查看文件

@@ -85,6 +85,10 @@ namespace CodeDweller {
}
std::string FileReference::FileName() const {
return name;
}
void FileReference::refresh() {
reset();

+ 8
- 1
filesystem.hpp 查看文件

@@ -75,6 +75,13 @@ namespace CodeDweller {
*/
FileReference(std::string fileName);

/** Get the name passed to the constructor.

@returns the name passed to the constructor.

*/
std::string FileName() const;

/** Return timestamp.

@returns the epoch modification time of the file if the file
@@ -107,7 +114,7 @@ namespace CodeDweller {
@returns a fully referenced path to the file if the file
exists. Otherwise, "" is returned.
*/
std:: string FullPath();
std::string FullPath();

/** Refreshes the FileReference object.


Loading…
取消
儲存