Adaptive Framework  0.9.0
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
Functions
afw_object.c File Reference

Interface helpers for afw_object. More...

#include "afw_internal.h"

Go to the source code of this file.

Functions

 afw_object_set_immutable (const afw_object_t *instance, afw_xctx_t *xctx)
 Set an object to immutable if it is not already. More...
 
 afw_object_remove_property (const afw_object_t *instance, const afw_utf8_t *property_name, afw_xctx_t *xctx)
 Remove a property from object. More...
 
 afw_object_set_property (const afw_object_t *instance, const afw_utf8_t *property_name, const afw_value_t *value, afw_xctx_t *xctx)
 Set the value of an object's property. More...
 
 afw_object_set_property_as_date_from_parts (const afw_object_t *instance, const afw_utf8_t *property_name, int year, int month, int day, int tz_hours_offset, int tz_minutes_offset, afw_xctx_t *xctx)
 Set a date property from parts. More...
 
 afw_object_set_property_as_dateTime_from_parts (const afw_object_t *instance, const afw_utf8_t *property_name, int year, int month, int day, int hour, int minute, int second, int microsecond, int tz_hours_offset, int tz_minutes_offset, afw_xctx_t *xctx)
 Set a dateTime property from parts. More...
 
 afw_object_set_property_as_dayTimeDuration_from_parts (const afw_object_t *instance, const afw_utf8_t *property_name, afw_boolean_t is_positive, int days, int hours, int minutes, int seconds, int microseconds, afw_xctx_t *xctx)
 Set a dayTimeDuration property from parts. More...
 
 afw_object_set_property_as_time_from_parts (const afw_object_t *instance, const afw_utf8_t *property_name, int hour, int minute, int second, int microsecond, int tz_hours_offset, int tz_minutes_offset, afw_xctx_t *xctx)
 Set a time property from parts. More...
 
 afw_object_set_property_as_yearMonthDuration_from_parts (const afw_object_t *instance, const afw_utf8_t *property_name, afw_boolean_t is_positive, int years, int months, afw_xctx_t *xctx)
 Set a yearMonthDuration property from parts. More...
 
 afw_object_set_property_as_string_from_utf8_z (const afw_object_t *instance, const afw_utf8_t *property_name, const afw_utf8_z_t *string_z, afw_xctx_t *xctx)
 Set an string property from utf8_z. More...
 
 afw_object_get_property_compile_as (const afw_object_t *instance, const afw_utf8_t *property_name, const afw_utf8_t *source_location, afw_compile_type_t compile_type, const afw_pool_t *p, afw_xctx_t *xctx)
 Compile a property value using specified compile type. More...
 
 afw_object_get_property_compile_and_evaluate_as (const afw_object_t *instance, const afw_utf8_t *property_name, const afw_utf8_t *source_location, afw_compile_type_t compile_type, const afw_pool_t *p, afw_xctx_t *xctx)
 Compile and evaluate a property value using specified compile type. More...
 
 afw_object_get_property_extended (const afw_object_t *instance, const afw_utf8_t *property_name_extended, afw_xctx_t *xctx)
 Get the value of an object's own property or embedded property. More...
 
 afw_object_old_get_property_as_array_of_values (const afw_object_t *instance, const afw_utf8_t *property_name, const afw_pool_t *p, afw_xctx_t *xctx)
 Return a NULL terminated list of values for an object property in a specified pool. More...
 
 afw_object_old_get_property_as_array_of_strings (const afw_object_t *instance, const afw_utf8_t *property_name, const afw_pool_t *p, afw_xctx_t *xctx)
 Return a NULL terminated list of strings for an object property in a specified pool. More...
 
 afw_object_old_get_property_as_compiled_hybrid (const afw_object_t *instance, const afw_utf8_t *property_name, const afw_utf8_t *source_location, const afw_compile_shared_t *shared, const afw_pool_t *p, afw_xctx_t *xctx)
 Return a compiled hybrid property value. More...
 
 afw_object_old_get_property_as_boolean_deprecated (const afw_object_t *instance, const afw_utf8_t *property_name, afw_xctx_t *xctx)
 Get an object's property value as a boolean. More...
 
 afw_object_old_get_property_as_integer_deprecated (const afw_object_t *instance, const afw_utf8_t *property_name, afw_boolean_t *found, afw_xctx_t *xctx)
 Get an object's property value as an integer. More...
 
 afw_object_old_get_property_as_utf8 (const afw_object_t *instance, const afw_utf8_t *property_name, const afw_pool_t *p, afw_xctx_t *xctx)
 Get an object's property value as a string in specified pool. More...
 
 afw_object_old_get_property_as_utf8_z (const afw_object_t *instance, const afw_utf8_t *property_name, const afw_pool_t *p, afw_xctx_t *xctx)
 Get an object's property value including ancestors as utf8_z in specified pool. More...
 
 afw_object_merge (const afw_object_t *instance, const afw_object_t *from, afw_boolean_t replace, afw_xctx_t *xctx)
 Merge properties from one object into another. More...
 
 afw_object_property_count (const afw_object_t *object, afw_xctx_t *xctx)
 Count the number of properties in an object. More...
 

Detailed Description

Interface helpers for afw_object.

Definition in file afw_object.c.