Main Page   Modules   Data Structures   File List   Data Fields   Globals  

mask_tools.cpp File Reference

Implements header file. More...

#include "libdarc.h"
#include "mask_tools.h"
#include <string>

Go to the source code of this file.

Functions

NAMESPACE_LIBDAR_START int dar_mask_get_children (dar_mask *ref, dar_mask **children, int *size)
 Retrieves an array of children contained in a mask union.

dar_mask_type dar_mask_get_type (dar_mask *ref)
 Retrieves the type of mask contained in a dar_mask object.

void dar_mask_get_content (dar_mask_content *cont)
 Retrieves pointers to a mask's content.


Detailed Description

Implements header file.

Definition in file mask_tools.cpp.


Function Documentation

NAMESPACE_LIBDAR_START int dar_mask_get_children dar_mask   ref,
dar_mask **    children,
int *    size
 

Retrieves an array of children contained in a mask union.

Parameters:
ref  Pointer to mask object.
children  Array of dar_mask elements.
size  Number of elements returned.
Returns:
Number of elements returned.

void dar_mask_get_content dar_mask_content *    cont
 

Retrieves pointers to a mask's content.

The content stored in the container structure is dependant on the type of mask node. dar_mask_get_type should be called before calling this function.

All returned pointers map to statically allocated memory or memory controlled by the mask object. Pointers must not by freed by the caller and may be invalid once the mask object is freed.

Parameters:
cont  Content container with values and pointers to mask object contents.

dar_mask_type dar_mask_get_type dar_mask   ref
 

Retrieves the type of mask contained in a dar_mask object.

Parameters:
ref  Pointer to mask object.
Returns:
Type of mask object.