TIBCO Adapter SDK C++ Reference
MChar
Class Hierarchy | C++ Classes and Methods | Members | Methods
Class for encapsulating data of type char.
Remarks
This class is governed by the MPrimitiveClassDescription m_char data member (See MPrimitiveClassDescription). If the actual data is smaller than the type size, then NULL characters are used for padding. MChar and MStringData differ as follows:

  • MStringData always ends with a NULL character.

  • MStringData is not prespecified to be of a certain length and not padded with NULL characters.
The SDK supports a large number of encoding types. For a complete list, see the header file MEncoding.h. Here are some of the most commonly used encoding types that are supported.

MEncoding::M_ASCII - American Standard Code for Information Exchange (7 bit)  
MEncoding::M_LATIN1 - One of ISO's 8-bit single-byte coded graphic character sets for European languages.   
MEncoding::M_UTF8 - UTF-8. An ASCII-compatible multibyte Unicode and UCS encoding, used, for example by Java.  
MEncoding::M_UTF16BE - UTF16, big-endian.   
MEncoding::M_UTF16LE - UTF16, little-endian.  
MEncoding::M_JIS - Japanese Industrial Standard.  

You can specify a specific bounded char class, such as char.5 to indicate a char of at most 5 elements. To do so, prespecify it as a custom Scalar object using the TIBCO Designer software.

Declaration
class MChar : public MData;
Class Hierarchy
MObject
    MData
        MChar
File
MChar.h
Links
Copyright (c) 2010 TIBCO Software Inc. All rights reserved.