Open topic with navigation

TIBCO Rendezvous® 8.8.0

# Get Scalar

Convenience Methods

## Declaration

    TibrvStatus getscalar_type(
        const char*          fieldName,
        tibrv_scalar_type&    value,
        tibrv_u16            fieldId=0);

## Purpose

Get the value of a field as a scalar value.

## Remarks

Each convenience method in this family retrieves a field and extracts its data. If the field’s type (as it exists) does not match the type of the convenience method, then the method attempts to convert the data (see Datatype Conversion). If conversion is not possible, the method returns TIBRV_CONVERSION_FAILED.

Method Name | Type | Type Description
`get` `Bool` | `tibrv_``bool` | boolean
`get` `F32` | `tibrv_``f32` | 32-bit floating point
`get` `F64` | `tibrv_``f64` | 64-bit floating point
`get` `I8` | `tibrv_``i8` | 8-bit integer
`get` `I16` | `tibrv_``i16` | 16-bit integer
`get` `I32` | `tibrv_``i32` | 32-bit integer
`get` `I64` | `tibrv_``i64` | 64-bit integer
`get` `U8` | `tibrv_``u8` | 8-bit unsigned integer
`get` `U16` | `tibrv_``u16` | 16-bit unsigned integer
`get` `U32` | `tibrv_``u32` | 32-bit unsigned integer
`get` `U64` | `tibrv_``u64` | 64-bit unsigned integer
`get` `IPAddr32` | `tibrv_``ipaddr32` | 4-byte IP address
`get` `IPPort16` | `tibrv_``ipport16` | 2-byte IP port

Parameter | Description
`fieldName` | Get a field with this name.
`value` | When extracting a scalar type, the program supplies a variable in this parameter, and the method copies the scalar value of the field to that variable.
`fieldId` | Get the field with this identifier. Zero is a special value that signifies no field identifier. All non-zero field identifiers must be unique within each message.

## See Also

Validity of Data Extracted From Message Fields

Field Names and Field Identifiers

Did you find this helpful?

Yes No
Great!
Thanks for taking the time to give us some feedback.
Sorry about that

Why wasn't this helpful? (check all that apply)

Could not find what I was looking for
Instructions confusing or unclear
Instructions did not work

Want to tell us more?

Please select at least one option or provide details about the issue!!

Error occurred while submitting feedback.

Error2 occurred while submitting feedback.

TIBCO Rendezvous®

Copyright © 1997-2025. Cloud Software Group, Inc. All Rights Reserved.