|
libcsem
0.2
|
#include "csem_list.h"Go to the source code of this file.
Defines | |
| #define | CSEM_NS_C_BEGIN |
| #define | CSEM_NS_C_END |
Typedefs | |
| typedef CSEM_NS_C_BEGIN enum CSEM_NODE_TYPE | CSEM_NODE_TYPE |
| Types of the tree nodes. | |
| typedef struct CSEM_Document | CSEM_Document |
| Root node of the tree. | |
| typedef struct CSEM_Node | CSEM_Node |
| Abstract node of the tree nodes. | |
Enumerations | |
| enum | CSEM_NODE_TYPE { CSEM_NODE_TYPE_NONE = 0, CSEM_NODE_TYPE_DOCUMENT, CSEM_NODE_TYPE_ITEM, CSEM_NODE_TYPE_PROPERTY, CSEM_NODE_TYPE_ID } |
| Types of the tree nodes. More... | |
Functions | |
| CSEM_Error | CSEM_Node_Create (CSEM_Node **node, CSEM_NODE_TYPE type, void *obj, CSEM_Node *parent) |
| Create a node. | |
| CSEM_NODE_TYPE | CSEM_Node_GetType (CSEM_Node *node) |
| Get node type. | |
| CSEM_Node * | CSEM_Node_GetParent (CSEM_Node *node) |
| Get parent node. | |
| void * | CSEM_Node_GetObject (CSEM_Node *node) |
| Get content object related to the specified node. | |
| void | CSEM_Node_Dispose (CSEM_Node *node) |
| Dispose the node. | |
| CSEM_Error | CSEM_Document_Create (CSEM_Document **document) |
| Create document node. | |
| void | CSEM_Document_Dispose (CSEM_Document *document) |
| Dispose document node. | |
| CSEM_List * | CSEM_Document_GetChildren (CSEM_Document *doc) |
| Get child nodes. | |
| CSEM_Error | CSEM_Document_AppendChild (CSEM_Document *doc, CSEM_Node *child) |
| Append the specified node as child node under the document node. | |
| #define CSEM_NS_C_BEGIN |
| #define CSEM_NS_C_END |
| typedef struct CSEM_Document CSEM_Document |
Root node of the tree.
| typedef CSEM_NS_C_BEGIN enum CSEM_NODE_TYPE CSEM_NODE_TYPE |
Types of the tree nodes.
| enum CSEM_NODE_TYPE |
| CSEM_Error CSEM_Document_AppendChild | ( | CSEM_Document * | doc, |
| CSEM_Node * | child | ||
| ) |
Append the specified node as child node under the document node.
| doc | [in]document node |
| child | [in]child node to be appended |
| CSEM_Error CSEM_Document_Create | ( | CSEM_Document ** | document | ) |
Create document node.
| document | [out]create document node |
| void CSEM_Document_Dispose | ( | CSEM_Document * | document | ) |
Dispose document node.
| document | [in]document node to be freed |
| CSEM_List* CSEM_Document_GetChildren | ( | CSEM_Document * | doc | ) |
Get child nodes.
| doc | [in]document node |
| CSEM_Error CSEM_Node_Create | ( | CSEM_Node ** | node, |
| CSEM_NODE_TYPE | type, | ||
| void * | obj, | ||
| CSEM_Node * | parent | ||
| ) |
Create a node.
| node | [out]created node |
| type | [in]node type |
| obj | [in]content object related to the node |
| parent | [in]parent node |
| void CSEM_Node_Dispose | ( | CSEM_Node * | node | ) |
Dispose the node.
| node | [in]node to be freed |
| void* CSEM_Node_GetObject | ( | CSEM_Node * | node | ) |
Get content object related to the specified node.
| node | [in]node |
| CSEM_Node* CSEM_Node_GetParent | ( | CSEM_Node * | node | ) |
Get parent node.
| node | [in]node |
| CSEM_NODE_TYPE CSEM_Node_GetType | ( | CSEM_Node * | node | ) |
Get node type.
| node | [in]node |