gwenhywfar  4.99.8beta
Functions
param.c File Reference
#include "param_p.h"
#include <gwenhywfar/misc.h>
#include <gwenhywfar/debug.h>
#include "param_fns.c"
Include dependency graph for param.c:

Go to the source code of this file.

Functions

void GWEN_Param_AddFlags (GWEN_PARAM *p_struct, uint32_t p_src)
 
void GWEN_Param_AddRuntimeFlags (GWEN_PARAM *p_struct, uint32_t p_src)
 
void GWEN_Param_Attach (GWEN_PARAM *p_struct)
 
GWEN_PARAMGWEN_Param_copy (GWEN_PARAM *p_struct, const GWEN_PARAM *p_src)
 
GWEN_PARAM_DATATYPE GWEN_Param_DataType_fromString (const char *p_s)
 
const char * GWEN_Param_DataType_toString (GWEN_PARAM_DATATYPE p_i)
 
GWEN_PARAMGWEN_Param_dup (const GWEN_PARAM *p_src)
 
void GWEN_Param_free (GWEN_PARAM *p_struct)
 
GWEN_PARAMGWEN_Param_fromDb (GWEN_DB_NODE *p_db)
 
GWEN_PARAMGWEN_Param_fromXml (GWEN_XMLNODE *p_db)
 
GWEN_STRINGLIST2GWEN_Param_GetChoices (const GWEN_PARAM *p_struct)
 
const char * GWEN_Param_GetCurrentValue (const GWEN_PARAM *p_struct)
 
GWEN_PARAM_DATATYPE GWEN_Param_GetDataType (const GWEN_PARAM *p_struct)
 
const char * GWEN_Param_GetDefaultValue (const GWEN_PARAM *p_struct)
 
uint32_t GWEN_Param_GetFlags (const GWEN_PARAM *p_struct)
 
double GWEN_Param_GetInternalFloatValue (const GWEN_PARAM *p_struct)
 
int GWEN_Param_GetInternalIntValue (const GWEN_PARAM *p_struct)
 
const char * GWEN_Param_GetLongDescription (const GWEN_PARAM *p_struct)
 
const char * GWEN_Param_GetName (const GWEN_PARAM *p_struct)
 
uint32_t GWEN_Param_GetRuntimeFlags (const GWEN_PARAM *p_struct)
 
const char * GWEN_Param_GetShortDescription (const GWEN_PARAM *p_struct)
 
GWEN_PARAM_TYPE GWEN_Param_GetType (const GWEN_PARAM *p_struct)
 
GWEN_PARAM_LISTGWEN_Param_List_dup (const GWEN_PARAM_LIST *p_src)
 
GWEN_PARAMGWEN_Param_List_GetByName (const GWEN_PARAM_LIST *p_list, const char *p_cmp)
 
GWEN_PARAMGWEN_Param_new (void)
 
void GWEN_Param_ReadDb (GWEN_PARAM *p_struct, GWEN_DB_NODE *p_db)
 
void GWEN_Param_ReadXml (GWEN_PARAM *p_struct, GWEN_XMLNODE *p_db)
 
void GWEN_Param_SetChoices (GWEN_PARAM *p_struct, GWEN_STRINGLIST2 *p_src)
 
void GWEN_Param_SetCurrentValue (GWEN_PARAM *p_struct, const char *p_src)
 
void GWEN_Param_SetDataType (GWEN_PARAM *p_struct, GWEN_PARAM_DATATYPE p_src)
 
void GWEN_Param_SetDefaultValue (GWEN_PARAM *p_struct, const char *p_src)
 
void GWEN_Param_SetFlags (GWEN_PARAM *p_struct, uint32_t p_src)
 
void GWEN_Param_SetInternalFloatValue (GWEN_PARAM *p_struct, double p_src)
 
void GWEN_Param_SetInternalIntValue (GWEN_PARAM *p_struct, int p_src)
 
