22 #ifndef _WSB_ELEMENTS_H_ 23 #define _WSB_ELEMENTS_H_ 28 #include "WsbConfig.h" 100 WSB_EXPORT
const char*
130 WSB_EXPORT
const char*
WSB_EXPORT WSB_Element * WSB_Element_GetParent(WSB_Element *self)
Gets the parent of the specified WSB_Element object.
WSB_EXPORT WSB_Result WSB_Element_Serialize(WSB_Element *self, char *buffer, unsigned int *buffer_size)
Serializes the specified WSB_Element into the supplied buffer.
WSB_EXPORT WSB_Result WSB_Element_Clone(WSB_Element *self, WSB_Element **clone)
Clones the specified WSB_Element.
WSB_EXPORT WSB_ElementType WSB_Element_GetType(WSB_Element *self)
Gets the element type of the specified WSB_Element object.
WSB_EXPORT WSB_Element * WSB_Element_GetChildAt(WSB_Element *self, WSB_Ordinal indx)
Gets the child of the specified WSB_Element object based on index.
struct WSB_Element WSB_Element
A WSB_Element object represents information about a hierarchical element.
Definition: WsbElements.h:37
WSB_Boolean
Boolean type used for variables that can be true (WSB_TRUE) or false (WSB_FALSE). ...
Definition: WsbTypes.h:71
Definition: WsbElements.h:48
WSB_EXPORT const char * WSB_Element_GetName(WSB_Element *self)
Gets the name of the specified WSB_Element object.
WSB_EXPORT WSB_Cardinal WSB_Element_GetChildCount(WSB_Element *self)
Gets the number of children of the specified WSB_Element object.
WSB_UInt32 WSB_Ordinal
An unsigned integer that represents a position in a sequence (such as an index into a list of element...
Definition: WsbTypes.h:127
WSB_EXPORT const char * WSB_Element_AsString(WSB_Element *self)
Gets the element value of the specified WSB_Element object as a string.
Definition: WsbElements.h:46
WSB_EXPORT WSB_Boolean WSB_Element_AsBoolean(WSB_Element *self)
Gets the element value of the specified WSB_Element object as a boolean.
WSB_ElementType
Identifiers for element type.
Definition: WsbElements.h:45
WSB_EXPORT void WSB_Element_Release(WSB_Element *self)
Releases the specified WSB_Element object.
Definition: WsbElements.h:49
WSB_EXPORT WSB_Int64 WSB_Element_AsInteger(WSB_Element *self)
Gets the element value of the specified WSB_Element object as a 64 bits integer.
WSB_UInt32 WSB_Cardinal
An unsigned integer used to represent a quantity that can be counted (such as a number of elements in...
Definition: WsbTypes.h:121
int WSB_Result
Signed integer value representing a function or method result (return value).
Definition: WsbTypes.h:83
WSB_CONFIG_INT64_TYPE WSB_Int64
Definition: WsbTypes.h:48
Definition: WsbElements.h:51
Definition: WsbElements.h:52
Definition: WsbElements.h:47
WSB_EXPORT double WSB_Element_AsFloat(WSB_Element *self)
Gets the element value of the specified WSB_Element object as a double.
Definition: WsbElements.h:50
WSB_EXPORT WSB_Element * WSB_Element_GetChild(WSB_Element *self, const char *name)
Gets the child of the specified WSB_Element object based on name.