|
gwenhywfar 5.10.1
|
#include <gwenhywfar/types.h>#include <gwenhywfar/list1.h>#include <gwenhywfar/list2.h>#include <gwenhywfar/tree.h>#include <gwenhywfar/db.h>#include <gwenhywfar/xml.h>#include <gwenhywfar/gwenhywfarapi.h>#include <gwenhywfar/stringlist2.h>#include <gwenhywfar/param_fns.h>
Go to the source code of this file.
Typedefs | |
| typedef struct GWEN_PARAM | GWEN_PARAM |
Enumerations | |
| enum | GWEN_PARAM_DATATYPE { GWEN_Param_DataType_Unknown = -1 , GWEN_Param_DataType_Int , GWEN_Param_DataType_Bool , GWEN_Param_DataType_Float , GWEN_Param_DataType_String } |
| enum | GWEN_PARAM_TYPE { GWEN_Param_Type_Unknown = -1 , GWEN_Param_Type_Simple , GWEN_Param_Type_Choice } |
| typedef struct GWEN_PARAM GWEN_PARAM |
| enum GWEN_PARAM_DATATYPE |
| enum GWEN_PARAM_TYPE |
| GWENHYWFAR_API void GWEN_Param_AddFlags | ( | GWEN_PARAM * | p_struct, |
| uint32_t | p_src | ||
| ) |
| GWENHYWFAR_API void GWEN_Param_AddRuntimeFlags | ( | GWEN_PARAM * | p_struct, |
| uint32_t | p_src | ||
| ) |
| GWENHYWFAR_API void GWEN_Param_Attach | ( | GWEN_PARAM * | p_struct | ) |
| GWENHYWFAR_API GWEN_PARAM * GWEN_Param_copy | ( | GWEN_PARAM * | p_struct, |
| const GWEN_PARAM * | p_src | ||
| ) |
Definition at line 229 of file param.c.
References GWEN_StringList2_dup(), GWEN_StringList2_free(), and NULL.

| GWENHYWFAR_API GWEN_PARAM_DATATYPE GWEN_Param_DataType_fromString | ( | const char * | p_s | ) |
Definition at line 25 of file param.c.
References GWEN_Param_DataType_Bool, GWEN_Param_DataType_Float, GWEN_Param_DataType_Int, GWEN_Param_DataType_String, and GWEN_Param_DataType_Unknown.
Referenced by GWEN_Param_ReadDb(), and GWEN_Param_ReadXml().

| GWENHYWFAR_API const char * GWEN_Param_DataType_toString | ( | GWEN_PARAM_DATATYPE | p_i | ) |
Definition at line 51 of file param.c.
References GWEN_Param_DataType_Bool, GWEN_Param_DataType_Float, GWEN_Param_DataType_Int, GWEN_Param_DataType_String, and GWEN_Param_DataType_Unknown.
Referenced by GWEN_Param_WriteDb(), and GWEN_Param_WriteXml().

| GWENHYWFAR_API GWEN_PARAM * GWEN_Param_dup | ( | const GWEN_PARAM * | p_struct | ) |
Definition at line 142 of file param.c.
References GWEN_Param_new(), GWEN_StringList2_dup(), GWEN_StringList2_free(), and NULL.
Referenced by GWEN_Param_List_dup().


| GWENHYWFAR_API void GWEN_Param_free | ( | GWEN_PARAM * | p_struct | ) |
Destructor.
Definition at line 107 of file param.c.
References GWEN_FREE_OBJECT, GWEN_LIST_FINI, GWEN_StringList2_free(), GWEN_TREE_FINI, and NULL.

| GWENHYWFAR_API GWEN_PARAM * GWEN_Param_fromDb | ( | GWEN_DB_NODE * | p_db | ) |
Definition at line 787 of file param.c.
References GWEN_Param_new(), and GWEN_Param_ReadDb().

