|
VMime
|
#include <path.hpp>


Public Types | |
| typedef vmime::word | component |
| typedef std::vector< component > | list |
Static Public Member Functions | |
| static path | fromString (const string &str, const string &sep, const charset &cset) |
Additional Inherited Members | |
Protected Member Functions inherited from object | |
| object () | |
| object (const object &) | |
| object & | operator= (const object &) |
| virtual | ~object () |
Abstract representation of a path (filesystem, mailbox, etc).
| path | ( | ) |
Referenced by maildirFolder::copyMessages(), maildirFolder::expunge(), and maildirFolder::setMessageFlags().
References vmime::dynamicCast().
References vmime::dynamicCast().
References vmime::dynamicCast().
Append a component to the path.
| c | component to add |
References vmime::dynamicCast().
Referenced by path::fromString().
Construct a new path from a string.
| str | string representation of the path |
| sep | separator string (eg: "/") |
| cset | charset in which the path is encoded (use the value returned by vmime::charset::getLocalCharset() to use the default charset of your system) |
References path::appendComponent(), vmime::dynamicCast(), and vmime::end().
| path::component & getComponentAt | ( | const size_t | pos | ) |
Return the component at the specified position.
| pos | position |
References vmime::dynamicCast().
| const path::component & getComponentAt | ( | const size_t | pos | ) | const |
Return the component at the specified position.
| pos | position |
References vmime::dynamicCast().
| path::component & getLastComponent | ( | ) |
Return the last component of this path (non-const version).
| const path::component getLastComponent | ( | ) | const |
Return the last component of this path (const version).
Referenced by courierMaildirFormat::isSubfolderDirectory(), kmailMaildirFormat::isSubfolderDirectory(), kmailMaildirFormat::listFoldersImpl(), IMAPFolder::rename(), and maildirFolder::rename().
| path getParent | ( | ) | const |
References vmime::dynamicCast(), and path::isEmpty().
| size_t getSize | ( | ) | const |
Return the number of components in this path.
Referenced by path::isDirectParentOf(), path::isParentOf(), and path::renameParent().
Test whether this path is a direct parent of another one.
| p | other path |
References vmime::dynamicCast(), and path::getSize().
| bool isEmpty | ( | ) | const |
Test whether this path is empty (root).
Referenced by path::getParent(), IMAPFolder::rename(), maildirFolder::rename(), and path::renameParent().
Test whether this path is a parent of another one.
| p | other path |
References vmime::dynamicCast(), and path::getSize().
Referenced by IMAPFolder::rename(), and maildirFolder::rename().
| bool isRoot | ( | ) | const |
Test whether this path is the root (alias for isEmpty()).
References vmime::dynamicCast().
References vmime::dynamicCast().
References vmime::dynamicCast().
References vmime::dynamicCast().
References vmime::dynamicCast().
References vmime::dynamicCast().
References vmime::dynamicCast().
References vmime::dynamicCast().
| path::component & operator[] | ( | const size_t | x | ) |
Return the specified component of the path (non-const version).
| x | index of the component |
References vmime::dynamicCast().
| const path::component & operator[] | ( | const size_t | x | ) | const |
Return the specified component of the path (const version).
| x | index of the component |
References vmime::dynamicCast().
Rename a parent component in the path.
Example: path("a/b/c/d").renameParent("a/b", "x/y/z") will return path("x/y/z/c/d").
| oldPath | old parent path |
| newPath | new parent path |
References vmime::dynamicCast(), path::getSize(), and path::isEmpty().
Referenced by courierMaildirFormat::renameFolder().
Returns a string representation of this path.
| sep | separator string (eg: "/") |
| cset | charset in which to encode the components (use the value returned by vmime::charset::getLocalCharset() to use the default charset of your system) |
References vmime::dynamicCast().