|
PST File Format SDK v0.4
|
An abstraction of a table row. More...
#include <table.h>
Inheritance diagram for pstsdk::const_table_row:
Collaboration diagram for pstsdk::const_table_row:Public Member Functions | |
| const_table_row (const const_table_row &other) | |
| Copy construct this row. | |
| const_table_row (ulong position, const const_table_ptr &table) | |
| Construct a const_table_row object from a table and row offset. | |
| row_id | get_row_id () const |
| Get the row_id of this row. | |
| std::vector< prop_id > | get_prop_list () const |
| Get a list of all properties on this object. | |
| prop_type | get_prop_type (prop_id id) const |
| Get the property type of a given prop_id. | |
| bool | prop_exists (prop_id id) const |
| Indicates the existance of a given property on this object. | |
| size_t | size (prop_id id) const |
| Returns the total size of a variable length property. | |
| hnid_stream_device | open_prop_stream (prop_id id) |
| Creates a stream device over a property on this object. | |
Public Member Functions inherited from pstsdk::const_property_object | |
| virtual | ~const_property_object () |
| template<typename T > | |
| T | read_prop (prop_id id) const |
| Read a property as a given type. | |
| template<typename T > | |
| std::optional< T > | read_prop_if_exists (prop_id id) const |
| Read a property as a given type, if it exists. | |
| template<typename T > | |
| std::vector< T > | read_prop_array (prop_id id) const |
| Read a property as an array of the given type. | |
| template<> | |
| bool | read_prop (prop_id id) const |
| template<> | |
| std::vector< bool > | read_prop_array (prop_id id) const |
| template<> | |
| time_t | read_prop (prop_id id) const |
| template<> | |
| std::vector< time_t > | read_prop_array (prop_id id) const |
Additional Inherited Members |
An abstraction of a table row.
A const_table_row represents a single row in a table. It models a const_property_object, allowing access to the properties stored in the row.
This object is basically a thin wrapper around the table proper, it holds a reference to the table as well as the index of the row it represents, and fowards most requests to the table.
|
inline |
|
inline |
Construct a const_table_row object from a table and row offset.
| [in] | position | The offset into the table to represent |
| [in] | table | The table to reference |
|
inlinevirtual |
Get a list of all properties on this object.
Implements pstsdk::const_property_object.
|
inlinevirtual |
Get the property type of a given prop_id.
| [in] | id | The prop_id |
| key_not_found<prop_id> | If the specified property is not present |
Implements pstsdk::const_property_object.
|
inline |
|
inlinevirtual |
Creates a stream device over a property on this object.
The returned stream device can be used to construct a proper stream:
Which can then be used as any iostream would be.
| [in] | id | The prop_id |
| key_not_found<prop_id> | If the specified property is not present |
Implements pstsdk::const_property_object.
|
inlinevirtual |
Indicates the existance of a given property on this object.
| [in] | id | The prop_id |
Implements pstsdk::const_property_object.
|
inlinevirtual |
Returns the total size of a variable length property.
| [in] | id | The prop_id |
Implements pstsdk::const_property_object.