Lines 44-53
namespace comphelper
Link Here
|
44 |
// FmUnoIOStream, |
44 |
// FmUnoIOStream, |
45 |
// stream zum schreiben un lesen von Daten, basieren auf File |
45 |
// stream zum schreiben un lesen von Daten, basieren auf File |
46 |
//================================================================== |
46 |
//================================================================== |
47 |
struct InputStreamWrapper_Base : public ::cppu::WeakImplHelper1<stario::XInputStream> |
47 |
class COMPHELPER_DLLPUBLIC OSLInputStreamWrapper : public ::cppu::WeakImplHelper1<stario::XInputStream> |
48 |
{}; |
|
|
49 |
|
50 |
class COMPHELPER_DLLPUBLIC OSLInputStreamWrapper : public InputStreamWrapper_Base |
51 |
{ |
48 |
{ |
52 |
::osl::Mutex m_aMutex; |
49 |
::osl::Mutex m_aMutex; |
53 |
::osl::File* m_pFile; |
50 |
::osl::File* m_pFile; |
Lines 58-71
public:
Link Here
|
58 |
OSLInputStreamWrapper(::osl::File* pStream, sal_Bool bOwner=sal_False); |
55 |
OSLInputStreamWrapper(::osl::File* pStream, sal_Bool bOwner=sal_False); |
59 |
virtual ~OSLInputStreamWrapper(); |
56 |
virtual ~OSLInputStreamWrapper(); |
60 |
|
57 |
|
61 |
// UNO Anbindung |
|
|
62 |
virtual void SAL_CALL acquire() throw() |
63 |
{ InputStreamWrapper_Base::acquire(); } |
64 |
virtual void SAL_CALL release() throw() |
65 |
{ InputStreamWrapper_Base::release(); } |
66 |
virtual ::com::sun::star::uno::Any SAL_CALL queryInterface(const ::com::sun::star::uno::Type& _rType) throw (::com::sun::star::uno::RuntimeException) |
67 |
{ return InputStreamWrapper_Base::queryInterface(_rType); } |
68 |
|
69 |
// stario::XInputStream |
58 |
// stario::XInputStream |
70 |
virtual sal_Int32 SAL_CALL readBytes(staruno::Sequence< sal_Int8 >& aData, sal_Int32 nBytesToRead) throw(stario::NotConnectedException, stario::BufferSizeExceededException, staruno::RuntimeException); |
59 |
virtual sal_Int32 SAL_CALL readBytes(staruno::Sequence< sal_Int8 >& aData, sal_Int32 nBytesToRead) throw(stario::NotConnectedException, stario::BufferSizeExceededException, staruno::RuntimeException); |
71 |
virtual sal_Int32 SAL_CALL readSomeBytes(staruno::Sequence< sal_Int8 >& aData, sal_Int32 nMaxBytesToRead) throw(stario::NotConnectedException, stario::BufferSizeExceededException, staruno::RuntimeException); |
60 |
virtual sal_Int32 SAL_CALL readSomeBytes(staruno::Sequence< sal_Int8 >& aData, sal_Int32 nMaxBytesToRead) throw(stario::NotConnectedException, stario::BufferSizeExceededException, staruno::RuntimeException); |
Lines 78-101
public:
Link Here
|
78 |
// FmUnoOutStream, |
67 |
// FmUnoOutStream, |
79 |
// Datensenke fuer Files |
68 |
// Datensenke fuer Files |
80 |
//================================================================== |
69 |
//================================================================== |
81 |
struct OutputStreamWrapper_Base : public ::cppu::WeakImplHelper1<stario::XOutputStream> |
70 |
class COMPHELPER_DLLPUBLIC OSLOutputStreamWrapper : public ::cppu::WeakImplHelper1<stario::XOutputStream> |
82 |
{}; |
|
|
83 |
|
84 |
class COMPHELPER_DLLPUBLIC OSLOutputStreamWrapper : public OutputStreamWrapper_Base |
85 |
{ |
71 |
{ |
86 |
::osl::File& rFile; |
72 |
::osl::File& rFile; |
87 |
|
73 |
|
88 |
public: |
74 |
public: |
89 |
OSLOutputStreamWrapper(::osl::File& _rFile) :rFile(_rFile) { } |
75 |
OSLOutputStreamWrapper(::osl::File& _rFile) :rFile(_rFile) { } |
90 |
|
76 |
|
91 |
// UNO Anbindung |
|
|
92 |
virtual void SAL_CALL acquire() throw() |
93 |
{ OutputStreamWrapper_Base::acquire(); } |
94 |
virtual void SAL_CALL release() throw() |
95 |
{ OutputStreamWrapper_Base::release(); } |
96 |
virtual ::com::sun::star::uno::Any SAL_CALL queryInterface(const ::com::sun::star::uno::Type& _rType) throw (::com::sun::star::uno::RuntimeException) |
97 |
{ return OutputStreamWrapper_Base::queryInterface(_rType); } |
98 |
|
99 |
// stario::XOutputStream |
77 |
// stario::XOutputStream |
100 |
virtual void SAL_CALL writeBytes(const staruno::Sequence< sal_Int8 >& aData) throw(stario::NotConnectedException, stario::BufferSizeExceededException, staruno::RuntimeException); |
78 |
virtual void SAL_CALL writeBytes(const staruno::Sequence< sal_Int8 >& aData) throw(stario::NotConnectedException, stario::BufferSizeExceededException, staruno::RuntimeException); |
101 |
virtual void SAL_CALL flush() throw(stario::NotConnectedException, stario::BufferSizeExceededException, staruno::RuntimeException); |
79 |
virtual void SAL_CALL flush() throw(stario::NotConnectedException, stario::BufferSizeExceededException, staruno::RuntimeException); |