LibreOffice Module comphelper (master)  1
Public Member Functions | Private Attributes | List of all members
comphelper::OStreamSection Class Reference

implements handling for compatibly reading/writing data from/into an input/output stream. More...

#include <streamsection.hxx>

Public Member Functions

 OStreamSection (const css::uno::Reference< css::io::XDataInputStream > &_rxInput)
 starts reading of a "skippable" section of data within the given input stream
More...
 
 OStreamSection (const css::uno::Reference< css::io::XDataOutputStream > &_rxOutput)
 starts writing of a "skippable" section of data into the given output stream More...
 
 ~OStreamSection ()
 dtor. More...
 

Private Attributes

css::uno::Reference< css::io::XMarkableStream > m_xMarkStream
 
css::uno::Reference< css::io::XDataInputStream > m_xInStream
 
css::uno::Reference< css::io::XDataOutputStream > m_xOutStream
 
sal_Int32 m_nBlockStart
 
sal_Int32 m_nBlockLen
 

Detailed Description

implements handling for compatibly reading/writing data from/into an input/output stream.

data written in a block secured by this class should be readable by older versions which use the same mechanism.

Definition at line 38 of file streamsection.hxx.

Constructor & Destructor Documentation

comphelper::OStreamSection::OStreamSection ( const css::uno::Reference< css::io::XDataInputStream > &  _rxInput)

starts reading of a "skippable" section of data within the given input stream

Parameters
_rxInputthe stream to read from. Must support the css::io::XMarkableStream interface

Definition at line 30 of file streamsection.cxx.

References m_nBlockLen, m_nBlockStart, m_xInStream, and m_xMarkStream.

comphelper::OStreamSection::OStreamSection ( const css::uno::Reference< css::io::XDataOutputStream > &  _rxOutput)

starts writing of a "skippable" section of data into the given output stream

Parameters
_rxOutputthe stream the stream to write to. Must support the css::io::XMarkableStream interface

Definition at line 45 of file streamsection.cxx.

References m_nBlockLen, m_nBlockStart, m_xMarkStream, and m_xOutStream.

comphelper::OStreamSection::~OStreamSection ( )

dtor.


If constructed for writing, the section "opened" by this object will be "closed".
If constructed for reading, any remaining bytes 'til the end of the section will be skipped.

Definition at line 61 of file streamsection.cxx.

References m_nBlockLen, m_nBlockStart, m_xInStream, m_xMarkStream, and m_xOutStream.

Member Data Documentation

sal_Int32 comphelper::OStreamSection::m_nBlockLen
private

Definition at line 45 of file streamsection.hxx.

Referenced by OStreamSection(), and ~OStreamSection().

sal_Int32 comphelper::OStreamSection::m_nBlockStart
private

Definition at line 44 of file streamsection.hxx.

Referenced by OStreamSection(), and ~OStreamSection().

css::uno::Reference< css::io::XDataInputStream > comphelper::OStreamSection::m_xInStream
private

Definition at line 41 of file streamsection.hxx.

Referenced by OStreamSection(), and ~OStreamSection().

css::uno::Reference< css::io::XMarkableStream > comphelper::OStreamSection::m_xMarkStream
private

Definition at line 40 of file streamsection.hxx.

Referenced by OStreamSection(), and ~OStreamSection().

css::uno::Reference< css::io::XDataOutputStream > comphelper::OStreamSection::m_xOutStream
private

Definition at line 42 of file streamsection.hxx.

Referenced by OStreamSection(), and ~OStreamSection().


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