source: NonGTP/Xerces/xerces/include/xercesc/framework/BinOutputStream.hpp @ 358

Revision 358, 2.4 KB checked in by bittner, 19 years ago (diff)

xerces added

Line 
1/*
2 * Copyright 2003,2004 The Apache Software Foundation.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 *      http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17/*
18 * $Log: BinOutputStream.hpp,v $
19 * Revision 1.4  2004/09/08 13:55:57  peiyongz
20 * Apache License Version 2.0
21 *
22 * Revision 1.3  2004/02/16 04:02:34  neilg
23 * fix for bug 26936
24 *
25 * Revision 1.2  2003/12/16 17:17:25  peiyongz
26 * typo fixed
27 *
28 * Revision 1.1  2003/09/18 18:29:58  peiyongz
29 * Interface: Binary Output Stream
30 *
31 * $Id: BinOutputStream.hpp,v 1.4 2004/09/08 13:55:57 peiyongz Exp $
32 *
33 */
34
35#if !defined(BIN_OUTPUT_STREAM_HPP)
36#define BIN_OUTPUT_STREAM_HPP
37
38#include <xercesc/util/XMemory.hpp>
39
40XERCES_CPP_NAMESPACE_BEGIN
41
42class XMLUTIL_EXPORT BinOutputStream : public XMemory
43{
44public :
45    // -----------------------------------------------------------------------
46    //  Virtual destructor for derived classes
47    // -----------------------------------------------------------------------
48    virtual ~BinOutputStream();
49
50    // -----------------------------------------------------------------------
51    //  The virtual output stream interface
52    // -----------------------------------------------------------------------
53    virtual unsigned int curPos() const = 0;
54
55    virtual void writeBytes
56    (
57          const XMLByte* const      toGo
58        , const unsigned int        maxToWrite
59    ) = 0;
60
61protected :
62    // -----------------------------------------------------------------------
63    //  Hidden Constructors
64    // -----------------------------------------------------------------------
65    BinOutputStream();
66
67
68private :
69    // -----------------------------------------------------------------------
70    //  Unimplemented Constructors
71    // -----------------------------------------------------------------------
72    BinOutputStream(const BinOutputStream&);
73    BinOutputStream& operator=(const BinOutputStream&);
74};
75
76XERCES_CPP_NAMESPACE_END
77
78#endif
Note: See TracBrowser for help on using the repository browser.