diff options
author | Max Horn | 2006-05-12 21:41:54 +0000 |
---|---|---|
committer | Max Horn | 2006-05-12 21:41:54 +0000 |
commit | 3623a94927a3d01b6df5c75f42af13a348327c2a (patch) | |
tree | 6c6109147fdbf77457c7b107e3d494fc5a66332c /backends/fs/fs.h | |
parent | ed339aa771fa7f47a737c0599197dbe205804338 (diff) | |
download | scummvm-rg350-3623a94927a3d01b6df5c75f42af13a348327c2a.tar.gz scummvm-rg350-3623a94927a3d01b6df5c75f42af13a348327c2a.tar.bz2 scummvm-rg350-3623a94927a3d01b6df5c75f42af13a348327c2a.zip |
Added the new AbstractFilesystemNode::getCurrentDirectory() method. Also changed the semantics of the FilesystemNode constructors (see also the relevant doxygen comments for explanations). This also fixes bug #1485941.
svn-id: r22424
Diffstat (limited to 'backends/fs/fs.h')
-rw-r--r-- | backends/fs/fs.h | 23 |
1 files changed, 21 insertions, 2 deletions
diff --git a/backends/fs/fs.h b/backends/fs/fs.h index f272cb2164..0e271b5fc9 100644 --- a/backends/fs/fs.h +++ b/backends/fs/fs.h @@ -78,18 +78,37 @@ public: kListAll = 3 }; + /** + * Create a new invalid FilesystemNode. In other words, isValid() for that + * node returns false, and if you try to get it's path, an assert is + * triggered. + */ + FilesystemNode(); /** * Create a new FilesystemNode referring to the specified path. This is * the counterpart to the path() method. + * + * If path is empty or equals ".", then a node representing the "current + * directory" will be created. If that is not possible (since e.g. the + * operating system doesn't support the concept), some other directory is + * used (usually the root directory). */ FilesystemNode(const String &path); - - FilesystemNode(); + /** + * Copy constructor. + */ FilesystemNode(const FilesystemNode &node); + + /** + * Destructor. + */ virtual ~FilesystemNode(); + /** + * Copy operator. + */ FilesystemNode &operator =(const FilesystemNode &node); /** |