XBinder XML Runtime  XBinder Version 3.0.x
OSXMLDecodeBuffer.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2003-2022 Objective Systems, Inc.
3  *
4  * This software is furnished under a license and may be used and copied
5  * only in accordance with the terms of such license and with the
6  * inclusion of the above copyright notice. This software or any other
7  * copies thereof may not be provided or otherwise made available to any
8  * other person. No title to and ownership of the software is hereby
9  * transferred.
10  *
11  * The information in this software is subject to change without notice
12  * and should not be construed as a commitment by Objective Systems, Inc.
13  *
14  * PROPRIETARY NOTICE
15  *
16  * This software is an unpublished work subject to a confidentiality agreement
17  * and is protected by copyright and trade secret law. Unauthorized copying,
18  * redistribution or other use of this work is prohibited.
19  *
20  * The above notice of copyright on this source code product does not indicate
21  * any actual or intended publication of such source code.
22  *
23  *****************************************************************************/
28 #ifndef _OSXMLDECODEBUFFER_H_
29 #define _OSXMLDECODEBUFFER_H_
30 
31 #include "rtxsrc/OSRTInputStream.h"
33 #include "rtxmlsrc/rtSaxCppParserIF.h"
34 
45 class EXTXMLCLASS OSXMLDecodeBuffer : public OSXMLMessageBuffer {
46  protected:
50  OSRTInputStream* mpInputStream;
51 
57  OSBOOL mbOwnStream;
58 
59  public:
66  OSXMLDecodeBuffer (const char* xmlFile);
67 
75  OSXMLDecodeBuffer (const OSOCTET* msgbuf, size_t bufsiz);
76 
84  OSXMLDecodeBuffer (OSRTInputStream& inputStream);
85 
87 
99  EXTXMLMETHOD int decodeXML (OSXMLReaderClass* pReader);
100 
108  EXTXMLMETHOD virtual int init ();
109 
116  EXTXMLMETHOD OSBOOL isWellFormed ();
117 
129  EXTXMLMETHOD int parseElementName (OSUTF8CHAR** ppName);
130 
142  EXTXMLMETHOD int parseElemQName (OSXMLQName* pQName);
143 
151  EXTXMLMETHOD OSUINT32 setMaxErrors (OSUINT32 maxErrors);
152 
169  virtual OSBOOL isA (Type bufferType) {
170  return bufferType == XMLDecode;
171  }
172 
173 } ;
174 
175 #endif
176 
OSRTInputStream * mpInputStream
Input source for message to be decoded.
virtual OSBOOL isA(Type bufferType)
This is a virtual method that must be overridden by derived classes to allow identification of the cl...
The XML message buffer class is derived from the OSMessageBuffer base class.
OSBOOL mbOwnStream
This is set to true if this object creates the underlying stream object.
XML encode/decode buffer and stream base class.
The OSXMLDecodeBuffer class is derived from the OSXMLMessageBuffer base class.