gwenhywfar 5.12.0
tm_define.c File Reference
#include "tm_define_p.h"
#include <gwenhywfar/misc.h>
#include <gwenhywfar/debug.h>
Include dependency graph for tm_define.c:

Go to the source code of this file.

Functions

TYPEMAKER2_DEFINETypemaker2_Define_copy (TYPEMAKER2_DEFINE *p_struct, const TYPEMAKER2_DEFINE *p_src)
TYPEMAKER2_DEFINETypemaker2_Define_dup (const TYPEMAKER2_DEFINE *p_src)
void Typemaker2_Define_free (TYPEMAKER2_DEFINE *p_struct)
TYPEMAKER2_DEFINETypemaker2_Define_fromXml (GWEN_XMLNODE *p_db)
const char * Typemaker2_Define_GetId (const TYPEMAKER2_DEFINE *p_struct)
TYPEMAKER2_ITEM_LIST * Typemaker2_Define_GetItems (const TYPEMAKER2_DEFINE *p_struct)
int Typemaker2_Define_GetLastValue (const TYPEMAKER2_DEFINE *p_struct)
int Typemaker2_Define_GetMode (const TYPEMAKER2_DEFINE *p_struct)
const char * Typemaker2_Define_GetPrefix (const TYPEMAKER2_DEFINE *p_struct)
int Typemaker2_Define_GetStartValue (const TYPEMAKER2_DEFINE *p_struct)
const char * Typemaker2_Define_GetType (const TYPEMAKER2_DEFINE *p_struct)
TYPEMAKER2_DEFINE_LIST * Typemaker2_Define_List_dup (const TYPEMAKER2_DEFINE_LIST *p_src)
int Typemaker2_Define_Mode_fromString (const char *p_s)
const char * Typemaker2_Define_Mode_toString (int p_i)
TYPEMAKER2_DEFINETypemaker2_Define_new (void)
void Typemaker2_Define_ReadXml (TYPEMAKER2_DEFINE *p_struct, GWEN_XMLNODE *p_db)
void Typemaker2_Define_SetId (TYPEMAKER2_DEFINE *p_struct, const char *p_src)
void Typemaker2_Define_SetItems (TYPEMAKER2_DEFINE *p_struct, const TYPEMAKER2_ITEM_LIST *p_src)
void Typemaker2_Define_SetLastValue (TYPEMAKER2_DEFINE *p_struct, int p_src)
void Typemaker2_Define_SetMode (TYPEMAKER2_DEFINE *p_struct, int p_src)
void Typemaker2_Define_SetPrefix (TYPEMAKER2_DEFINE *p_struct, const char *p_src)
void Typemaker2_Define_SetStartValue (TYPEMAKER2_DEFINE *p_struct, int p_src)
void Typemaker2_Define_SetType (TYPEMAKER2_DEFINE *p_struct, const char *p_src)
void Typemaker2_Define_toXml (const TYPEMAKER2_DEFINE *p_struct, GWEN_XMLNODE *p_db)
void Typemaker2_Define_WriteXml (const TYPEMAKER2_DEFINE *p_struct, GWEN_XMLNODE *p_db)

Function Documentation

◆ Typemaker2_Define_copy()

TYPEMAKER2_DEFINE * Typemaker2_Define_copy ( TYPEMAKER2_DEFINE * p_struct,
const TYPEMAKER2_DEFINE * p_src )

Definition at line 132 of file tm_define.c.

References NULL, and Typemaker2_Item_List_dup().

Here is the call graph for this function:

◆ Typemaker2_Define_dup()

TYPEMAKER2_DEFINE * Typemaker2_Define_dup ( const TYPEMAKER2_DEFINE * p_src)

Definition at line 78 of file tm_define.c.

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

Referenced by Typemaker2_Define_List_dup().

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

◆ Typemaker2_Define_free()

void Typemaker2_Define_free ( TYPEMAKER2_DEFINE * p_struct)

Destructor.

Definition at line 65 of file tm_define.c.

References GWEN_FREE_OBJECT, and GWEN_LIST_FINI.

◆ Typemaker2_Define_fromXml()

TYPEMAKER2_DEFINE * Typemaker2_Define_fromXml ( GWEN_XMLNODE * p_db)

Definition at line 419 of file tm_define.c.

References Typemaker2_Define_new(), and Typemaker2_Define_ReadXml().

Referenced by Typemaker2_Type_readXml().

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

◆ Typemaker2_Define_GetId()

const char * Typemaker2_Define_GetId ( const TYPEMAKER2_DEFINE * p_struct)

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

Definition at line 184 of file tm_define.c.

Referenced by _buildDefineDefines().

Here is the caller graph for this function:

◆ Typemaker2_Define_GetItems()

TYPEMAKER2_ITEM_LIST * Typemaker2_Define_GetItems ( const TYPEMAKER2_DEFINE * p_struct)

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

Definition at line 202 of file tm_define.c.

Referenced by _buildDefineDefines(), and Typemaker2_Type_readXml().

Here is the caller graph for this function:

◆ Typemaker2_Define_GetLastValue()

int Typemaker2_Define_GetLastValue ( const TYPEMAKER2_DEFINE * p_struct)

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

Definition at line 220 of file tm_define.c.

◆ Typemaker2_Define_GetMode()

int Typemaker2_Define_GetMode ( const TYPEMAKER2_DEFINE * p_struct)

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

