In file include/csobject/csobj.h:

## class csObject : public csBase

> A generic csObject class

## Inheritance:

### Public Methods

  | csObject (csObject& csobj)
  | csObject ()
  CS_ID | GetID ()
  csObject* | GetObj (const csIdType& objtype) Return the first subobject instance of the given type
  virtual csObject* | GetObjectParent () Returns the parent csObject. Not required.
  void | ObjAdd (csObject* obj) Attach a new csObject to the tree
  csObjIterator | ObjGet (const csIdType& objtype) Return an iterator referencing all objects of the given type
  void | ObjRelease (csObject* obj) Removes the given object from the tree, without freeing the contents
  void | ObjRemove (csObject* obj) Deletes the given object, removing it from the object tree
  virtual | ~csObject ()

### Private Fields

  CS_ID | csid_value
  csObjTree* | objtree

### Private Methods

  virtual void | SetObjectParent (csObject* parent) Set the parent csObject. Not required.

## Documentation

> A generic csObject class. Any csObject can have any number of csObject children attached to it via the csObject tree. In order to make a class (let's call it newClass) that derives from csObject, the class must contain "CSOBJTYPE;" in the declaration. The corresponding .cpp file should contain "CSOBJTYPE(newClass,parentClass);"

`csObjTree* objtree`

`CS_ID csid_value`

`virtual void SetObjectParent(csObject* parent)`
  Set the parent csObject. Not required.

`csObject()`

`virtual ~csObject()`

`csObject(csObject& csobj)`

`virtual csObject* GetObjectParent()`
  Returns the parent csObject. Not required.

`csObject* GetObj(const csIdType& objtype)`
  Return the first subobject instance of the given type

`csObjIterator ObjGet(const csIdType& objtype)`
  Return an iterator referencing all objects of the given type

`void ObjAdd(csObject* obj)`
  Attach a new csObject to the tree

`void ObjRelease(csObject* obj)`
  Removes the given object from the tree, without freeing the contents

`void ObjRemove(csObject* obj)`
  Deletes the given object, removing it from the object tree

`CS_ID GetID()`

Direct child classes:
  csWorld
  csThingTemplate
  csTextureHandle
  csSpriteTemplate
  csSprite3D
  csSkeletonLimbState
  csRegion
  csPolygonSet
  csPolygon3D
  csPolyPlane
  csPObject
  csNameObject
  csLight
  csLibrary
  csDataObject
  csCurveTemplate
  csCurve
  csColliderPointerObject
  csCollection
  CLights

alphabetic index hierarchy of classes

this page has been generated automatically by doc++

(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de