Google

Main Page   Class Hierarchy   Compound List   File List   Compound Members  

csDataObject Class Reference

A generic data object. More...

#include <dataobj.h>

Inheritance diagram for csDataObject:

csObject iObject iBase List of all members.

Public Methods

 csDataObject (void *d)
 Initialize this object with data pointer initialized to 'd'.

void* GetData () const
 Get the data associated with this object.

 SCF_DECLARE_IBASE_EXT (csObject)

Public Attributes

csDataObject::DataObject  scfiDataObject

Static Public Methods

void* GetData (iObject *obj)
 Get first data pointer associated with other object (warning: SCF call is not speed-optimized, i.e. More...


Protected Attributes

void* data

Detailed Description

A generic data object.

This class contains a pointer to a generic, untyped block of data which is not destroyed when the csObject is freed. Users are encouraged to implement their own custom csObjects, but this one can be used as a general enough and simple data storage that can be added to any object.


Member Function Documentation

void * csDataObject::GetData ( iObject * obj ) [inline, static]
 

Get first data pointer associated with other object (warning: SCF call is not speed-optimized, i.e.

CS_GET_CHILD_OBJECT_FAST could be used).


The documentation for this class was generated from the following file:
Generated for Crystal Space by doxygen 1.2.5 written by Dimitri van Heesch, ©1997-2000