Definition at line 208 of file tm_define.c.

Referenced by _buildDefineDefines().

Here is the caller graph for this function:

◆ Typemaker2_Define_GetPrefix()

const char * Typemaker2_Define_GetPrefix ( const TYPEMAKER2_DEFINE * p_struct)

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

Definition at line 190 of file tm_define.c.

Referenced by _buildDefineDefines().

Here is the caller graph for this function:

◆ Typemaker2_Define_GetStartValue()

int Typemaker2_Define_GetStartValue ( const TYPEMAKER2_DEFINE * p_struct)

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

Definition at line 214 of file tm_define.c.

Referenced by _buildDefineDefines().

Here is the caller graph for this function:

◆ Typemaker2_Define_GetType()

const char * Typemaker2_Define_GetType ( const TYPEMAKER2_DEFINE * p_struct)

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

Definition at line 196 of file tm_define.c.

◆ Typemaker2_Define_List_dup()

TYPEMAKER2_DEFINE_LIST * Typemaker2_Define_List_dup ( const TYPEMAKER2_DEFINE_LIST * p_src)

Definition at line 300 of file tm_define.c.

References Typemaker2_Define_dup().

Here is the call graph for this function:

◆ Typemaker2_Define_Mode_fromString()

int Typemaker2_Define_Mode_fromString ( const char * p_s)

Definition at line 23 of file tm_define.c.

References Typemaker2_Define_Mode_BitField, Typemaker2_Define_Mode_fromString(), Typemaker2_Define_Mode_Sequence, and Typemaker2_Define_Mode_Unknown.

Referenced by Typemaker2_Define_Mode_fromString(), and Typemaker2_Define_ReadXml().

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

◆ Typemaker2_Define_Mode_toString()

const char * Typemaker2_Define_Mode_toString ( int p_i)

Definition at line 34 of file tm_define.c.

References Typemaker2_Define_Mode_BitField, and Typemaker2_Define_Mode_Sequence.

Referenced by Typemaker2_Define_WriteXml().

Here is the caller graph for this function:

◆ Typemaker2_Define_new()

TYPEMAKER2_DEFINE * Typemaker2_Define_new ( void )

Constructor.

Definition at line 46 of file tm_define.c.

References GWEN_LIST_INIT, GWEN_NEW_OBJECT, NULL, and Typemaker2_Define_Mode_Unknown.

Referenced by Typemaker2_Define_dup(), and Typemaker2_Define_fromXml().

Here is the caller graph for this function:

◆ Typemaker2_Define_ReadXml()

void Typemaker2_Define_ReadXml ( TYPEMAKER2_DEFINE * p_struct,
GWEN_XMLNODE * p_db )

Definition at line 319 of file tm_define.c.

References GWEN_XMLNode_GetIntValue(), GWEN_XMLNode_GetProperty(), NULL, Typemaker2_Define_Mode_fromString(), and Typemaker2_Define_Mode_Unknown.

Referenced by Typemaker2_Define_fromXml().

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

◆ Typemaker2_Define_SetId()

void Typemaker2_Define_SetId ( TYPEMAKER2_DEFINE * p_struct,
const char * p_src )

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

Definition at line 226 of file tm_define.c.

References NULL.

◆ Typemaker2_Define_SetItems()

void Typemaker2_Define_SetItems ( TYPEMAKER2_DEFINE * p_struct,
const TYPEMAKER2_ITEM_LIST * p_src )

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

Definition at line 268 of file tm_define.c.

References Typemaker2_Item_List_dup().

Here is the call graph for this function:

◆ Typemaker2_Define_SetLastValue()

void Typemaker2_Define_SetLastValue ( TYPEMAKER2_DEFINE * p_struct,
int p_src )

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

Definition at line 294 of file tm_define.c.

◆ Typemaker2_Define_SetMode()

void Typemaker2_Define_SetMode ( TYPEMAKER2_DEFINE * p_struct,
int p_src )

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

Definition at line 282 of file tm_define.c.

◆ Typemaker2_Define_SetPrefix()

void Typemaker2_Define_SetPrefix ( TYPEMAKER2_DEFINE * p_struct,
const char * p_src )

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

Definition at line 240 of file tm_define.c.

References NULL.

◆ Typemaker2_Define_SetStartValue()

void Typemaker2_Define_SetStartValue ( TYPEMAKER2_DEFINE * p_struct,
int p_src )

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

Definition at line 288 of file tm_define.c.

◆ Typemaker2_Define_SetType()

void Typemaker2_Define_SetType ( TYPEMAKER2_DEFINE * p_struct,
const char * p_src )

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

Definition at line 254 of file tm_define.c.

References NULL.

◆ Typemaker2_Define_toXml()

void Typemaker2_Define_toXml ( const TYPEMAKER2_DEFINE * p_struct,
GWEN_XMLNODE * p_db )

Definition at line 414 of file tm_define.c.

References Typemaker2_Define_WriteXml().

Here is the call graph for this function:

◆ Typemaker2_Define_WriteXml()

void Typemaker2_Define_WriteXml ( const TYPEMAKER2_DEFINE * p_struct,
GWEN_XMLNODE * p_db )

Definition at line 390 of file tm_define.c.

References GWEN_XMLNode_SetIntValue(), GWEN_XMLNode_SetProperty(), and Typemaker2_Define_Mode_toString().

Referenced by Typemaker2_Define_toXml().

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