TIBCO Adapter SDK C++ Reference
MChar::MChar
MChar
Create an MChar using the specified character class (e.g. char.15), source string, number of characters, and encoding type. Encoding types are listed in the parameter list below. Unicode is supported and encoding information must be supplied.

All forms of the constructor create a copy. If the source string contains fewer characters than specified by the character class, then NULL characters are used for padding.

Parameters
Parameters Description
MClassRegistry* pClassRegistry Class registry for this MChar. Specify this only if you do not want to use the default class registry.
MString const& rsCharClassName Name of the character class for the character to be created,for example, char.15. Character classes can be defined using TIBCO Designer and are stored in TIBCO Repository.
UChar const* pUCharValue Source string to encapsulate as an MChar.
unsigned int numBytes Number of bytes from the source string to encapsulate as an MChar.
char const * type = NULL Encoding type for the class passed in (not the target type). See Encoding Types below.

Default is M_ASCII if you are using the char constructor, M_UTF16BE for the UChar constructor.

Declaration
MChar(MClassRegistry* pClassRegistry, MString const& rsCharClassName, UChar const* pUCharValue, unsigned int numBytes, char const * type = NULL) throw(MException);
Links
Copyright (c) 2010 TIBCO Software Inc. All rights reserved.