PST File Format SDK v0.4
Loading...
Searching...
No Matches
pstsdk::node_stream_device Class Reference

Defines a stream device for a node for use by boost iostream. More...

#include <node.h>

+ Inheritance diagram for pstsdk::node_stream_device:
+ Collaboration diagram for pstsdk::node_stream_device:

Public Member Functions

 node_stream_device ()
 Default construct the node stream device.
 
std::streamsize read (char *pbuffer, std::streamsize n)
 Read data from this node into the buffer at the current position.
 
std::streampos seek (boost::iostreams::stream_offset off, std::ios_base::seekdir way)
 Move the current position in the stream.
 

Friends

class node
 

Detailed Description

Defines a stream device for a node for use by boost iostream.

The boost iostream library requires that one defines a device, which implements a few key operations. This is the device for streaming out of a node.

Definition at line 260 of file node.h.

Constructor & Destructor Documentation

◆ node_stream_device()

pstsdk::node_stream_device::node_stream_device ( )
inline

Default construct the node stream device.

Definition at line 264 of file node.h.

Member Function Documentation

◆ read()

std::streamsize pstsdk::node_stream_device::read ( char pbuffer,
std::streamsize  n 
)
inline

Read data from this node into the buffer at the current position.

Parameters
[out]pbufferThe buffer to store the results into
[in]nThe amount of data to read
Returns
The amount of data read

Definition at line 996 of file node.h.

◆ seek()

std::streampos pstsdk::node_stream_device::seek ( boost::iostreams::stream_offset  off,
std::ios_base::seekdir  way 
)
inline

Move the current position in the stream.

Parameters
[in]offThe offset to move the current position
[in]wayThe location to move the current position from
Returns
The new position

Definition at line 1016 of file node.h.

Friends And Related Symbol Documentation

◆ node

friend class node
friend

Definition at line 283 of file node.h.


The documentation for this class was generated from the following file: