TibrvMsg::convertToString()

Method

Declaration

TibrvStatus convertToString(const char*& string)

Purpose

Format a message as a string.

Remarks

Programs can use this method to obtain a string representation of the message for printing.

For most datatypes, this method formats the full value of the field to the string; these types are an exceptions:

TIBRVMSG_OPAQUE

This method abbreviates the value of an opaque field; for example, [472 opaque bytes].

TIBRVMSG_XML

This method abbreviates the value of an XML field; for example, [XML document: 472 bytes].

The size measures uncompressed data.

This method formats TIBRVMSG_IPADDR32 fields as four dot-separated decimal integers.

This method formats TIBRVMSG_IPPORT16 fields as one decimal integer.

Parameter

Description

string

The program supplies a variable in this parameter; the method stores the string representation in that variable.

See Also

Converting DateTime to Strings