gwenhywfar  5.10.1
Functions
tm_enum.c File Reference
#include "tm_enum_p.h"
#include <gwenhywfar/misc.h>
#include <gwenhywfar/debug.h>
Include dependency graph for tm_enum.c:

Go to the source code of this file.

Functions

TYPEMAKER2_ENUMTypemaker2_Enum_copy (TYPEMAKER2_ENUM *p_struct, const TYPEMAKER2_ENUM *p_src)
 
TYPEMAKER2_ENUMTypemaker2_Enum_dup (const TYPEMAKER2_ENUM *p_src)
 
void Typemaker2_Enum_free (TYPEMAKER2_ENUM *p_struct)
 
TYPEMAKER2_ENUMTypemaker2_Enum_fromXml (GWEN_XMLNODE *p_db)
 
const char * Typemaker2_Enum_GetFromStringFn (const TYPEMAKER2_ENUM *p_struct)
 
const char * Typemaker2_Enum_GetId (const TYPEMAKER2_ENUM *p_struct)
 
TYPEMAKER2_ITEM_LIST * Typemaker2_Enum_GetItems (const TYPEMAKER2_ENUM *p_struct)
 
const char * Typemaker2_Enum_GetPrefix (const TYPEMAKER2_ENUM *p_struct)
 
const char * Typemaker2_Enum_GetToStringFn (const TYPEMAKER2_ENUM *p_struct)
 
const char * Typemaker2_Enum_GetType (const TYPEMAKER2_ENUM *p_struct)
 
TYPEMAKER2_ENUM_LIST * Typemaker2_Enum_List_dup (const TYPEMAKER2_ENUM_LIST *p_src)
 
TYPEMAKER2_ENUMTypemaker2_Enum_new (void)
 
void Typemaker2_Enum_ReadXml (TYPEMAKER2_ENUM *p_struct, GWEN_XMLNODE *p_db)
 
void Typemaker2_Enum_SetFromStringFn (TYPEMAKER2_ENUM *p_struct, const char *p_src)
 
void Typemaker2_Enum_SetId (TYPEMAKER2_ENUM *p_struct, const char *p_src)
 
void Typemaker2_Enum_SetItems (TYPEMAKER2_ENUM *p_struct, const TYPEMAKER2_ITEM_LIST *p_src)
 
void Typemaker2_Enum_SetPrefix (TYPEMAKER2_ENUM *p_struct, const char *p_src)
 
void Typemaker2_Enum_SetToStringFn (TYPEMAKER2_ENUM *p_struct, const char *p_src)
 
void Typemaker2_Enum_SetType (TYPEMAKER2_ENUM *p_struct, const char *p_src)
 
void Typemaker2_Enum_toXml (const TYPEMAKER2_ENUM *p_struct, GWEN_XMLNODE *p_db)
 
void Typemaker2_Enum_WriteXml (const TYPEMAKER2_ENUM *p_struct, GWEN_XMLNODE *p_db)
 

Function Documentation

◆ Typemaker2_Enum_copy()

TYPEMAKER2_ENUM* Typemaker2_Enum_copy ( TYPEMAKER2_ENUM p_struct,
const TYPEMAKER2_ENUM p_src 
)

Definition at line 119 of file tm_enum.c.

References NULL, and Typemaker2_Item_List_dup().

Here is the call graph for this function:

◆ Typemaker2_Enum_dup()

TYPEMAKER2_ENUM* Typemaker2_Enum_dup ( const TYPEMAKER2_ENUM p_src)

Definition at line 56 of file tm_enum.c.

References NULL, Typemaker2_Enum_new(), and Typemaker2_Item_List_dup().

Referenced by Typemaker2_Enum_List_dup().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Typemaker2_Enum_free()

void Typemaker2_Enum_free ( TYPEMAKER2_ENUM p_struct)

Destructor.

Definition at line 41 of file tm_enum.c.

References GWEN_FREE_OBJECT, and GWEN_LIST_FINI.

◆ Typemaker2_Enum_fromXml()

TYPEMAKER2_ENUM* Typemaker2_Enum_fromXml ( GWEN_XMLNODE p_db)

Definition at line 412 of file tm_enum.c.

References Typemaker2_Enum_new(), and Typemaker2_Enum_ReadXml().

Referenced by Typemaker2_Type_readXml().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Typemaker2_Enum_GetFromStringFn()

const char* Typemaker2_Enum_GetFromStringFn ( const TYPEMAKER2_ENUM p_struct)

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

Definition at line 210 of file tm_enum.c.

Referenced by addMemberInfoToCallDb().

Here is the caller graph for this function:

◆ Typemaker2_Enum_GetId()

const char* Typemaker2_Enum_GetId ( const TYPEMAKER2_ENUM p_struct)

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

Definition at line 180 of file tm_enum.c.

Referenced by Typemaker2_Type_FindEnum().

Here is the caller graph for this function:

◆ Typemaker2_Enum_GetItems()

TYPEMAKER2_ITEM_LIST* Typemaker2_Enum_GetItems ( const TYPEMAKER2_ENUM p_struct)

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

