|
PST File Format SDK v0.4
|
A folder in a PST file. More...
#include <folder.h>
Collaboration diagram for pstsdk::folder:Public Types | |
| typedef boost::transform_iterator< message_transform_row, const_table_row_iter > | message_iterator |
| Message iterator type; a transform iterator over a table row iterator. | |
| typedef boost::transform_iterator< folder_transform_row, folder_filter_iterator > | folder_iterator |
| Folder iterator type; a transform iterator over a filter iterator over table row iterator. | |
| typedef boost::transform_iterator< search_folder_transform_row, search_folder_filter_iterator > | search_folder_iterator |
| Search folder iterator type; a transform iterator over a filter iterator over table row iterator. | |
Public Member Functions | |
| folder (const shared_db_ptr &db, const node &n) | |
| Construct a folder object. | |
| folder (const folder &other) | |
| Copy construct a folder object. | |
| folder (folder &&other) | |
| Move construct a folder object. | |
| folder_iterator | sub_folder_begin () const |
| Get an iterator to the first folder in this folder. | |
| folder_iterator | sub_folder_end () const |
| Get the end folder iterator. | |
| search_folder_iterator | sub_search_folder_begin () const |
| Get an iterator to the first search folder in this folder. | |
| search_folder_iterator | sub_search_folder_end () const |
| Get the end search folder iterator. | |
| folder | open_sub_folder (const std::wstring &name) |
| Open a specific subfolder in this folder, not recursive. | |
| message_iterator | message_begin () const |
| Get an iterator to the first message in this folder. | |
| message_iterator | message_end () const |
| Get the end message iterator. | |
| message_iterator | associated_message_begin () const |
| Get an iterator to the first associated message in this folder. | |
| message_iterator | associated_message_end () const |
| Get the end associated message iterator. | |
| std::wstring | get_name () const |
| Get the display name of this folder. | |
| size_t | get_subfolder_count () const |
| Get the number of sub folders in this folder. | |
| size_t | get_unread_message_count () const |
| Get the number of unread messages in this folder. | |
| size_t | get_message_count () const |
| Get the number of messages in this folder. | |
| size_t | get_associated_message_count () const |
| Get the number of associated messages in this folder. | |
| property_bag & | get_property_bag () |
| Get the property bag backing this folder. | |
| const property_bag & | get_property_bag () const |
| Get the property bag backing this folder. | |
| shared_db_ptr | get_db () const |
| Get the database pointer used by this folder. | |
| table & | get_hierarchy_table () |
| Get the hierarchy table of this folder. | |
| table & | get_contents_table () |
| Get the contents table of this folder. | |
| table & | get_associated_contents_table () |
| Get the associated contents table of this folder. | |
| const table & | get_hierarchy_table () const |
| Get the hierarchy table of this folder. | |
| const table & | get_contents_table () const |
| Get the contents table of this folder. | |
| const table & | get_associated_contents_table () const |
| Get the associated contents table of this folder. | |
| node_id | get_id () const |
| Get the node_id of this folder. | |
A folder in a PST file.
The folder object allows access to subfolders, messages, and associated messagse which are contained in the folder. Similar to the PST Layer object, the folder also offers a way to lookup subfolders by name.
A folder currently doesn't have a concept of sorting. This was deemed unnecessary because of the iterator based approach used for exposing sub messages and folders - one can use these iterators to build up a container of messages or folders to be sorted, and calling std::sort directly with an arbitrary sorting functor.
| typedef boost::transform_iterator<folder_transform_row, folder_filter_iterator> pstsdk::folder::folder_iterator |
| typedef boost::transform_iterator<message_transform_row, const_table_row_iter> pstsdk::folder::message_iterator |
| typedef boost::transform_iterator<search_folder_transform_row, search_folder_filter_iterator> pstsdk::folder::search_folder_iterator |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Open a specific subfolder in this folder, not recursive.
| [in] | name | The name of the folder to open |
| key_not_found<std::wstring> | If a folder of the specified name was not found in this folder |
|
inline |
|
inline |
|
inline |
|
inline |