TIBCO Adapter SDK C++ Reference
MData::float
MData
Allows an implicit conversion from MData to float. Applications do not usually call this method directly; the SDK calls it internally each time a variable that is of one of the MData subclass types is called. As a result, the conversion from MData subclass types to regular C types is seamless.
Remarks
Adapters do not generally have to explicitly call these methods. They are documented here so you can see what implicit conversion you should expect.
Examples
float aFloat = 4.57
MReal mReal(aFloat);             //mReal is of type MReal
float result = aFloat + mReal;   // implicit conversion to float
Exceptions
MException is thrown when there is a data type mismatch.
Declaration
operator float() const throw(MException);
Links
Copyright (c) 2010 TIBCO Software Inc. All rights reserved.