Accessors¶
-
ExessStatus
exess_get_status(const ExessVariant *variant)¶ Return the status of a variant.
This returns
ExessStatus.EXESS_SUCCESSfor any valid value, or the stored status for aExessDatatype.EXESS_NOTHINGvariant.
-
const bool *
exess_get_boolean(const ExessVariant *variant)¶ Return a pointer to the value if
variantis a boolean, otherwise null.
-
const double *
exess_get_double(const ExessVariant *variant)¶ Return a pointer to the value if
variantis 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
variantis a float, otherwise null.
-
const int64_t *
exess_get_long(const ExessVariant *variant)¶ Return a pointer to the value if
variantis a long, otherwise null.This will also access the value for
ExessDatatype.EXESS_INTEGER,ExessDatatype.EXESS_NON_POSITIVE_INTEGER, andExessDatatype.EXESS_NEGATIVE_INTEGER.
-
const int32_t *
exess_get_int(const ExessVariant *variant)¶ Return a pointer to the value if
variantis an int, otherwise null.
-
const int16_t *
exess_get_short(const ExessVariant *variant)¶ Return a pointer to the value if
variantis a short, otherwise null.
-
const int8_t *
exess_get_byte(const ExessVariant *variant)¶ Return a pointer to the value if
variantis a byte, otherwise null.
-
const uint64_t *
exess_get_ulong(const ExessVariant *variant)¶ Return a pointer to the value if
variantis a ulong, otherwise null.This will also access the value for
ExessDatatype.EXESS_NON_NEGATIVE_INTEGERandExessDatatype.EXESS_POSITIVE_INTEGER.
-
const uint32_t *
exess_get_uint(const ExessVariant *variant)¶ Return a pointer to the value if
variantis a uint, otherwise null.
-
const uint16_t *
exess_get_ushort(const ExessVariant *variant)¶ Return a pointer to the value if
variantis a ushort, otherwise null.
-
const uint8_t *
exess_get_ubyte(const ExessVariant *variant)¶ Return a pointer to the value if
variantis a ubyte, otherwise null.
-
const ExessBlob *
exess_get_blob(const ExessVariant *variant)¶ Return a pointer to the value if
variantis a date, otherwise null.
-
const ExessDuration *
exess_get_duration(const ExessVariant *variant)¶ Return a pointer to the value if
variantis a duration, otherwise null.
-
const ExessDateTime *
exess_get_datetime(const ExessVariant *variant)¶ Return a pointer to the value if
variantis a datetime, otherwise null.
-
const ExessTime *
exess_get_time(const ExessVariant *variant)¶ Return a pointer to the value if
variantis a time, otherwise null.
-
const ExessDate *
exess_get_date(const ExessVariant *variant)¶ Return a pointer to the value if
variantis a date, otherwise null.