00001 /* 00002 * Copyright 2003,2004 The Apache Software Foundation. 00003 * 00004 * Licensed under the Apache License, Version 2.0 (the "License"); 00005 * you may not use this file except in compliance with the License. 00006 * You may obtain a copy of the License at 00007 * 00008 * http://www.apache.org/licenses/LICENSE-2.0 00009 * 00010 * Unless required by applicable law or agreed to in writing, software 00011 * distributed under the License is distributed on an "AS IS" BASIS, 00012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 00013 * See the License for the specific language governing permissions and 00014 * limitations under the License. 00015 */ 00016 00017 /* 00018 * $Log: BinOutputStream.hpp,v $ 00019 * Revision 1.4 2004/09/08 13:55:57 peiyongz 00020 * Apache License Version 2.0 00021 * 00022 * Revision 1.3 2004/02/16 04:02:34 neilg 00023 * fix for bug 26936 00024 * 00025 * Revision 1.2 2003/12/16 17:17:25 peiyongz 00026 * typo fixed 00027 * 00028 * Revision 1.1 2003/09/18 18:29:58 peiyongz 00029 * Interface: Binary Output Stream 00030 * 00031 * $Id: BinOutputStream.hpp,v 1.4 2004/09/08 13:55:57 peiyongz Exp $ 00032 * 00033 */ 00034 00035 #if !defined(BIN_OUTPUT_STREAM_HPP) 00036 #define BIN_OUTPUT_STREAM_HPP 00037 00038 #include <xercesc/util/XMemory.hpp> 00039 00040 XERCES_CPP_NAMESPACE_BEGIN 00041 00042 class BinOutputStream : public XMemory 00043 { 00044 public : 00045 // ----------------------------------------------------------------------- 00046 // Virtual destructor for derived classes 00047 // ----------------------------------------------------------------------- 00048 virtual ~BinOutputStream(); 00049 00050 // ----------------------------------------------------------------------- 00051 // The virtual output stream interface 00052 // ----------------------------------------------------------------------- 00053 virtual unsigned int curPos() const = 0; 00054 00055 virtual void writeBytes 00056 ( 00057 const XMLByte* const toGo 00058 , const unsigned int maxToWrite 00059 ) = 0; 00060 00061 protected : 00062 // ----------------------------------------------------------------------- 00063 // Hidden Constructors 00064 // ----------------------------------------------------------------------- 00065 BinOutputStream(); 00066 00067 00068 private : 00069 // ----------------------------------------------------------------------- 00070 // Unimplemented Constructors 00071 // ----------------------------------------------------------------------- 00072 BinOutputStream(const BinOutputStream&); 00073 BinOutputStream& operator=(const BinOutputStream&); 00074 }; 00075 00076 XERCES_CPP_NAMESPACE_END 00077 00078 #endif