mav_objectNew(3)

NAME
mav_objectNew - Create a new object.

LEVEL
Maverik Level 1

SYNTAX
MAV_object *mav_objectNew(MAV_class *c, void *d);

ARGUMENTS
Class of object. Pointer to data associated with the object.

DESCRIPTION
This function creates a new object. It encapsulates in a single data structure (the resultant MAV_object) the methods defined by class c, and the data defined by d. MAV_object's acts as generic handle to any object, regardless of class, and is used as the argument to other Maverik functions.

The MAV_object created by this function contains a reference to -- not a copy of -- the data and class. This means that if the data or class change in the future, the relevant MAV_object(s) do not need to be notified.

SEE ALSO
MAV_object, mav_objectDelete, mav_objectDataGet, mav_objectClassGet, mav_objectDataWith