20#ifndef INCLUDED_COMPHELPER_BASICIO_HXX
21#define INCLUDED_COMPHELPER_BASICIO_HXX
23#include <com/sun/star/io/XObjectOutputStream.hpp>
24#include <com/sun/star/io/XObjectInputStream.hpp>
33COMPHELPER_DLLPUBLIC const css::uno::Reference<css::io::XObjectInputStream>&
operator >> (
const css::uno::Reference<css::io::XObjectInputStream>& _rxInStream,
bool& _rVal);
34COMPHELPER_DLLPUBLIC const css::uno::Reference<css::io::XObjectOutputStream>&
operator << (
const css::uno::Reference<css::io::XObjectOutputStream>& _rxOutStream,
bool _bVal);
36 css::uno::Reference<css::io::XObjectOutputStream>
const &,
sal_Bool)
40COMPHELPER_DLLPUBLIC const css::uno::Reference<css::io::XObjectInputStream>&
operator >> (
const css::uno::Reference<css::io::XObjectInputStream>& _rxInStream, OUString& _rStr);
41COMPHELPER_DLLPUBLIC const css::uno::Reference<css::io::XObjectOutputStream>&
operator << (
const css::uno::Reference<css::io::XObjectOutputStream>& _rxOutStream,
const OUString& _rStr);
44COMPHELPER_DLLPUBLIC const css::uno::Reference<css::io::XObjectInputStream>&
operator >> (
const css::uno::Reference<css::io::XObjectInputStream>& _rxInStream, sal_Int16& _rValue);
45COMPHELPER_DLLPUBLIC const css::uno::Reference<css::io::XObjectOutputStream>&
operator << (
const css::uno::Reference<css::io::XObjectOutputStream>& _rxOutStream, sal_Int16 _nValue);
48COMPHELPER_DLLPUBLIC const css::uno::Reference<css::io::XObjectInputStream>&
operator >> (
const css::uno::Reference<css::io::XObjectInputStream>& _rxInStream, sal_uInt16& _rValue);
49COMPHELPER_DLLPUBLIC const css::uno::Reference<css::io::XObjectOutputStream>&
operator << (
const css::uno::Reference<css::io::XObjectOutputStream>& _rxOutStream, sal_uInt16 _nValue);
52COMPHELPER_DLLPUBLIC const css::uno::Reference<css::io::XObjectInputStream>&
operator >> (
const css::uno::Reference<css::io::XObjectInputStream>& _rxInStream, sal_uInt32& _rValue);
53COMPHELPER_DLLPUBLIC const css::uno::Reference<css::io::XObjectOutputStream>&
operator << (
const css::uno::Reference<css::io::XObjectOutputStream>& _rxOutStream, sal_uInt32 _nValue);
56COMPHELPER_DLLPUBLIC const css::uno::Reference<css::io::XObjectInputStream>&
operator >> (
const css::uno::Reference<css::io::XObjectInputStream>& _rxInStream, sal_Int32& _rValue);
57COMPHELPER_DLLPUBLIC const css::uno::Reference<css::io::XObjectOutputStream>&
operator << (
const css::uno::Reference<css::io::XObjectOutputStream>& _rxOutStream, sal_Int32 _nValue);
60COMPHELPER_DLLPUBLIC const css::uno::Reference<css::io::XObjectInputStream>&
operator >> (
const css::uno::Reference<css::io::XObjectInputStream>& InStream, css::awt::FontDescriptor& rVal);
61COMPHELPER_DLLPUBLIC const css::uno::Reference<css::io::XObjectOutputStream>&
operator << (
const css::uno::Reference<css::io::XObjectOutputStream>& OutStream,
const css::awt::FontDescriptor& rVal);
64template <
class ELEMENT>
65const css::uno::Reference<css::io::XObjectInputStream>&
operator >> (
const css::uno::Reference<css::io::XObjectInputStream>& _rxInStream, css::uno::Sequence<ELEMENT>& _rSeq)
67 _rSeq.realloc(_rxInStream->readLong());
68 for (
ELEMENT& rElement : asNonConstRange(_rSeq))
69 _rxInStream >> rElement;
73template <
class ELEMENT>
74const css::uno::Reference<css::io::XObjectOutputStream>&
operator << (
const css::uno::Reference<css::io::XObjectOutputStream>& _rxOutStream,
const css::uno::Sequence<ELEMENT>& _rSeq)
76 _rxOutStream->writeLong(_rSeq.getLength());
77 for (
const ELEMENT& rElement : _rSeq)
78 _rxOutStream << rElement;
#define COMPHELPER_DLLPUBLIC
const css::uno::Reference< css::io::XObjectInputStream > & operator>>(const css::uno::Reference< css::io::XObjectInputStream > &_rxInStream, css::awt::FontDescriptor &_rFont)
const css::uno::Reference< css::io::XObjectOutputStream > & operator<<(const css::uno::Reference< css::io::XObjectOutputStream > &_rxOutStream, const css::awt::FontDescriptor &_rFont)