void GWEN_Param_SetLongDescription (GWEN_PARAM *p_struct, const char *p_src)
 
void GWEN_Param_SetName (GWEN_PARAM *p_struct, const char *p_src)
 
void GWEN_Param_SetRuntimeFlags (GWEN_PARAM *p_struct, uint32_t p_src)
 
void GWEN_Param_SetShortDescription (GWEN_PARAM *p_struct, const char *p_src)
 
void GWEN_Param_SetType (GWEN_PARAM *p_struct, GWEN_PARAM_TYPE p_src)
 
void GWEN_Param_SubFlags (GWEN_PARAM *p_struct, uint32_t p_src)
 
void GWEN_Param_SubRuntimeFlags (GWEN_PARAM *p_struct, uint32_t p_src)
 
int GWEN_Param_toDb (const GWEN_PARAM *p_struct, GWEN_DB_NODE *p_db)
 
void GWEN_Param_toXml (const GWEN_PARAM *p_struct, GWEN_XMLNODE *p_db)
 
GWEN_PARAMGWEN_Param_Tree_GetByName (const GWEN_PARAM_TREE *p_tree, const char *p_cmp)
 
GWEN_PARAM_TYPE GWEN_Param_Type_fromString (const char *p_s)
 
const char * GWEN_Param_Type_toString (GWEN_PARAM_TYPE p_i)
 
int GWEN_Param_WriteDb (const GWEN_PARAM *p_struct, GWEN_DB_NODE *p_db)
 
void GWEN_Param_WriteXml (const GWEN_PARAM *p_struct, GWEN_XMLNODE *p_db)
 

Function Documentation

void GWEN_Param_AddFlags ( GWEN_PARAM p_struct,
uint32_t  p_src 
)

Add flags. Use this function to add flags to the member "flags"

Definition at line 363 of file param.c.

void GWEN_Param_AddRuntimeFlags ( GWEN_PARAM p_struct,
uint32_t  p_src 
)

Add flags. Use this function to add flags to the member "runtimeFlags"

Definition at line 458 of file param.c.

void GWEN_Param_Attach ( GWEN_PARAM p_struct)

Definition at line 121 of file param.c.

GWEN_PARAM* GWEN_Param_copy ( GWEN_PARAM p_struct,
const GWEN_PARAM p_src 
)

Definition at line 207 of file param.c.

References GWEN_StringList2_dup(), GWEN_StringList2_free(), and NULL.

Here is the call graph for this function:

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().

Here is the caller graph for this function:

const char* GWEN_Param_DataType_toString ( GWEN_PARAM_DATATYPE  p_i)

Definition at line 49 of file param.c.

References GWEN_Param_DataType_Bool, GWEN_Param_DataType_Float, GWEN_Param_DataType_Int, and GWEN_Param_DataType_String.

Referenced by GWEN_Param_WriteDb(), and GWEN_Param_WriteXml().

Here is the caller graph for this function:

GWEN_PARAM* GWEN_Param_dup ( const GWEN_PARAM p_src)

Definition at line 127 of file param.c.

References GWEN_Param_new(), GWEN_StringList2_dup(), GWEN_StringList2_free(), and NULL.

Referenced by GWEN_Param_List_dup().

Here is the call graph for this function:

Here is the caller graph for this function:

void GWEN_Param_free ( GWEN_PARAM p_struct)

Destructor.

Definition at line 100 of file param.c.

References GWEN_FREE_OBJECT, GWEN_LIST_FINI, GWEN_StringList2_free(), and GWEN_TREE_FINI.

Here is the call graph for this function:

GWEN_PARAM* GWEN_Param_fromDb ( GWEN_DB_NODE p_db)

Definition at line 648 of file param.c.

References GWEN_Param_new(), and GWEN_Param_ReadDb().

Here is the call graph for this function:

GWEN_PARAM* GWEN_Param_fromXml ( GWEN_XMLNODE p_db)

Definition at line 779 of file param.c.

