TIBCO Adapter SDK C++ Reference
MTree::get
MTree
Gets the contents of a buffer of specified size.
Remarks
If the MTree contains multiple nodes with the same name, this method extracts the first one.

After calling this method, check the return status to make sure that the extracted data item is valid. If the attribute name is not found in this MTree, the method returns false but does not signal an exception.

This method returns true if the values were retrieved, false if the attribute does not exist or is of the wrong type. The method signals an exception if there is an internal error.

You can use this method to recursively extract information from an MTree.

Parameters
Parameters Description
const MString& rsFieldName Extract the value of the first node with this name.
char*& szBuffer When the method returns, this buffer contains the data.
int& iSize Size of the buffer specified by szBuffer.
Exceptions
M_ERROR_RV_ERROR
Declaration
Mboolean get(const MString& rsFieldName, char*& szBuffer, int& iSize) const throw(MException);
Links
Copyright (c) 2010 TIBCO Software Inc. All rights reserved.