| GWENHYWFAR_API GWEN_PARAM * GWEN_Param_fromXml | ( | GWEN_XMLNODE * | p_db | ) |
Definition at line 981 of file param.c.
References GWEN_Param_new(), and GWEN_Param_ReadXml().
Referenced by GWEN_Param_List_ReadXml().


| GWENHYWFAR_API GWEN_STRINGLIST2 * GWEN_Param_GetChoices | ( | const GWEN_PARAM * | p_struct | ) |
Getter. Use this function to get the member "choices" (see GWEN_PARAM_choices)
| GWENHYWFAR_API const char * GWEN_Param_GetCurrentValue | ( | const GWEN_PARAM * | p_struct | ) |
Getter. Use this function to get the member "currentValue" (see GWEN_PARAM_currentValue)
Definition at line 350 of file param.c.
Referenced by GWEN_Param_List_WriteValuesToXml().

| GWENHYWFAR_API GWEN_PARAM_DATATYPE GWEN_Param_GetDataType | ( | const GWEN_PARAM * | p_struct | ) |
Getter. Use this function to get the member "dataType" (see GWEN_PARAM_dataType)
| GWENHYWFAR_API const char * GWEN_Param_GetDefaultValue | ( | const GWEN_PARAM * | p_struct | ) |
Getter. Use this function to get the member "defaultValue" (see GWEN_PARAM_defaultValue)
| GWENHYWFAR_API uint32_t GWEN_Param_GetFlags | ( | const GWEN_PARAM * | p_struct | ) |
Getter. Use this function to get the member "flags" (see GWEN_PARAM_flags)
| GWENHYWFAR_API const char * GWEN_Param_GetLongDescription | ( | const GWEN_PARAM * | p_struct | ) |
Getter. Use this function to get the member "longDescription" (see GWEN_PARAM_longDescription)
| GWENHYWFAR_API const char * GWEN_Param_GetName | ( | const GWEN_PARAM * | p_struct | ) |
Getter. Use this function to get the member "name" (see GWEN_PARAM_name)
Definition at line 314 of file param.c.
Referenced by GWEN_Param_List_WriteValuesToXml().

| GWENHYWFAR_API uint32_t GWEN_Param_GetRuntimeFlags | ( | const GWEN_PARAM * | p_struct | ) |
Getter. Use this function to get the member "runtimeFlags" (see GWEN_PARAM_runtimeFlags)
| GWENHYWFAR_API const char * GWEN_Param_GetShortDescription | ( | const GWEN_PARAM * | p_struct | ) |
Getter. Use this function to get the member "shortDescription" (see GWEN_PARAM_shortDescription)
| GWENHYWFAR_API GWEN_PARAM_TYPE GWEN_Param_GetType | ( | const GWEN_PARAM * | p_struct | ) |
Getter. Use this function to get the member "type" (see GWEN_PARAM_type)
| GWENHYWFAR_API GWEN_PARAM_LIST * GWEN_Param_List_dup | ( | const GWEN_PARAM_LIST * | p_src | ) |
Definition at line 532 of file param.c.
References GWEN_Param_dup(), GWEN_Param_List_Add(), GWEN_Param_List_First(), GWEN_Param_List_new(), and GWEN_Param_List_Next().

| GWENHYWFAR_API GWEN_PARAM * GWEN_Param_List_GetByName | ( | const GWEN_PARAM_LIST * | p_list, |
| const char * | p_cmp | ||
| ) |
Definition at line 989 of file param.c.
References GWEN_Param_List_First(), GWEN_Param_List_Next(), and NULL.
Referenced by GWEN_Param_List_GetCurrentValueAsDouble(), GWEN_Param_List_GetCurrentValueAsInt(), GWEN_Param_List_ReadValuesFromXml(), GWEN_Param_List_SetCurrentValueAsDouble(), and GWEN_Param_List_SetCurrentValueAsInt().


| GWENHYWFAR_API GWEN_PARAM * GWEN_Param_new | ( | void | ) |
Constructor.
Definition at line 81 of file param.c.
References GWEN_LIST_INIT, GWEN_NEW_OBJECT, GWEN_Param_DataType_Unknown, GWEN_Param_Type_Unknown, GWEN_TREE_INIT, and NULL.
Referenced by GWEN_Param_dup(), GWEN_Param_fromDb(), and GWEN_Param_fromXml().

