Objective Systems, Inc.  
Home
About ASN.1
Products
Free Software
Documents
Services
Resources
Resellers
Customers
Careers
About Us
Contact Us
 

Google


Objective Systems, Inc.

OSXMLMessageBuffer Class Reference

The XML message buffer class is derived from the OSMessageBuffer base class. More...

#include <rtXmlCppMsgBuf.h>

Inheritance diagram for OSXMLMessageBuffer:

OSMessageBuffer OSMessageBufferIF OSXMLDecodeBuffer OSXMLEncodeBuffer OSXMLEncodeStream List of all members.

Public Member Functions

virtual void * getAppInfo ()
 The getAppInfo method returns the pointer to application context information.
int getIndent ()
 This method returns current XML output indent value.
int getIndentChar ()
 This method returns current XML output indent character value (default is space).
virtual void setNamespace (const OSUTF8CHAR *prefix, const OSUTF8CHAR *uri)
 This method sets a namespace in the context namespace list.
virtual void setAppInfo (void *pAppInfo)
 This method sets application specific context information within the common context structure.
void setFormatting (OSBOOL doFormatting)
 This method sets XML output formatting to the given value.
void setIndent (OSUINT8 indent)
 This method sets XML output indent to the given value.
void setIndentChar (char indentChar)
 This method sets XML output indent character to the given value.

Protected Member Functions

 OSXMLMessageBuffer (Type bufferType, OSContext *pContext=0)
 The protected constructor creates a new context and sets the buffer class type.

Detailed Description

The XML message buffer class is derived from the OSMessageBuffer base class.

It is the base class for the OSXMLEncodeBuffer and OSXMLDecodeBuffer classes. It contains variables and methods specific to encoding or decoding XML messages. It is used to manage the buffer into which a message is to be encoded or decoded.

Definition at line 44 of file rtXmlCppMsgBuf.h.


Constructor & Destructor Documentation

OSXMLMessageBuffer::OSXMLMessageBuffer Type  bufferType,
OSContext pContext = 0
[protected]
 

The protected constructor creates a new context and sets the buffer class type.

Parameters:
bufferType Type of message buffer that is being created (for example, XMLEncode or XMLDecode).
pContext Pointer to a context to use. If NULL, new context will be allocated.


Member Function Documentation

int OSXMLMessageBuffer::getIndent  ) 
 

This method returns current XML output indent value.

Returns:
Current indent value (>= 0) if OK, negative status code if error.

int OSXMLMessageBuffer::getIndentChar  ) 
 

This method returns current XML output indent character value (default is space).

Returns:
Current indent character (> 0) if OK, negative status code if error.

virtual void OSXMLMessageBuffer::setAppInfo void *  pAppInfo  )  [virtual]
 

This method sets application specific context information within the common context structure.

For XML encoding/decoding, this is a structure of type OSXMLCtxtInfo.

Parameters:
pAppInfo Pointer to context information.

Implements OSMessageBufferIF.

void OSXMLMessageBuffer::setFormatting OSBOOL  doFormatting  ) 
 

This method sets XML output formatting to the given value.

If TRUE (the default), the XML document is formatted with indentation and newlines. If FALSE, all whitespace between elements is suppressed. Turning formatting off can provide more compressed documents and also a more canonical representation which is important for security applications.

Parameters:
doFormatting Boolean value indicating if formatting is to be done
Returns:
Status of operation: 0 if OK, negative status code if error.

void OSXMLMessageBuffer::setIndent OSUINT8  indent  ) 
 

This method sets XML output indent to the given value.

Parameters:
indent Number of spaces per indent. Default is 3.

void OSXMLMessageBuffer::setIndentChar char  indentChar  ) 
 

This method sets XML output indent character to the given value.

Parameters:
indentChar Indent character. Default is space.

virtual void OSXMLMessageBuffer::setNamespace const OSUTF8CHAR *  prefix,
const OSUTF8CHAR *  uri
[virtual]
 

This method sets a namespace in the context namespace list.

If the given namespace URI does not exist in the list, the namespace is added. If the URI is found, the value of the namespace prefix will be changed to the given prefix.

Parameters:
prefix Namespace prefix
uri Namespace URI

Reimplemented from OSMessageBufferIF.


The documentation for this class was generated from the following file:

This file was last modified on 8 Jan 2007.
XBinder, Version 1.1.9