Accessors

ExessStatus exess_get_status(const ExessVariant *variant)

Return the status of a variant.

This returns ExessStatus.EXESS_SUCCESS for any valid value, or the stored status for a ExessDatatype.EXESS_NOTHING variant.

const bool *exess_get_boolean(const ExessVariant *variant)

Return a pointer to the value if variant is a boolean, otherwise null.

const double *exess_get_double(const ExessVariant *variant)

Return a pointer to the value if variant is a double, otherwise null.

This will also access the value for ExessDatatype.EXESS_DECIMAL.

const float *exess_get_float(const ExessVariant *variant)

Return a pointer to the value if variant is a float, otherwise null.

const int64_t *exess_get_long(const ExessVariant *variant)

Return a pointer to the value if variant is a long, otherwise null.

This will also access the value for ExessDatatype.EXESS_INTEGER, ExessDatatype.EXESS_NON_POSITIVE_INTEGER, and ExessDatatype.EXESS_NEGATIVE_INTEGER.

const int32_t *exess_get_int(const ExessVariant *variant)

Return a pointer to the value if variant is an int, otherwise null.

const int16_t *exess_get_short(const ExessVariant *variant)

Return a pointer to the value if variant is a short, otherwise null.

const int8_t *exess_get_byte(const ExessVariant *variant)

Return a pointer to the value if variant is a byte, otherwise null.

const uint64_t *exess_get_ulong(const ExessVariant *variant)

Return a pointer to the value if variant is a ulong, otherwise null.

This will also access the value for ExessDatatype.EXESS_NON_NEGATIVE_INTEGER and ExessDatatype.EXESS_POSITIVE_INTEGER.

const uint32_t *exess_get_uint(const ExessVariant *variant)

Return a pointer to the value if variant is a uint, otherwise null.

const uint16_t *exess_get_ushort(const ExessVariant *variant)

Return a pointer to the value if variant is a ushort, otherwise null.

const uint8_t *exess_get_ubyte(const ExessVariant *variant)

Return a pointer to the value if variant is a ubyte, otherwise null.

const ExessBlob *exess_get_blob(const ExessVariant *variant)

Return a pointer to the value if variant is a date, otherwise null.

const ExessDuration *exess_get_duration(const ExessVariant *variant)

Return a pointer to the value if variant is a duration, otherwise null.

const ExessDateTime *exess_get_datetime(const ExessVariant *variant)

Return a pointer to the value if variant is a datetime, otherwise null.

const ExessTime *exess_get_time(const ExessVariant *variant)

Return a pointer to the value if variant is a time, otherwise null.

const ExessDate *exess_get_date(const ExessVariant *variant)

Return a pointer to the value if variant is a date, otherwise null.