masterfix DEV300: #i10000# build fix
[LibreOffice.git] / automation / source / inc / icommstream.hxx
blobefc1315bc9b16d7ee281461b035afd73b1accf9b
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2000, 2010 Oracle and/or its affiliates.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * This file is part of OpenOffice.org.
11 * OpenOffice.org is free software: you can redistribute it and/or modify
12 * it under the terms of the GNU Lesser General Public License version 3
13 * only, as published by the Free Software Foundation.
15 * OpenOffice.org is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU Lesser General Public License version 3 for more details
19 * (a copy is included in the LICENSE file that accompanied this code).
21 * You should have received a copy of the GNU Lesser General Public License
22 * version 3 along with OpenOffice.org. If not, see
23 * <http://www.openoffice.org/license.html>
24 * for a copy of the LGPLv3 License.
26 ************************************************************************/
28 /*************************************************************************
30 * ATTENTION
31 * This file is intended to work inside and outside the StarOffice environment.
32 * Only adaption of file commtypes.hxx should be necessary. Else it is a bug!
34 ************************************************************************/
36 #ifndef _AUTOMATION_ICOMMSTREAM_HXX_
37 #define _AUTOMATION_ICOMMSTREAM_HXX_
39 #include <automation/commtypes.hxx>
41 class ICommStream
43 public:
45 ICommStream(){}
46 virtual ~ICommStream(){}
48 virtual ICommStream& operator>>( comm_USHORT& rUShort )=0;
49 virtual ICommStream& operator>>( comm_ULONG& rULong )=0;
50 virtual ICommStream& operator>>( comm_BOOL& rChar )=0;
52 virtual ICommStream& operator<<( comm_USHORT nUShort )=0;
53 virtual ICommStream& operator<<( comm_ULONG nULong )=0;
54 virtual ICommStream& operator<<( comm_BOOL nChar )=0;
56 virtual comm_ULONG Read( void* pData, comm_ULONG nSize )=0;
57 virtual comm_ULONG Write( const void* pData, comm_ULONG nSize )=0;
59 virtual comm_BOOL IsEof() const=0;
60 virtual comm_ULONG SeekRel( long nPos )=0;
64 #endif