CSAD
 All Classes Namespaces Functions Variables Enumerations Enumerator Friends Groups Pages
Public Types | Public Member Functions | List of all members
csad::BaseObject Class Referenceabstract

BaseObject - the main interface objects. More...

Inheritance diagram for csad::BaseObject:
csad::Component csad::ContainerComponents csad::Display csad::Font csad::FontServer csad::GlContext csad::Graph csad::Input csad::LightingModel csad::Material csad::Module csad::ObjectManager csad::Renderer csad::Scene csad::Shader csad::Texture2D

Public Types

enum  BASE {
  ANY = 0x00000000, EVENT = 0x00000001, TYPE = 0x00000002, CONTAINER = 0x00000003,
  MANAGER_COUNT = 0x00000004, MANAGER = 0x00000005, WRITE = 0x00000006, READ = 0x00000007,
  SELECT = 0x00000008, RUN = 0x00000009, LIST = 0x0000000A, LIST_COUNT = 0x0000000B,
  NAME = 0x0000000C, CHILD_NAME = 0x0000000D
}
 the basic format of the interface More...
 

Public Member Functions

_FORCEINLINE bool isContainer ()
 returns true if the object is a container.
 
_FORCEINLINE ParametersListread (ParametersList *data)
 read attributes object.
 
virtual void * set (unsigned _int32, void *)=0
 used for any interface commands.
 
_FORCEINLINE void * type ()
 the output pointer to the typeid() of the class.
 
_FORCEINLINE void write (ParametersList *data)
 record attributes of the object.
 

Detailed Description

BaseObject - the main interface objects.

The basic template for description in the header:

  class SomeClass:public csad::Component {
     public:
     ...
         void * set(unsinged _int32 id,void * params);

      TYPEINFO_H
     private:
     ...
  }

The basic template for describing the implementation:

  void * SomeClass::set(unsinged _int32 id,void * params)
  {
     if (id==csad::BaseObject::TYPE) return SomeClassL::t();
     return 0;
  }

  TYPEINFO(SomeClass);
See Also
csad: core

Member Enumeration Documentation

the basic format of the interface

Enumerator
ANY 

specific identifier

EVENT 

processing messages

TYPE 

the output pointer to the typeid() of the class;

CONTAINER 

returns a pointer to itself if the object is a container.

MANAGER_COUNT 

returns the number of managers.

MANAGER 

returns the specified Manager

WRITE 

record attributes of the object, the input is the list of parameters ObjectParameters

READ 

read attributes object, the input is empty list of parameters ObjectParameters filled and fed to the output

SELECT 

selection event has its peculiarities

RUN 

to execute the method

LIST 

returns the list item

LIST_COUNT 

number of items

NAME 

returns the name if it is.

CHILD_NAME 

returns the name if it is.