Coconut XML Framework  beta
Classes | Typedefs | Functions
CNXMLObject.h File Reference

Define CNXMLObject class. More...

#include <Coconut/Coconut.h>
#include "CNXMLForwarders.h"

Go to the source code of this file.

Classes

struct  CNXMLObjectMethods
 Methods for CNXMLObject. More...
struct  CNXMLObject
 Data object which can be a component of XML document. More...

Typedefs

typedef xmlNodePtr(* CNEncodeObjectFuncRef )(const struct CNXMLObject *src)
 Function to encode the component.

Functions

static struct CNXMLObjectCNAllocateXMLObject (size_t size, const struct CNXMLObjectMethods *methods, struct CNResource *resource)
 Allocate CNXMLObject object.
static void CNRetainXMLObject (struct CNXMLObject *dst)
 Retain the CNXMLObject object.
static void CNReleaseXMLObject (struct CNXMLObject *dst)
 Release the CNXMLObject object.
static xmlNodePtr CNEncodeXMLObject (const struct CNXMLObject *src)
 Encode object into XML node.

Detailed Description

Define CNXMLObject class.

Copyright
Copyright (C) 2012 Steel Wheels Project

Function Documentation

static struct CNXMLObject* CNAllocateXMLObject ( size_t  size,
const struct CNXMLObjectMethods methods,
struct CNResource *  resource 
) [static, read]

Allocate CNXMLObject object.

Return values:
objAllocate object
NULLAllocation failed
Parameters:
sizeSize of component
methodsMethods for thiins object
resourceResource to allocate the object

References CNXMLObjectMethods::superClass.

static void CNRetainXMLObject ( struct CNXMLObject dst) [inline, static]

Retain the CNXMLObject object.

Parameters:
dstDestination object

References CNXMLObject::superClass.

static void CNReleaseXMLObject ( struct CNXMLObject dst) [inline, static]

Release the CNXMLObject object.

Parameters:
dstDestination object

References CNXMLObject::superClass.

static xmlNodePtr CNEncodeXMLObject ( const struct CNXMLObject src) [inline, static]

Encode object into XML node.

Returns:
Encoded node
Parameters:
srcSource object

References CNXMLObjectMethods::encodeFuncRef, and CNXMLObject::superClass.