TIBCO Adapter SDK C++ Reference
|
MSequence always makes a copy of all data items that are set.
MSequence is reference counted for performance.
1. Get the MDataEvent from the refEvent passed in:
const MDataEvent &refDataEvent = (const MDataEvent&) refEvent;
2. Get the MTree from the data event:
MTree *pData = refDataEvent.getData();
3. Create the MInstance from the MTree:
MData* pInst = m_DataFactory->create(*pData); MInstance* minstance = MInstance::downCast(pInst);
4. Get the MSequence objects from the MInstance:
MData *inData = inInstance.get ("sequence_field"); MSequence* pMSeqe = MSequence::downCast(inData);
class MSequence : public MData;
MObject MData MSequence