| GWENHYWFAR_API void GWEN_Param_ReadDb | ( | GWEN_PARAM * | p_struct, |
| GWEN_DB_NODE * | p_db | ||
| ) |
Definition at line 551 of file param.c.
References GWEN_DB_GetCharValue(), GWEN_DB_GetIntValue(), GWEN_Param_DataType_fromString(), GWEN_Param_DataType_Unknown, GWEN_Param_Type_fromString(), GWEN_Param_Type_Unknown, GWEN_StringList2_free(), GWEN_StringList2_fromDb(), GWEN_StringList2_IntertMode_AlwaysAdd, and NULL.
Referenced by GWEN_Param_fromDb().


| GWENHYWFAR_API void GWEN_Param_ReadXml | ( | GWEN_PARAM * | p_struct, |
| GWEN_XMLNODE * | p_db | ||
| ) |
Definition at line 800 of file param.c.
References GWEN_Param_DataType_fromString(), GWEN_Param_DataType_Unknown, GWEN_Param_Type_fromString(), GWEN_Param_Type_Unknown, GWEN_StringList2_free(), GWEN_StringList2_fromXml(), GWEN_StringList2_IntertMode_AlwaysAdd, GWEN_XMLNode_FindFirstTag(), GWEN_XMLNode_GetCharValue(), GWEN_XMLNode_GetIntValue(), and NULL.
Referenced by GWEN_Param_fromXml().


| GWENHYWFAR_API void GWEN_Param_SetChoices | ( | GWEN_PARAM * | p_struct, |
| GWEN_STRINGLIST2 * | p_src | ||
| ) |
Setter. Use this function to set the member "choices" (see GWEN_PARAM_choices)
Definition at line 491 of file param.c.
References GWEN_StringList2_free(), and NULL.

| GWENHYWFAR_API void GWEN_Param_SetCurrentValue | ( | GWEN_PARAM * | p_struct, |
| const char * | p_src | ||
| ) |
Setter. Use this function to set the member "currentValue" (see GWEN_PARAM_currentValue)
Definition at line 461 of file param.c.
References NULL.
Referenced by GWEN_Param_List_ReadValuesFromXml(), GWEN_Param_SetCurrentValueAsDouble(), and GWEN_Param_SetCurrentValueAsInt().

| GWENHYWFAR_API void GWEN_Param_SetDataType | ( | GWEN_PARAM * | p_struct, |
| GWEN_PARAM_DATATYPE | p_src | ||
| ) |
Setter. Use this function to set the member "dataType" (see GWEN_PARAM_dataType)
| GWENHYWFAR_API void GWEN_Param_SetDefaultValue | ( | GWEN_PARAM * | p_struct, |
| const char * | p_src | ||
| ) |
Setter. Use this function to set the member "defaultValue" (see GWEN_PARAM_defaultValue)
Definition at line 476 of file param.c.
References NULL.
| GWENHYWFAR_API void GWEN_Param_SetFlags | ( | GWEN_PARAM * | p_struct, |
| uint32_t | p_src | ||
| ) |
Setter. Use this function to set the member "flags" (see GWEN_PARAM_flags)
| GWENHYWFAR_API void GWEN_Param_SetLongDescription | ( | GWEN_PARAM * | p_struct, |
| const char * | p_src | ||
| ) |
Setter. Use this function to set the member "longDescription" (see GWEN_PARAM_longDescription)
Definition at line 446 of file param.c.
References NULL.
| GWENHYWFAR_API void GWEN_Param_SetName | ( | GWEN_PARAM * | p_struct, |
| const char * | p_src | ||
| ) |
Setter. Use this function to set the member "name" (see GWEN_PARAM_name)
Definition at line 386 of file param.c.
References NULL.
| GWENHYWFAR_API void GWEN_Param_SetRuntimeFlags | ( | GWEN_PARAM * | p_struct, |
| uint32_t | p_src | ||
| ) |
Setter. Use this function to set the member "runtimeFlags" (see GWEN_PARAM_runtimeFlags)
| GWENHYWFAR_API void GWEN_Param_SetShortDescription | ( | GWEN_PARAM * | p_struct, |
| const char * | p_src | ||
| ) |
Setter. Use this function to set the member "shortDescription" (see GWEN_PARAM_shortDescription)
Definition at line 431 of file param.c.
References NULL.
| GWENHYWFAR_API void GWEN_Param_SetType | ( | GWEN_PARAM * | p_struct, |
| GWEN_PARAM_TYPE | p_src | ||
| ) |
Setter. Use this function to set the member "type" (see GWEN_PARAM_type)
| GWENHYWFAR_API void GWEN_Param_SubFlags | ( | GWEN_PARAM * | p_struct, |
| uint32_t | p_src | ||
| ) |
| GWENHYWFAR_API void GWEN_Param_SubRuntimeFlags | ( | GWEN_PARAM * | p_struct, |
| uint32_t | p_src | ||
| ) |
| GWENHYWFAR_API int GWEN_Param_toDb | ( | const GWEN_PARAM * | p_struct, |
| GWEN_DB_NODE * | p_db | ||
| ) |
Definition at line 795 of file param.c.
References GWEN_Param_WriteDb().