References GWEN_Param_new(), and GWEN_Param_ReadXml().

Referenced by GWEN_Param_List_ReadXml().

Here is the call graph for this function:

Here is the caller graph for this function:

GWEN_STRINGLIST2* GWEN_Param_GetChoices ( const GWEN_PARAM p_struct)

Getter. Use this function to get the member "choices"

Definition at line 325 of file param.c.

const char* GWEN_Param_GetCurrentValue ( const GWEN_PARAM p_struct)

Getter. Use this function to get the member "currentValue"

Definition at line 315 of file param.c.

Referenced by GWEN_Param_List_WriteValuesToXml().

Here is the caller graph for this function:

GWEN_PARAM_DATATYPE GWEN_Param_GetDataType ( const GWEN_PARAM p_struct)

Getter. Use this function to get the member "dataType"

Definition at line 300 of file param.c.

const char* GWEN_Param_GetDefaultValue ( const GWEN_PARAM p_struct)

Getter. Use this function to get the member "defaultValue"

Definition at line 320 of file param.c.

uint32_t GWEN_Param_GetFlags ( const GWEN_PARAM p_struct)

Getter. Use this function to get the member "flags"

Definition at line 290 of file param.c.

double GWEN_Param_GetInternalFloatValue ( const GWEN_PARAM p_struct)

Definition at line 335 of file param.c.

int GWEN_Param_GetInternalIntValue ( const GWEN_PARAM p_struct)

Definition at line 330 of file param.c.

const char* GWEN_Param_GetLongDescription ( const GWEN_PARAM p_struct)

Getter. Use this function to get the member "longDescription"

Definition at line 310 of file param.c.

const char* GWEN_Param_GetName ( const GWEN_PARAM p_struct)

Getter. Use this function to get the member "name"

Definition at line 285 of file param.c.

Referenced by GWEN_Param_List_WriteValuesToXml().

Here is the caller graph for this function:

uint32_t GWEN_Param_GetRuntimeFlags ( const GWEN_PARAM p_struct)

Getter. Use this function to get the member "runtimeFlags"

Definition at line 340 of file param.c.

const char* GWEN_Param_GetShortDescription ( const GWEN_PARAM p_struct)

Getter. Use this function to get the member "shortDescription"

Definition at line 305 of file param.c.

GWEN_PARAM_TYPE GWEN_Param_GetType ( const GWEN_PARAM p_struct)

Getter. Use this function to get the member "type"

Definition at line 295 of file param.c.

GWEN_PARAM_LIST* GWEN_Param_List_dup ( const GWEN_PARAM_LIST p_src)

Definition at line 469 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().

Here is the call graph for this function:

GWEN_PARAM* GWEN_Param_List_GetByName ( const GWEN_PARAM_LIST p_list,
const char *  p_cmp 
)
GWEN_PARAM* GWEN_Param_new ( void  )

Constructor.

Definition at line 75 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().

Here is the caller graph for this function:

void GWEN_Param_ReadDb ( GWEN_PARAM p_struct,
GWEN_DB_NODE p_db 
)
void GWEN_Param_ReadXml ( GWEN_PARAM p_struct,
GWEN_XMLNODE p_db 
)
void GWEN_Param_SetChoices ( GWEN_PARAM p_struct,
GWEN_STRINGLIST2 p_src 
)

Setter. Use this function to set the member "choices"

Definition at line 435 of file param.c.

References GWEN_StringList2_free().

Here is the call graph for this function:

void GWEN_Param_SetCurrentValue ( GWEN_PARAM p_struct,
const char *  p_src 
)

Setter. Use this function to set the member "currentValue"

Definition at line 409 of file param.c.

References NULL.

Referenced by GWEN_Param_List_ReadValuesFromXml(), GWEN_Param_SetCurrentValueAsDouble(), and GWEN_Param_SetCurrentValueAsInt().

Here is the caller graph for this function:

void GWEN_Param_SetDataType ( GWEN_PARAM p_struct,
GWEN_PARAM_DATATYPE  p_src 
)