Definition at line 198 of file tm_enum.c.

Referenced by TM2C_BuildDefineEnums(), TM2C_BuildEnumFromString(), TM2C_BuildEnumToString(), and Typemaker2_Type_readXml().

Here is the caller graph for this function:

◆ Typemaker2_Enum_GetPrefix()

const char* Typemaker2_Enum_GetPrefix ( const TYPEMAKER2_ENUM p_struct)

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

Definition at line 186 of file tm_enum.c.

Referenced by TM2C_BuildDefineEnums(), TM2C_BuildEnumFromString(), TM2C_BuildEnumToString(), and TM2C_SetEnumStringFns().

Here is the caller graph for this function:

◆ Typemaker2_Enum_GetToStringFn()

const char* Typemaker2_Enum_GetToStringFn ( const TYPEMAKER2_ENUM p_struct)

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

Definition at line 204 of file tm_enum.c.

Referenced by addMemberInfoToCallDb().

Here is the caller graph for this function:

◆ Typemaker2_Enum_GetType()

const char* Typemaker2_Enum_GetType ( const TYPEMAKER2_ENUM p_struct)

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

Definition at line 192 of file tm_enum.c.

Referenced by _addFunctionDeclaration(), _addMember(), _addSetterFnDeclaration(), TM2C_BuildDefineEnums(), TM2C_BuildEnumFromString(), and TM2C_BuildEnumToString().

Here is the caller graph for this function:

◆ Typemaker2_Enum_List_dup()

TYPEMAKER2_ENUM_LIST* Typemaker2_Enum_List_dup ( const TYPEMAKER2_ENUM_LIST *  p_src)

Definition at line 300 of file tm_enum.c.

References Typemaker2_Enum_dup().

Here is the call graph for this function:

◆ Typemaker2_Enum_new()

TYPEMAKER2_ENUM* Typemaker2_Enum_new ( void  )

Constructor.

Definition at line 23 of file tm_enum.c.

References GWEN_LIST_INIT, GWEN_NEW_OBJECT, and NULL.

Referenced by Typemaker2_Enum_dup(), and Typemaker2_Enum_fromXml().

Here is the caller graph for this function:

◆ Typemaker2_Enum_ReadXml()

void Typemaker2_Enum_ReadXml ( TYPEMAKER2_ENUM p_struct,
GWEN_XMLNODE p_db 
)

Definition at line 319 of file tm_enum.c.

References GWEN_XMLNode_GetProperty(), and NULL.

Referenced by Typemaker2_Enum_fromXml().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Typemaker2_Enum_SetFromStringFn()

void Typemaker2_Enum_SetFromStringFn ( TYPEMAKER2_ENUM p_struct,
const char *  p_src 
)

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

Definition at line 286 of file tm_enum.c.

References NULL.

Referenced by TM2C_SetEnumStringFns().

Here is the caller graph for this function:

◆ Typemaker2_Enum_SetId()

void Typemaker2_Enum_SetId ( TYPEMAKER2_ENUM p_struct,
const char *  p_src 
)

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

Definition at line 216 of file tm_enum.c.

References NULL.

◆ Typemaker2_Enum_SetItems()

void Typemaker2_Enum_SetItems ( TYPEMAKER2_ENUM p_struct,
const TYPEMAKER2_ITEM_LIST *  p_src 
)

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

Definition at line 258 of file tm_enum.c.

References Typemaker2_Item_List_dup().

Here is the call graph for this function:

◆ Typemaker2_Enum_SetPrefix()

void Typemaker2_Enum_SetPrefix ( TYPEMAKER2_ENUM p_struct,
const char *  p_src 
)

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

Definition at line 230 of file tm_enum.c.

References NULL.

◆ Typemaker2_Enum_SetToStringFn()

void Typemaker2_Enum_SetToStringFn ( TYPEMAKER2_ENUM p_struct,
const char *  p_src 
)

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

Definition at line 272 of file tm_enum.c.

References NULL.

Referenced by TM2C_SetEnumStringFns().

Here is the caller graph for this function:

◆ Typemaker2_Enum_SetType()

void Typemaker2_Enum_SetType ( TYPEMAKER2_ENUM p_struct,
const char *  p_src 
)

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

Definition at line 244 of file tm_enum.c.

References NULL.

◆ Typemaker2_Enum_toXml()

void Typemaker2_Enum_toXml ( const TYPEMAKER2_ENUM p_struct,
GWEN_XMLNODE p_db 
)

Definition at line 407 of file tm_enum.c.

References Typemaker2_Enum_WriteXml().

Here is the call graph for this function:

◆ Typemaker2_Enum_WriteXml()

void Typemaker2_Enum_WriteXml ( const TYPEMAKER2_ENUM p_struct,
GWEN_XMLNODE p_db 
)

Definition at line 387 of file tm_enum.c.

References GWEN_XMLNode_SetProperty().

Referenced by Typemaker2_Enum_toXml().

Here is the call graph for this function:
Here is the caller graph for this function: