TIBCO Adapter SDK C++ Reference
MSequence
Class Hierarchy | C++ Classes and Methods | Members | Methods
Class for encapsulating lists of data.
Remarks
The SDK provides an MSequenceClassDescription that allows you to define sequence types. Once such an MSequenceClassDescription metadata class has been defined, it can use the information in this class to encapsulate the sequence itself (rather than the format of the sequence).

MSequence always makes a copy of all data items that are set.

MSequence is reference counted for performance.

Recommended Practice
Follow these steps when receiving, unpacking, and using objects that are of type MSequence:

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);
Declaration
class MSequence : public MData;
Class Hierarchy
MObject
    MData
        MSequence
File
MSequence.h
Links
Copyright (c) 2010 TIBCO Software Inc. All rights reserved.