event | The event whose field is to be returned. |
field_name | The name of the field to be returned. Note that field_name can directly identify any field in the event, no matter how deeply nested that field may be. |
value | The value associated with the field that is output from this function. |
Function Name | Field Value Type |
awGetBooleanField | BrokerBoolean * |
awGetByteField | char * |
awGetCharField | char * |
awGetDateField | BrokerDate * |
awGetDoubleField | double * |
awGetFloatField | float * |
awGetIntegerField | int * |
awGetLongField | BrokerLong * Note: Available only on platforms which support 64-bit integral representations. |
awGetLongFieldNative | NativeLong * |
awGetShortField | short * |
awGetStringField | char ** Note: The caller is responsible for calling free on the value. |
awGetUCCharField | charUC * |
awGetUCStringField | charUC **b |
Possible BrokerError major codes | Meaning |
AW_ERROR_FIELD_NOT_FOUND | The event is associated with a Broker client and field_name does not exist in the event or an attempt was made to obtain the value of an envelope field that has not been set. |
AW_ERROR_FIELD_TYPE_MISMATCH | The field's type does not match the type of value or the field_name incorrectly accesses a type. |
AW_ERROR_INVALID_EVENT | The event is invalid. |
AW_ERROR_INVALID_FIELD_NAME | The field_name is invalid. |
AW_ERROR_NULL_PARAM | The parameter field_name or value is NULL. |