|
PST File Format SDK v0.4
|
The actual table object that clients reference. More...
#include <table.h>
Collaboration diagram for pstsdk::table:Public Member Functions | |
| table (const node &n) | |
| Construct a table from this node. | |
| table (const node &n, alias_tag) | |
| Construct a table from this node. | |
| table (const table &other) | |
| Copy constructor. | |
| table (const table &other, alias_tag) | |
| Alias constructor. | |
| const_table_row | operator[] (ulong row) const |
| Get the requested table row. | |
| const_table_row_iter | begin () const |
| Get an iterator pointing to the first row. | |
| const_table_row_iter | end () const |
| Get an end iterator for this table. | |
| node & | get_node () |
| Get the node backing this table. | |
| const node & | get_node () const |
| Get the node backing this table. | |
| ulonglong | get_cell_value (ulong row, prop_id id) const |
| Get the contents of the specified cell in the specified row. | |
| std::vector< byte > | read_cell (ulong row, prop_id id) const |
| Get the contents of a indirect property in the specified row. | |
| hnid_stream_device | open_cell_stream (ulong row, prop_id id) |
| Open a stream over a property in a given row. | |
| std::vector< prop_id > | get_prop_list () const |
| Get all of the properties on this table. | |
| prop_type | get_prop_type (prop_id id) const |
| Get the type of a property. | |
| row_id | get_row_id (ulong row) const |
| Get the row id of a specified row. | |
| ulong | lookup_row (row_id id) const |
| Find the offset into the table of the given row_id. | |
| size_t | size () const |
| Get the number of rows in this table. | |
The actual table object that clients reference.
The table object is an in memory representation of the table context (TC). Clients use the open_table(const node&) free function to create table objects.
A table object's job in general is to allow access to the individual row objects, either via operator[] or the iterators. Most property access should go through the row objects. Other member functions allow for row and type lookup.
Construct a table from this node.
| [in] | n | The node to alias and interpret as a table |
|
inline |
|
inline |
Get the contents of the specified cell in the specified row.
| key_not_found<prop_id> | If the specified property does not exist on the specified row |
| out_of_range | If the specified row offset is beyond the size of this table |
| [in] | row | The offset into the table |
| [in] | id | The prop_id to find the cell value of |
|
inline |
|
inline |
|
inline |
Open a stream over a property in a given row.
| key_not_found<prop_id> | If the specified property does not exist on the specified row |
| out_of_range | If the specified row offset is beyond the size of this table |
| [in] | row | The offset into the table |
| [in] | id | The prop_id to find the cell value of |
|
inline |
Get the contents of a indirect property in the specified row.
| key_not_found<prop_id> | If the specified property does not exist on the specified row |
| out_of_range | If the specified row offset is beyond the size of this table |
| [in] | row | The offset into the table |
| [in] | id | The prop_id to find the cell value of |
|
inline |