diff options
| author | Vincent Richard <[email protected]> | 2004-12-17 23:02:37 +0000 |
|---|---|---|
| committer | Vincent Richard <[email protected]> | 2004-12-17 23:02:37 +0000 |
| commit | 1d44fdfab55b7879897402dca8a30a2aec7e97d4 (patch) | |
| tree | 416ebdf912203fdbbcc61ce63b821ec66c74c88d /src/utility/path.hpp | |
| parent | Fixed bugs with message count notification. (diff) | |
| download | vmime-1d44fdfab55b7879897402dca8a30a2aec7e97d4.tar.gz vmime-1d44fdfab55b7879897402dca8a30a2aec7e97d4.zip | |
Added appendComponent() and getComponentAt() functions.
Diffstat (limited to 'src/utility/path.hpp')
| -rw-r--r-- | src/utility/path.hpp | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/utility/path.hpp b/src/utility/path.hpp index 8a05f1a2..83bd186a 100644 --- a/src/utility/path.hpp +++ b/src/utility/path.hpp @@ -65,6 +65,26 @@ public: const bool operator==(const path& p) const; const bool operator!=(const path& p) const; + /** Append a component to the path. + * + * @param c component to add + */ + void appendComponent(const component& c); + + /** Return the component at the specified position. + * + * @param pos position + * @return component at position 'pos' + */ + const component& getComponentAt(const int pos) const; + + /** Return the component at the specified position. + * + * @param pos position + * @return component at position 'pos' + */ + component& getComponentAt(const int pos); + /** Test whether this path is empty (root). * * @return true if the path is empty (no components = root) |
