TIBCO Adapter SDK C++ Reference
MChar::MChar
MChar
Create an MChar using the specified character class (for example, 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.
char const* pCharValue 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 the MChar class description for a list of some of the most commonly used types that are supported.
Declaration
MChar(MClassRegistry* pClassRegistry, MString const& rsCharClassName, char const* pCharValue, unsigned int numBytes, char const * type = NULL) throw(MException);
Links
Copyright (c) 2010 TIBCO Software Inc. All rights reserved.