TIBCO Adapter SDK C++ Reference
MInteger
Class Hierarchy | C++ Classes and Methods | Members | Methods
The SDK supports a number of integer data types encapsulated as data members of the MPrimitiveClassDescription class. This class is governed by those integer data members.
Remarks
MPrimitiveClassDescription has the following data members that govern MInteger:
Name Description Example
i1, byte 1 byte signed int 1, 127, -128
i2 2 byte signed int 1, 703, -32768
i4 4 byte signed int 1, 703, -32768, 148343, -1000000000
i8 8 byte signed int 1, 703, -32768, 14834343456534, -1000000000000000
ui1 1 byte unsigned int 1, 255
ui2 2 byte unsigned int 1, 255, 65535
ui4 4 byte unsigned int 1, 703, 3000000000
ui8 8 byte unsigned int 1483433434334

When trying to set an MInteger of a given size to an attribute defined of a different size, whatever the actual integer value, an exception is now thrown if the MInteger has a size greater than the attribute.

An i2 and ui2 attribute can therefore be set with an MInteger of class i1, i2, ui1, or ui2. It cannot be set with an MInteger of i4, i8, ui4, or ui8.

Declaration
class MInteger : public MData;
Class Hierarchy
MObject
    MData
        MInteger
File
MInteger.h
Links
Copyright (c) 2010 TIBCO Software Inc. All rights reserved.