Fairport  v1.0.38
fairport::hnid_stream_device Class Reference

Defines a stream device which can wrap one of the two prop sources. More...

#include <object.h>

+ Inheritance diagram for fairport::hnid_stream_device:
+ Collaboration diagram for fairport::hnid_stream_device:

List of all members.

Public Member Functions

std::streamsize read (char *pbuffer, std::streamsize n)
std::streampos seek (boost::iostreams::stream_offset off, std::ios_base::seekdir way)
 hnid_stream_device (const hid_stream_device &hid_device)
 Wrap a hid_stream_device.
 hnid_stream_device (const node_stream_device &node_device)
 Wrap a node_stream_device.

Detailed Description

Defines a stream device which can wrap one of the two prop sources.

An hnid_steam_device wraps either a hid_stream_device if the property being streamed is located in a heap, or a node_stream_device if the property being streamed is contained in it's own subnode.

It is a common feature in both types of property objects to allocate properties in the heap first, and then "roll over" to a subnode when/if the size of the property becomes too large to fit in a heap allocation.

See also:
[MS-PST] 2.3.3.2

Definition at line 61 of file object.h.


Constructor & Destructor Documentation

fairport::hnid_stream_device::hnid_stream_device ( const hid_stream_device hid_device) [inline]

Wrap a hid_stream_device.

Definition at line 72 of file object.h.

fairport::hnid_stream_device::hnid_stream_device ( const node_stream_device node_device) [inline]

Wrap a node_stream_device.

Definition at line 74 of file object.h.


Member Function Documentation

std::streamsize fairport::hnid_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 65 of file object.h.

std::streampos fairport::hnid_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 68 of file object.h.


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