Setter. Use this function to set the member "dataType"

Definition at line 378 of file param.c.

void GWEN_Param_SetDefaultValue ( GWEN_PARAM p_struct,
const char *  p_src 
)

Setter. Use this function to set the member "defaultValue"

Definition at line 422 of file param.c.

References NULL.

void GWEN_Param_SetFlags ( GWEN_PARAM p_struct,
uint32_t  p_src 
)

Setter. Use this function to set the member "flags"

Definition at line 358 of file param.c.

void GWEN_Param_SetInternalFloatValue ( GWEN_PARAM p_struct,
double  p_src 
)

Definition at line 448 of file param.c.

void GWEN_Param_SetInternalIntValue ( GWEN_PARAM p_struct,
int  p_src 
)

Definition at line 443 of file param.c.

void GWEN_Param_SetLongDescription ( GWEN_PARAM p_struct,
const char *  p_src 
)

Setter. Use this function to set the member "longDescription"

Definition at line 396 of file param.c.

References NULL.

void GWEN_Param_SetName ( GWEN_PARAM p_struct,
const char *  p_src 
)

Setter. Use this function to set the member "name"

Definition at line 345 of file param.c.

References NULL.

void GWEN_Param_SetRuntimeFlags ( GWEN_PARAM p_struct,
uint32_t  p_src 
)

Setter. Use this function to set the member "runtimeFlags"

Definition at line 453 of file param.c.

void GWEN_Param_SetShortDescription ( GWEN_PARAM p_struct,
const char *  p_src 
)

Setter. Use this function to set the member "shortDescription"

Definition at line 383 of file param.c.

References NULL.

void GWEN_Param_SetType ( GWEN_PARAM p_struct,
GWEN_PARAM_TYPE  p_src 
)

Setter. Use this function to set the member "type"

Definition at line 373 of file param.c.

void GWEN_Param_SubFlags ( GWEN_PARAM p_struct,
uint32_t  p_src 
)

Sub flags. Use this function to sub flags from the member "flags"

Definition at line 368 of file param.c.

void GWEN_Param_SubRuntimeFlags ( GWEN_PARAM p_struct,
uint32_t  p_src 
)

Sub flags. Use this function to sub flags from the member "runtimeFlags"

Definition at line 463 of file param.c.

int GWEN_Param_toDb ( const GWEN_PARAM p_struct,
GWEN_DB_NODE p_db 
)

Definition at line 655 of file param.c.

References GWEN_Param_WriteDb().

Here is the call graph for this function:

void GWEN_Param_toXml ( const GWEN_PARAM p_struct,
GWEN_XMLNODE p_db 
)

Definition at line 775 of file param.c.

References GWEN_Param_WriteXml().

Here is the call graph for this function:

GWEN_PARAM* GWEN_Param_Tree_GetByName ( const GWEN_PARAM_TREE *  p_tree,
const char *  p_cmp 
)

Definition at line 805 of file param.c.

References NULL.

GWEN_PARAM_TYPE GWEN_Param_Type_fromString ( const char *  p_s)

Definition at line 39 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().

Here is the caller graph for this function:

const char* GWEN_Param_Type_toString ( GWEN_PARAM_TYPE  p_i)

Definition at line 64 of file param.c.

References GWEN_Param_Type_Choice, and GWEN_Param_Type_Simple.

Referenced by GWEN_Param_WriteDb(), and GWEN_Param_WriteXml().

Here is the caller graph for this function:

int GWEN_Param_WriteDb ( const GWEN_PARAM p_struct,
GWEN_DB_NODE p_db 
)

Definition at line 566 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().

Here is the call graph for this function:

Here is the caller graph for this function:

void GWEN_Param_WriteXml ( const GWEN_PARAM p_struct,
GWEN_XMLNODE p_db 
)

Definition at line 738 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().

Here is the call graph for this function:

Here is the caller graph for this function: