|
PST File Format SDK v0.4
|
Database external interface. More...
#include <database_iface.h>
Inheritance diagram for pstsdk::db_context:
Collaboration diagram for pstsdk::db_context:Database external interface.
The db_context is the iterface which all components, NDB Layer and up, use to access the PST file. It is basically an object factory; given an address (or other relative context to help locate the physical piece of data) a db_context will produce an in memory version of that data structure, with all the Unicode vs. ANSI differences abstracted away.
Definition at line 115 of file database_iface.h.
|
inlinevirtual |
Definition at line 118 of file database_iface.h.
|
pure virtual |
Lookup information about a block.
| key_not_found<block_id> | if the specified block was not found |
| [in] | bid | The id of the block to lookup |
Implemented in pstsdk::database_impl< T >.
Open a node.
| key_not_found<node_id> | if the specified node was not found |
| [in] | nid | The id of the node to lookup |
Implemented in pstsdk::database_impl< T >.
Lookup information about a node.
| key_not_found<node_id> | if the specified node was not found |
| [in] | nid | The id of the node to lookup |
Implemented in pstsdk::database_impl< T >.
|
pure virtual |
Open a BBT leaf page.
| [in] | pi | Information about the page to open |
| unexpected_page | (PSTSDK_VALIDATION_LEVEL_WEAK) If the parameters of the page appear incorrect |
| sig_mismatch | (PSTSDK_VALIDATION_LEVEL_WEAK) If the page trailer's signature appears incorrect |
| database_corrupt | (PSTSDK_VALIDATION_LEVEL_WEAK) If the page trailer's ptypeRepeat != ptype |
| crc_fail | (PSTSDK_VALIDATION_LEVEL_FULL) If the page's CRC doesn't match the trailer |
Implemented in pstsdk::database_impl< T >.
|
pure virtual |
Open a BBT nonleaf page.
| [in] | pi | Information about the page to open |
| unexpected_page | (PSTSDK_VALIDATION_LEVEL_WEAK) If the parameters of the page appear incorrect |
| sig_mismatch | (PSTSDK_VALIDATION_LEVEL_WEAK) If the page trailer's signature appears incorrect |
| database_corrupt | (PSTSDK_VALIDATION_LEVEL_WEAK) If the page trailer's ptypeRepeat != ptype |
| crc_fail | (PSTSDK_VALIDATION_LEVEL_FULL) If the page's CRC doesn't match the trailer |
Implemented in pstsdk::database_impl< T >.
|
pure virtual |
Open a BBT page.
| unexpected_page | (PSTSDK_VALIDATION_LEVEL_WEAK) If the parameters of the page appear incorrect |
| sig_mismatch | (PSTSDK_VALIDATION_LEVEL_WEAK) If the page trailer's signature appears incorrect |
| database_corrupt | (PSTSDK_VALIDATION_LEVEL_WEAK) If the page trailer's ptypeRepeat != ptype |
| crc_fail | (PSTSDK_VALIDATION_LEVEL_FULL) If the page's CRC doesn't match the trailer |
Implemented in pstsdk::database_impl< T >.
Get the root of the BBT of this context.
| unexpected_page | (PSTSDK_VALIDATION_LEVEL_WEAK) If the parameters of the page appear incorrect |
| sig_mismatch | (PSTSDK_VALIDATION_LEVEL_WEAK) If the page trailer's signature appears incorrect |
| database_corrupt | (PSTSDK_VALIDATION_LEVEL_WEAK) If the page trailer's ptypeRepeat != ptype |
| crc_fail | (PSTSDK_VALIDATION_LEVEL_FULL) If the page's CRC doesn't match the trailer |
Implemented in pstsdk::database_impl< T >.
Open a block in this context.
| [in] | bid | The id of the block to open |
| unexpected_block | (PSTSDK_VALIDATION_LEVEL_WEAK) If the parameters of the block appear incorrect |
| sig_mismatch | (PSTSDK_VALIDATION_LEVEL_WEAK) If the block trailer's signature appears incorrect |
| crc_fail | (PSTSDK_VALIDATION_LEVEL_FULL) If the block's CRC doesn't match the trailer |
Definition at line 212 of file database_iface.h.
|
inline |
Open a block in this context.
| [in] | bi | Information about the block to open |
| unexpected_block | (PSTSDK_VALIDATION_LEVEL_WEAK) If the parameters of the block appear incorrect |
| sig_mismatch | (PSTSDK_VALIDATION_LEVEL_WEAK) If the block trailer's signature appears incorrect |
| crc_fail | (PSTSDK_VALIDATION_LEVEL_FULL) If the block's CRC doesn't match the trailer |
Definition at line 318 of file database_iface.h.
|
pure virtual |
Open a block in the specified context.
| [in] | parent | The context to open this block in. It must be either this context or a child context of this context. |
| [in] | bid | The id of the block to open |
| unexpected_block | (PSTSDK_VALIDATION_LEVEL_WEAK) If the parameters of the block appear incorrect |
| sig_mismatch | (PSTSDK_VALIDATION_LEVEL_WEAK) If the block trailer's signature appears incorrect |
| crc_fail | (PSTSDK_VALIDATION_LEVEL_FULL) If the block's CRC doesn't match the trailer |
Implemented in pstsdk::database_impl< T >.
|
pure virtual |
Open a block in the specified context.
| [in] | parent | The context to open this block in. It must be either this context or a child context of this context. |
| [in] | bi | Information about the block to open |
| unexpected_block | (PSTSDK_VALIDATION_LEVEL_WEAK) If the parameters of the block appear incorrect |
| sig_mismatch | (PSTSDK_VALIDATION_LEVEL_WEAK) If the block trailer's signature appears incorrect |
| crc_fail | (PSTSDK_VALIDATION_LEVEL_FULL) If the block's CRC doesn't match the trailer |
Implemented in pstsdk::database_impl< T >.
|
inline |
Open a data_block in this context.
| [in] | bid | The id of the block to open |
| unexpected_block | (PSTSDK_VALIDATION_LEVEL_WEAK) If the parameters of the block appear incorrect |
| sig_mismatch | (PSTSDK_VALIDATION_LEVEL_WEAK) If the block trailer's signature appears incorrect |
| crc_fail | (PSTSDK_VALIDATION_LEVEL_FULL) If the block's CRC doesn't match the trailer |
Definition at line 219 of file database_iface.h.
|
inline |
Open a data_block in this context.
| [in] | bi | Information about the block to open |
| unexpected_block | (PSTSDK_VALIDATION_LEVEL_WEAK) If the parameters of the block appear incorrect |
| sig_mismatch | (PSTSDK_VALIDATION_LEVEL_WEAK) If the block trailer's signature appears incorrect |
| crc_fail | (PSTSDK_VALIDATION_LEVEL_FULL) If the block's CRC doesn't match the trailer |
Definition at line 325 of file database_iface.h.
|
pure virtual |
Open a data_block in the specified context.
| [in] | parent | The context to open this block in. It must be either this context or a child context of this context. |
| [in] | bid | The id of the block to open |
| unexpected_block | (PSTSDK_VALIDATION_LEVEL_WEAK) If the parameters of the block appear incorrect |
| sig_mismatch | (PSTSDK_VALIDATION_LEVEL_WEAK) If the block trailer's signature appears incorrect |
| crc_fail | (PSTSDK_VALIDATION_LEVEL_FULL) If the block's CRC doesn't match the trailer |
Implemented in pstsdk::database_impl< T >.
|
pure virtual |
Open a data_block in the specified context.
| [in] | parent | The context to open this block in. It must be either this context or a child context of this context. |
| [in] | bi | Information about the block to open |
| unexpected_block | (PSTSDK_VALIDATION_LEVEL_WEAK) If the parameters of the block appear incorrect |
| sig_mismatch | (PSTSDK_VALIDATION_LEVEL_WEAK) If the block trailer's signature appears incorrect |
| crc_fail | (PSTSDK_VALIDATION_LEVEL_FULL) If the block's CRC doesn't match the trailer |
Implemented in pstsdk::database_impl< T >.
|
inline |
Open a extended_block in this context.
| [in] | bid | The id of the block to open |
| unexpected_block | (PSTSDK_VALIDATION_LEVEL_WEAK) If the parameters of the block appear incorrect |
| sig_mismatch | (PSTSDK_VALIDATION_LEVEL_WEAK) If the block trailer's signature appears incorrect |
| crc_fail | (PSTSDK_VALIDATION_LEVEL_FULL) If the block's CRC doesn't match the trailer |
Definition at line 226 of file database_iface.h.
|
inline |
Open a extended_block in this context.
| [in] | bi | Information about the block to open |
| unexpected_block | (PSTSDK_VALIDATION_LEVEL_WEAK) If the parameters of the block appear incorrect |
| sig_mismatch | (PSTSDK_VALIDATION_LEVEL_WEAK) If the block trailer's signature appears incorrect |
| crc_fail | (PSTSDK_VALIDATION_LEVEL_FULL) If the block's CRC doesn't match the trailer |
Definition at line 332 of file database_iface.h.
|
pure virtual |
Open an extended_block in the specified context.
| [in] | parent | The context to open this block in. It must be either this context or a child context of this context. |
| [in] | bid | The id of the block to open |
| unexpected_block | (PSTSDK_VALIDATION_LEVEL_WEAK) If the parameters of the block appear incorrect |
| sig_mismatch | (PSTSDK_VALIDATION_LEVEL_WEAK) If the block trailer's signature appears incorrect |
| crc_fail | (PSTSDK_VALIDATION_LEVEL_FULL) If the block's CRC doesn't match the trailer |
Implemented in pstsdk::database_impl< T >.
|
pure virtual |
Open a extended_block in the specified context.
| [in] | parent | The context to open this block in. It must be either this context or a child context of this context. |
| [in] | bi | Information about the block to open |
| unexpected_block | (PSTSDK_VALIDATION_LEVEL_WEAK) If the parameters of the block appear incorrect |
| sig_mismatch | (PSTSDK_VALIDATION_LEVEL_WEAK) If the block trailer's signature appears incorrect |
| crc_fail | (PSTSDK_VALIDATION_LEVEL_FULL) If the block's CRC doesn't match the trailer |
Implemented in pstsdk::database_impl< T >.
|
inline |
Open a external_block in this context.
| [in] | bid | The id of the block to open |
| unexpected_block | (PSTSDK_VALIDATION_LEVEL_WEAK) If the parameters of the block appear incorrect |
| sig_mismatch | (PSTSDK_VALIDATION_LEVEL_WEAK) If the block trailer's signature appears incorrect |
| crc_fail | (PSTSDK_VALIDATION_LEVEL_FULL) If the block's CRC doesn't match the trailer |
Definition at line 233 of file database_iface.h.
|
inline |
Open a block in this context.
| [in] | bi | Information about the block to open |
| unexpected_block | (PSTSDK_VALIDATION_LEVEL_WEAK) If the parameters of the block appear incorrect |
| sig_mismatch | (PSTSDK_VALIDATION_LEVEL_WEAK) If the block trailer's signature appears incorrect |
| crc_fail | (PSTSDK_VALIDATION_LEVEL_FULL) If the block's CRC doesn't match the trailer |
Definition at line 339 of file database_iface.h.
|
pure virtual |
Open a external_block in the specified context.
| [in] | parent | The context to open this block in. It must be either this context or a child context of this context. |
| [in] | bid | The id of the block to open |
| unexpected_block | (PSTSDK_VALIDATION_LEVEL_WEAK) If the parameters of the block appear incorrect |
| sig_mismatch | (PSTSDK_VALIDATION_LEVEL_WEAK) If the block trailer's signature appears incorrect |
| crc_fail | (PSTSDK_VALIDATION_LEVEL_FULL) If the block's CRC doesn't match the trailer |
Implemented in pstsdk::database_impl< T >.
|
pure virtual |
Open a external_block in the specified context.
| [in] | parent | The context to open this block in. It must be either this context or a child context of this context. |
| [in] | bi | Information about the block to open |
| unexpected_block | (PSTSDK_VALIDATION_LEVEL_WEAK) If the parameters of the block appear incorrect |
| sig_mismatch | (PSTSDK_VALIDATION_LEVEL_WEAK) If the block trailer's signature appears incorrect |
| crc_fail | (PSTSDK_VALIDATION_LEVEL_FULL) If the block's CRC doesn't match the trailer |
Implemented in pstsdk::database_impl< T >.
|
pure virtual |
Open a NBT leaf page.
| [in] | pi | Information about the page to open |
| unexpected_page | (PSTSDK_VALIDATION_LEVEL_WEAK) If the parameters of the page appear incorrect |
| sig_mismatch | (PSTSDK_VALIDATION_LEVEL_WEAK) If the page trailer's signature appears incorrect |
| database_corrupt | (PSTSDK_VALIDATION_LEVEL_WEAK) If the page trailer's ptypeRepeat != ptype |
| crc_fail | (PSTSDK_VALIDATION_LEVEL_FULL) If the page's CRC doesn't match the trailer |
Implemented in pstsdk::database_impl< T >.
|
pure virtual |
Open a NBT nonleaf page.
| [in] | pi | Information about the page to open |
| unexpected_page | (PSTSDK_VALIDATION_LEVEL_WEAK) If the parameters of the page appear incorrect |
| sig_mismatch | (PSTSDK_VALIDATION_LEVEL_WEAK) If the page trailer's signature appears incorrect |
| database_corrupt | (PSTSDK_VALIDATION_LEVEL_WEAK) If the page trailer's ptypeRepeat != ptype |
| crc_fail | (PSTSDK_VALIDATION_LEVEL_FULL) If the page's CRC doesn't match the trailer |
Implemented in pstsdk::database_impl< T >.
|
pure virtual |
Open a NBT page.
| [in] | pi | Information about the page to open |
| unexpected_page | (PSTSDK_VALIDATION_LEVEL_WEAK) If the parameters of the page appear incorrect |
| sig_mismatch | (PSTSDK_VALIDATION_LEVEL_WEAK) If the page trailer's signature appears incorrect |
| database_corrupt | (PSTSDK_VALIDATION_LEVEL_WEAK) If the page trailer's ptypeRepeat != ptype |
| crc_fail | (PSTSDK_VALIDATION_LEVEL_FULL) If the page's CRC doesn't match the trailer |
Implemented in pstsdk::database_impl< T >.
Get the root of the NBT of this context.
| unexpected_page | (PSTSDK_VALIDATION_LEVEL_WEAK) If the parameters of the page appear incorrect |
| sig_mismatch | (PSTSDK_VALIDATION_LEVEL_WEAK) If the page trailer's signature appears incorrect |
| database_corrupt | (PSTSDK_VALIDATION_LEVEL_WEAK) If the page trailer's ptypeRepeat != ptype |
| crc_fail | (PSTSDK_VALIDATION_LEVEL_FULL) If the page's CRC doesn't match the trailer |
Implemented in pstsdk::database_impl< T >.
|
inline |
Open a subnode_block in this context.
| [in] | bid | The id of the block to open |
| unexpected_block | (PSTSDK_VALIDATION_LEVEL_WEAK) If the parameters of the block appear incorrect |
| sig_mismatch | (PSTSDK_VALIDATION_LEVEL_WEAK) If the block trailer's signature appears incorrect |
| crc_fail | (PSTSDK_VALIDATION_LEVEL_FULL) If the block's CRC doesn't match the trailer |
Definition at line 240 of file database_iface.h.
|
inline |
Open a subnode_block in this context.
| [in] | bi | Information about the block to open |
| unexpected_block | (PSTSDK_VALIDATION_LEVEL_WEAK) If the parameters of the block appear incorrect |
| sig_mismatch | (PSTSDK_VALIDATION_LEVEL_WEAK) If the block trailer's signature appears incorrect |
| crc_fail | (PSTSDK_VALIDATION_LEVEL_FULL) If the block's CRC doesn't match the trailer |
Definition at line 346 of file database_iface.h.
|
pure virtual |
Open a subnode_block in the specified context.
| [in] | parent | The context to open this block in. It must be either this context or a child context of this context. |
| [in] | bid | The id of the block to open |
| unexpected_block | (PSTSDK_VALIDATION_LEVEL_WEAK) If the parameters of the block appear incorrect |
| sig_mismatch | (PSTSDK_VALIDATION_LEVEL_WEAK) If the block trailer's signature appears incorrect |
| crc_fail | (PSTSDK_VALIDATION_LEVEL_FULL) If the block's CRC doesn't match the trailer |
Implemented in pstsdk::database_impl< T >.
|
pure virtual |
Open a subnode_block in the specified context.
| [in] | parent | The context to open this block in. It must be either this context or a child context of this context. |
| [in] | bi | Information about the block to open |
| unexpected_block | (PSTSDK_VALIDATION_LEVEL_WEAK) If the parameters of the block appear incorrect |
| sig_mismatch | (PSTSDK_VALIDATION_LEVEL_WEAK) If the block trailer's signature appears incorrect |
| crc_fail | (PSTSDK_VALIDATION_LEVEL_FULL) If the block's CRC doesn't match the trailer |
Implemented in pstsdk::database_impl< T >.
|
inline |
Open a subnode_leaf_block in this context.
| [in] | bid | The id of the block to open |
| unexpected_block | (PSTSDK_VALIDATION_LEVEL_WEAK) If the parameters of the block appear incorrect |
| sig_mismatch | (PSTSDK_VALIDATION_LEVEL_WEAK) If the block trailer's signature appears incorrect |
| crc_fail | (PSTSDK_VALIDATION_LEVEL_FULL) If the block's CRC doesn't match the trailer |
Definition at line 247 of file database_iface.h.
|
inline |
Open a subnode_leaf_block in this context.
| [in] | bi | Information about the block to open |
| unexpected_block | (PSTSDK_VALIDATION_LEVEL_WEAK) If the parameters of the block appear incorrect |
| sig_mismatch | (PSTSDK_VALIDATION_LEVEL_WEAK) If the block trailer's signature appears incorrect |
| crc_fail | (PSTSDK_VALIDATION_LEVEL_FULL) If the block's CRC doesn't match the trailer |
Definition at line 353 of file database_iface.h.
|
pure virtual |
Open a subnode_leaf_block in the specified context.
| [in] | parent | The context to open this block in. It must be either this context or a child context of this context. |
| [in] | bid | The id of the block to open |
| unexpected_block | (PSTSDK_VALIDATION_LEVEL_WEAK) If the parameters of the block appear incorrect |
| sig_mismatch | (PSTSDK_VALIDATION_LEVEL_WEAK) If the block trailer's signature appears incorrect |
| crc_fail | (PSTSDK_VALIDATION_LEVEL_FULL) If the block's CRC doesn't match the trailer |
Implemented in pstsdk::database_impl< T >.
|
pure virtual |
Open a subnode_leaf_block in the specified context.
| [in] | parent | The context to open this block in. It must be either this context or a child context of this context. |
| [in] | bi | Information about the block to open |
| unexpected_block | (PSTSDK_VALIDATION_LEVEL_WEAK) If the parameters of the block appear incorrect |
| sig_mismatch | (PSTSDK_VALIDATION_LEVEL_WEAK) If the block trailer's signature appears incorrect |
| crc_fail | (PSTSDK_VALIDATION_LEVEL_FULL) If the block's CRC doesn't match the trailer |
Implemented in pstsdk::database_impl< T >.
|
inline |
Open a subnode_nonleaf_block in this context.
| [in] | bid | The id of the block to open |
| unexpected_block | (PSTSDK_VALIDATION_LEVEL_WEAK) If the parameters of the block appear incorrect |
| sig_mismatch | (PSTSDK_VALIDATION_LEVEL_WEAK) If the block trailer's signature appears incorrect |
| crc_fail | (PSTSDK_VALIDATION_LEVEL_FULL) If the block's CRC doesn't match the trailer |
Definition at line 254 of file database_iface.h.
|
inline |
Open a subnode_nonleaf_block in this context.
| [in] | bi | Information about the block to open |
| unexpected_block | (PSTSDK_VALIDATION_LEVEL_WEAK) If the parameters of the block appear incorrect |
| sig_mismatch | (PSTSDK_VALIDATION_LEVEL_WEAK) If the block trailer's signature appears incorrect |
| crc_fail | (PSTSDK_VALIDATION_LEVEL_FULL) If the block's CRC doesn't match the trailer |
Definition at line 360 of file database_iface.h.
|
pure virtual |
Open a subnode_nonleaf_block in the specified context.
| [in] | parent | The context to open this block in. It must be either this context or a child context of this context. |
| [in] | bid | The id of the block to open |
| unexpected_block | (PSTSDK_VALIDATION_LEVEL_WEAK) If the parameters of the block appear incorrect |
| sig_mismatch | (PSTSDK_VALIDATION_LEVEL_WEAK) If the block trailer's signature appears incorrect |
| crc_fail | (PSTSDK_VALIDATION_LEVEL_FULL) If the block's CRC doesn't match the trailer |
Implemented in pstsdk::database_impl< T >.
|
pure virtual |
Open a subnode_nonleaf_block in the specified context.
| [in] | parent | The context to open this block in. It must be either this context or a child context of this context. |
| [in] | bi | Information about the block to open |
| unexpected_block | (PSTSDK_VALIDATION_LEVEL_WEAK) If the parameters of the block appear incorrect |
| sig_mismatch | (PSTSDK_VALIDATION_LEVEL_WEAK) If the block trailer's signature appears incorrect |
| crc_fail | (PSTSDK_VALIDATION_LEVEL_FULL) If the block's CRC doesn't match the trailer |
Implemented in pstsdk::database_impl< T >.