gwenhywfar  4.99.8beta
Macros | Typedefs | Enumerations | Functions
test.h File Reference
#include <gwenhywfar/types.h>
#include <gwenhywfar/list1.h>
#include <gwenhywfar/xml.h>
#include "tm_item.h"
Include dependency graph for test.h:

Go to the source code of this file.

Macros

#define TEST_DEFINE_VALUE1   1
 
#define TEST_DEFINE_VALUE2   2
 
#define TEST_DEFINE_VALUE3   4
 
#define TEST_DEFINE_VALUE4   8
 
#define TEST_DEFINE_VALUEx   255
 

Typedefs

typedef struct TEST TEST
 

Enumerations

enum  { Test_Mode_Unknown = 0, Test_Mode_Sequence = 1, Test_Mode_BitField }
 

Functions

GWENHYWFAR_API TESTTest_dup (const TEST *p_struct)
 
GWENHYWFAR_API void Test_free (TEST *p_struct)
 
GWENHYWFAR_API TESTTest_fromXml (GWEN_XMLNODE *p_db)
 
GWENHYWFAR_API const char * Test_GetId (const TEST *p_struct)
 
GWENHYWFAR_API
TYPEMAKER2_ITEM_LIST * 
Test_GetItems (const TEST *p_struct)
 
GWENHYWFAR_API int Test_GetMode (const TEST *p_struct)
 
GWENHYWFAR_API const char * Test_GetPrefix (const TEST *p_struct)
 
GWENHYWFAR_API const char * Test_GetType (const TEST *p_struct)
 
GWENHYWFAR_API int Test_Mode_fromString (const char *p_s)
 
GWENHYWFAR_API const char * Test_Mode_toString (int p_i)
 
GWENHYWFAR_API TESTTest_new ()
 
GWENHYWFAR_API void Test_ReadXml (TEST *p_struct, GWEN_XMLNODE *p_db)
 
GWENHYWFAR_API void Test_SetId (TEST *p_struct, const char *p_src)
 
GWENHYWFAR_API void Test_SetItems (TEST *p_struct, const TYPEMAKER2_ITEM_LIST *p_src)
 
GWENHYWFAR_API void Test_SetMode (TEST *p_struct, int p_src)
 
GWENHYWFAR_API void Test_SetPrefix (TEST *p_struct, const char *p_src)
 
GWENHYWFAR_API void Test_SetType (TEST *p_struct, const char *p_src)
 
GWENHYWFAR_API void Test_toXml (const TEST *p_struct, GWEN_XMLNODE *p_db)
 
GWENHYWFAR_API void Test_WriteXml (const TEST *p_struct, GWEN_XMLNODE *p_db)
 

Macro Definition Documentation

#define TEST_DEFINE_VALUE1   1

Definition at line 17 of file test.h.

#define TEST_DEFINE_VALUE2   2

Definition at line 18 of file test.h.

#define TEST_DEFINE_VALUE3   4

Definition at line 19 of file test.h.

#define TEST_DEFINE_VALUE4   8

Definition at line 20 of file test.h.

#define TEST_DEFINE_VALUEx   255

Definition at line 21 of file test.h.

Typedef Documentation

typedef struct TEST TEST

Definition at line 32 of file test.h.

Enumeration Type Documentation

anonymous enum
Enumerator
Test_Mode_Unknown 
Test_Mode_Sequence 
Test_Mode_BitField 

Definition at line 38 of file test.h.

Function Documentation

GWENHYWFAR_API TEST* Test_dup ( const TEST p_struct)

Definition at line 69 of file test.c.

References NULL, and Test_new().

Here is the call graph for this function:

GWENHYWFAR_API void Test_free ( TEST p_struct)

Destructor.

Definition at line 56 of file test.c.

References GWEN_FREE_OBJECT, and GWEN_LIST_FINI.

GWENHYWFAR_API TEST* Test_fromXml ( GWEN_XMLNODE p_db)

Definition at line 256 of file test.c.

References Test_new(), and Test_ReadXml().

Here is the call graph for this function:

GWENHYWFAR_API const char* Test_GetId ( const TEST p_struct)

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

Definition at line 116 of file test.c.

GWENHYWFAR_API TYPEMAKER2_ITEM_LIST* Test_GetItems ( const TEST p_struct)

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

Definition at line 131 of file test.c.

GWENHYWFAR_API int Test_GetMode ( const TEST p_struct)

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

Definition at line 136 of file test.c.

GWENHYWFAR_API const char* Test_GetPrefix ( const TEST p_struct)

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

Definition at line 121 of file test.c.

GWENHYWFAR_API const char* Test_GetType ( const TEST p_struct)

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

Definition at line 126 of file test.c.

GWENHYWFAR_API int Test_Mode_fromString ( const char *  p_s)

Definition at line 23 of file test.c.

References Test_Mode_BitField, Test_Mode_Sequence, and Test_Mode_Unknown.

GWENHYWFAR_API const char* Test_Mode_toString ( int  p_i)

Definition at line 33 of file test.c.

References Test_Mode_BitField, and Test_Mode_Sequence.

GWENHYWFAR_API TEST* Test_new ( )

Constructor.

Definition at line 41 of file test.c.

References GWEN_LIST_INIT, GWEN_NEW_OBJECT, and NULL.

Referenced by Test_dup(), and Test_fromXml().

Here is the caller graph for this function:

GWENHYWFAR_API void Test_ReadXml ( TEST p_struct,
GWEN_XMLNODE p_db 
)

Definition at line 198 of file test.c.

References GWEN_XMLNode_GetProperty(), and NULL.

Referenced by Test_fromXml().

Here is the call graph for this function:

Here is the caller graph for this function:

GWENHYWFAR_API void Test_SetId ( TEST p_struct,
const char *  p_src 
)

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

Definition at line 141 of file test.c.

References NULL.

GWENHYWFAR_API void Test_SetItems ( TEST p_struct,
const TYPEMAKER2_ITEM_LIST *  p_src 
)

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

Definition at line 180 of file test.c.

GWENHYWFAR_API void Test_SetMode ( TEST p_struct,
int  p_src 
)

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

Definition at line 193 of file test.c.

GWENHYWFAR_API void Test_SetPrefix ( TEST p_struct,
const char *  p_src 
)

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

Definition at line 154 of file test.c.

References NULL.

GWENHYWFAR_API void Test_SetType ( TEST p_struct,
const char *  p_src 
)

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

Definition at line 167 of file test.c.

References NULL.

GWENHYWFAR_API void Test_toXml ( const TEST p_struct,
GWEN_XMLNODE p_db 
)

Definition at line 252 of file test.c.

References Test_WriteXml().

Here is the call graph for this function:

GWENHYWFAR_API void Test_WriteXml ( const TEST p_struct,
GWEN_XMLNODE p_db 
)

Definition at line 234 of file test.c.

References GWEN_XMLNode_SetProperty().

Referenced by Test_toXml().

Here is the call graph for this function:

Here is the caller graph for this function: