TIBCO Adapter SDK C++ Reference
MTree::toString
MTree
Writes the contents of this MTree to an MString or prints simple text depending on the format of the tree. If the value of the node is NULL, this method prints the empty string. Otherwise, the method prints the node.

 

If there is a problem printing the node, the method throws an exception.

Remarks
This method is useful for debugging purposes.
Example
The following example shows the output of a call to MTree::toString().

{ {class, "Order", M_STRING} {CustomerId, 112, M_INT} {CustomerName,
"IBM", M_STRING} {OrderId, 1000, M_INT} OrderOrderLine_1={ {class,
"OrderLine", M_STRING} {ItemId, 1, M_INT} {OrderId, 1000, M_INT}
{Quantity, 10000, M_INT} } Order OrderLine_2={ {class, "OrderLine",
M_STRING} {ItemId, 2, M_INT} {OrderId, 1000, M_INT} {Quantity, 20000,
M_INT} } }
Declaration
virtual MString toString() const throw(MException);
Links
Copyright (c) 2010 TIBCO Software Inc. All rights reserved.