Library | File

Class pfcExternalData

# include <pfcExternal.h>

class pfcExternalData
 : public xobject
{
    xdeclare(pfcExternalData)
    ...
};
This is a COMPACT class.



Description

A union class that represents a single data value that may be stored in external data. The type of the value is identified by the dicsriminator.

Identifies the data type (String, Double or Integer).
Manual References:
External Data: Retrieving External Data



Method Summary

pfcExternalDataTypeGetdiscr ()
Returns the union discriminant value.

xrealGetDoubleValue ()
voidSetDoubleValue (xreal value)
The double value.
xintGetIntegerValue ()
voidSetIntegerValue (xint value)
The integer value.
xstringGetStringValue ()
voidSetStringValue (xrstring value)
The string value.



Method Detail

pfcExternalDataTypeGetdiscr ()

Returns the union discriminant value.




xintGetIntegerValue ()
voidSetIntegerValue (xint value)

The integer value.

Exceptions thrown (but not limited to):

pfcXBadGetExternalData - Data is not an integer


Manual References:
External Data: Retrieving External Data, External Data: Retrieving External Data




xrealGetDoubleValue ()
voidSetDoubleValue (xreal value)

The double value.

Exceptions thrown (but not limited to):

pfcXBadGetExternalData - Data is not double


Manual References:
External Data: Retrieving External Data, External Data: Retrieving External Data




xstringGetStringValue ()
voidSetStringValue (xrstring value)

The string value.

Exceptions thrown (but not limited to):

pfcXBadGetExternalData - Data is not string


Manual References:
External Data: Retrieving External Data