| GWENHYWFAR_API void GWEN_Param_toXml | ( | const GWEN_PARAM * | p_struct, |
| GWEN_XMLNODE * | p_db | ||
| ) |
Definition at line 976 of file param.c.
References GWEN_Param_WriteXml().

| GWENHYWFAR_API GWEN_PARAM * GWEN_Param_Tree_GetByName | ( | const GWEN_PARAM_TREE * | p_tree, |
| const char * | p_cmp | ||
| ) |
| GWENHYWFAR_API GWEN_PARAM_TYPE GWEN_Param_Type_fromString | ( | const char * | p_s | ) |
Definition at line 40 of file param.c.
References GWEN_Param_Type_Choice, GWEN_Param_Type_Simple, and GWEN_Param_Type_Unknown.
Referenced by GWEN_Param_ReadDb(), and GWEN_Param_ReadXml().

| GWENHYWFAR_API const char * GWEN_Param_Type_toString | ( | GWEN_PARAM_TYPE | p_i | ) |
Definition at line 68 of file param.c.
References GWEN_Param_Type_Choice, GWEN_Param_Type_Simple, and GWEN_Param_Type_Unknown.
Referenced by GWEN_Param_WriteDb(), and GWEN_Param_WriteXml().

| GWENHYWFAR_API int GWEN_Param_WriteDb | ( | const GWEN_PARAM * | p_struct, |
| GWEN_DB_NODE * | p_db | ||
| ) |
Definition at line 678 of file param.c.
References DBG_INFO, GWEN_DB_DeleteVar(), GWEN_DB_FLAGS_OVERWRITE_VARS, GWEN_DB_SetCharValue(), GWEN_DB_SetIntValue(), GWEN_LOGDOMAIN, GWEN_Param_DataType_toString(), GWEN_Param_Type_toString(), and GWEN_StringList2_toDb().
Referenced by GWEN_Param_toDb().


| GWENHYWFAR_API void GWEN_Param_WriteXml | ( | const GWEN_PARAM * | p_struct, |
| GWEN_XMLNODE * | p_db | ||
| ) |
Definition at line 933 of file param.c.
References GWEN_Param_DataType_toString(), GWEN_Param_Type_toString(), GWEN_StringList2_toXml(), GWEN_XMLNode_AddChild(), GWEN_XMLNode_new(), GWEN_XMLNode_SetCharValue(), GWEN_XMLNode_SetIntValue(), and GWEN_XMLNodeTypeTag.
Referenced by GWEN_Param_List_WriteXml(), and GWEN_Param_toXml().

