Browse Source

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 years ago
parent
commit
57cfcac1e0
2 changed files with 12 additions and 1 deletions
  1. 4
    0
      filesystem.cpp
  2. 8
    1
      filesystem.hpp

+ 4
- 0
filesystem.cpp View File

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

+ 8
- 1
filesystem.hpp View File

*/ */
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.



Loading…
Cancel
Save