source: trunk/src/xmlbuffer.h @ 4

Last change on this file since 4 was 4, checked in by cameron, 11 years ago

Initial import of parabix-0.36

File size: 867 bytes
Line 
1/*  xmlbuffer.h - Input buffering for XML entities.
2    Copyright (c) 2007, Robert D. Cameron.
3    Licensed to the public under the Open Software License 3.0.
4    Licensed to International Characters, Inc., under the Academic
5    Free License 3.0.
6
7
8    The goal of the XML_Buffer class is to handle I/O issues for
9    the XML parsing engine.   The present interface and implementation
10    is a quick hack.
11*/
12#ifndef XML_BUFFER_H
13#define XML_BUFFER_H
14
15
16
17class XML_Buffer {
18
19public:
20        XML_Buffer(char* filename, int pad_bytes);
21        void InstallPadding(const unsigned char* pad_string);
22        int PrepareBytes(int bytes_to_prepare);
23        unsigned char * GetBytePtr(int pos);
24private:
25        unsigned char * ByteBuffer;
26        unsigned int buffer_bytes;
27        unsigned int alloc_size; /* size of allocated ByteBuffer */
28        int current_pos;
29
30};
31
32#endif
Note: See TracBrowser for help on using the repository browser.