TIBCO Adapter SDK C++ Reference
MInstance::set
MInstance
Appends the specified element to the MInstance. A copy is made as part of the set() operation.
Remarks
If the specified attribute is not defined in the class description, this method throws an exception. If the specified attribute is defined in the class description but does not currently point to a TIBCO Repository object, this method retrieves the object using the specified URL(s) to search for it.

The set() method always makes a copy of the MData passed (or any of its subclasses). Note, however, that the content of MInstance, MSequence, and MAssocList is reference counted. Therefore, a copy of an MInstance, Msequence, or MAssocList still references the same contents (use MInstance::deepCopy() for a completely independent copy).

Parameters
Parameters Description
const MString& rsAttributeName Name of the attribute to add to this MInstance.
const MData& refMData Reference to the data you want to add to this MInstance.
Exceptions
MException if the specified attribute is not defined in the class description.
Declaration
virtual void set(const MString& rsAttributeName, const MData& refMData) throw(MException);
Links
Copyright (c) 2010 TIBCO Software Inc. All rights reserved.