/* ------- code automatically created by ../scripts/adms_build_object.pl -------------- */ #ifndef objectmath_h #define objectmath_h #include #include typedef enum { adms_math_enumeration_static_no, adms_math_enumeration_static_yes } e_math_static; win32_interface char* adms_math_tostring_static_impl (p_admsttransform myadmsttransform,p_enumeration myenumeration); win32_interface e_math_static adms_math_fromstring_static_impl (p_admsttransform myadmsttransform,char*token); typedef enum { adms_math_enumeration_dynamic_no, adms_math_enumeration_dynamic_yes } e_math_dynamic; win32_interface char* adms_math_tostring_dynamic_impl (p_admsttransform myadmsttransform,p_enumeration myenumeration); win32_interface e_math_dynamic adms_math_fromstring_dynamic_impl (p_admsttransform myadmsttransform,char*token); typedef enum { adms_math_enumeration_dependency_constant, adms_math_enumeration_dependency_linear, adms_math_enumeration_dependency_nonlinear } e_math_dependency; win32_interface char* adms_math_tostring_dependency_impl (p_admsttransform myadmsttransform,p_enumeration myenumeration); win32_interface e_math_dependency adms_math_fromstring_dependency_impl (p_admsttransform myadmsttransform,char*token); struct s_math { t_adms _adms; p_quark _name; int _name_isdefault : 1; p_real _value; int _value_isdefault : 1; p_enumeration _static; int _static_isdefault : 1; p_enumeration _dynamic; int _dynamic_isdefault : 1; p_enumeration _dependency; int _dependency_isdefault : 1; p_slist _attribute; int _attribute_isdefault : 1; }; #include #include #include #include #undef win32_interface #if defined(WIN32) # if defined(_inside_admsObject) # define win32_interface __declspec(dllexport) # else # define win32_interface __declspec(dllimport) # endif #else # define win32_interface extern #endif win32_interface char*adms_math_uid (p_math mymath); win32_interface int adms_math_cmp (p_math mymath,p_math refmath); win32_interface p_math adms_math_new(p_quark myname); win32_interface p_adms adms_math_new_impl (p_adms arguments[]); #define adms_math(member) ((p_math) (member)) #define adms_math_isdefault_name(math) (adms_math(math)->_name_isdefault) #define adms_math_valueof_name(math) (adms_math(math)->_name) #define adms_math_isdefault_value(math) (adms_math(math)->_value_isdefault) #define adms_math_valueof_value(math) (adms_math(math)->_value) #define adms_math_isdefault_static(math) (adms_math(math)->_static_isdefault) #define adms_math_valueof_static(math) (adms_math(math)->_static) #define adms_math_isdefault_dynamic(math) (adms_math(math)->_dynamic_isdefault) #define adms_math_valueof_dynamic(math) (adms_math(math)->_dynamic) #define adms_math_isdefault_dependency(math) (adms_math(math)->_dependency_isdefault) #define adms_math_valueof_dependency(math) (adms_math(math)->_dependency) #define adms_math_isdefault_attribute(math) (adms_math(math)->_attribute_isdefault) #define adms_math_valueof_attribute(math) (adms_math(math)->_attribute) #define adms_math_valueof_adms(math) ((p_adms)math) win32_interface inline void adms_math_valueto_name (p_math mymath,p_quark _name); win32_interface inline void adms_math_valueto_value (p_math mymath,p_real _value); win32_interface inline void adms_math_valueto_static (p_math mymath,p_enumeration _static); win32_interface inline void adms_math_valueto_dynamic (p_math mymath,p_enumeration _dynamic); win32_interface inline void adms_math_valueto_dependency (p_math mymath,p_enumeration _dependency); win32_interface inline void adms_math_valueto_attribute (p_math mymath,p_slist _attribute); win32_interface p_attribute adms_math_list_attribute_lookup_by_id (p_math mymymath,p_quark myname); win32_interface p_attribute adms_math_list_attribute_prepend_by_id (p_math mymymath,p_quark myname); win32_interface p_attribute adms_math_list_attribute_prepend_by_id_once_or_ignore (p_math mymymath,p_quark myname); win32_interface void adms_math_list_attribute_prepend (p_math mymymath,p_attribute myattribute); win32_interface inline void adms_math_free(p_math mymath); #endif /* objectmath_h */