00001 /***************************************************************************** 00002 * Copyright (C) 2011 by Benjamin Hadorn (b_hadorn@bluewin.ch) 00003 ***************************************************************************** 00004 * Project : Zeus Base Library 00005 * Module : IOutputStream 00006 * Package : Zeus.ZeusBase.System.Interfaces 00007 * Author : Benjamin Hadorn 00008 * Date : 27.12.2011 00009 * System : Zeus-Framework 00010 ***************************************************************************** 00011 * Licence: * 00012 * This library is free software; you can redistribute it and/or modify * 00013 * it under the terms of the GNU Lesser General Public License as * 00014 * published by the Free Software Foundation; either version * 00015 * 2.1 of the License, or (at your option) any later version. * 00016 * * 00017 * This library is distributed in the hope that it will be useful, * 00018 * but WITHOUT ANY WARRANTY; without even the implied warranty of * 00019 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * 00020 * GNU Lesser General Public License for more details. * 00021 * * 00022 * You should have received a copy of the GNU Lesser General Public * 00023 * License along with this library; if not, write to the Free Software * 00024 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA * 00025 *****************************************************************************/ 00026 00027 /***************************************************************************** 00028 * Changes: 00029 * 27.12.2011 bha: created zeus 2.0 00030 *****************************************************************************/ 00031 00032 #ifndef IOutputStreamHPP 00033 #define IOutputStreamHPP 00034 00035 00036 #include <zeusbase/System/Interfaces/IZUnknown.hpp> 00037 #include <zeusbase/System/Interfaces/IString.hpp> 00038 #include <zeusbase/System/Interfaces/IByteArray.hpp> 00039 00040 // {734E9B0B-DA13-4fde-81A7-9F1A340E6C4B} 00041 #define INTERFACE_IOutputStream TIID(0x734e9b0b, 0xda13, 0x4fde, 0x81, 0xa7, 0x9f, 0x1a, 0x34, 0xe, 0x6c, 0x4b) 00042 00043 BEGIN_NAMESPACE_Zeus 00044 00045 00046 /**************************************************************************/ 00049 /**************************************************************************/ 00050 class IOutputStream : public IZUnknown 00051 { 00052 HIDE_ASSIGNMENT_OPERATOR(IOutputStream) 00053 00054 public: 00055 /**********************************************************************/ 00062 /**********************************************************************/ 00063 virtual Retval MQUALIFIER write(const char* pBuffer, Int iBufferSize)=0; 00064 00065 /**********************************************************************/ 00071 /**********************************************************************/ 00072 virtual Retval MQUALIFIER writeInt8(Int8 cData)=0; 00073 00074 /**********************************************************************/ 00080 /**********************************************************************/ 00081 virtual Retval MQUALIFIER writeInt16(Int16 sData)=0; 00082 00083 /**********************************************************************/ 00089 /**********************************************************************/ 00090 virtual Retval MQUALIFIER writeInt32(Int32 lData)=0; 00091 00092 /**********************************************************************/ 00098 /**********************************************************************/ 00099 virtual Retval MQUALIFIER writeInt64(const Int64& rldData)=0; 00100 00101 /**********************************************************************/ 00107 /**********************************************************************/ 00108 virtual Retval MQUALIFIER writeUint8(Uint8 ucData)=0; 00109 00110 /**********************************************************************/ 00116 /**********************************************************************/ 00117 virtual Retval MQUALIFIER writeUint16(Uint16 usData)=0; 00118 00119 /**********************************************************************/ 00125 /**********************************************************************/ 00126 virtual Retval MQUALIFIER writeUint32(Uint32 ulData)=0; 00127 00128 /**********************************************************************/ 00134 /**********************************************************************/ 00135 virtual Retval MQUALIFIER writeUint64(const Uint64& ruldData)=0; 00136 00137 /**********************************************************************/ 00143 /**********************************************************************/ 00144 virtual Retval MQUALIFIER writeFloat32(Float32 fData)=0; 00145 00146 /**********************************************************************/ 00152 /**********************************************************************/ 00153 virtual Retval MQUALIFIER writeFloat64(const Float64& rdData)=0; 00154 00155 /**********************************************************************/ 00161 /**********************************************************************/ 00162 virtual Retval MQUALIFIER writeBool(bool bData)=0; 00163 00164 /**********************************************************************/ 00174 /**********************************************************************/ 00175 virtual Retval MQUALIFIER writeArray(const IByteArray& rData)=0; 00176 00177 /**********************************************************************/ 00188 /**********************************************************************/ 00189 virtual Retval MQUALIFIER writeString(const IString& rData)=0; 00190 00191 /**********************************************************************/ 00194 /**********************************************************************/ 00195 virtual void MQUALIFIER close()=0; 00196 00197 /**********************************************************************/ 00201 /**********************************************************************/ 00202 virtual void MQUALIFIER flush()=0; 00203 }; 00204 00205 END_NAMESPACE_Zeus 00206 00207 #endif