CSAD
 All Classes Namespaces Functions Variables Enumerations Enumerator Friends Groups Pages
Public Member Functions | Static Public Member Functions | List of all members
csad::ObjectManager Class Reference

ObjectManager - tool organize objects. Is intended for storage of objects or containers components. More...

Inheritance diagram for csad::ObjectManager:
csad::BaseObject

Public Member Functions

CSAD_API bool addObject (void *obj, char *name)
 Adds the object and sets it a name.
 
_FORCEINLINE bool addObject (void *obj, const char *name="")
 Adds the object and sets it a name.
 
CSAD_API bool detachObject (void *obj)
 Removes the object.
 
CSAD_API const char * getName (void *obj)
 Returns the name of the object if it is in the list.
 
CSAD_API void * getObject (char *name)
 Returns the object by name.
 
CSAD_API void * getObject (const char *name="")
 Returns the object by name.
 
template<typename T >
_FORCEINLINE T * getObject (char *name)
 Returns the object by name, and leads to the specified type.
 
template<typename T >
_FORCEINLINE T * getObject (const char *name="")
 Returns the object by name, and leads to the specified type.
 
_FORCEINLINE ObjectsListgetObjects ()
 Returns a list of objects.
 
CSAD_API bool removeObject (char *name)
 Removes the connection object named.
 
CSAD_API bool removeObject (const char *name="")
 Removes the connection object named.
 
CSAD_API void * set (unsigned _int32, void *)
 used for any interface commands.
 
- Public Member Functions inherited from csad::BaseObject
_FORCEINLINE bool isContainer ()
 returns true if the object is a container.
 
_FORCEINLINE ParametersListread (ParametersList *data)
 read attributes object.
 
_FORCEINLINE void * type ()
 the output pointer to the typeid() of the class.
 
_FORCEINLINE void write (ParametersList *data)
 record attributes of the object.
 

Static Public Member Functions

static CSAD_API ObjectManagermanager ()
 root Manager objects
 

Additional Inherited Members

- Public Types inherited from csad::BaseObject
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...
 

Detailed Description

ObjectManager - tool organize objects. Is intended for storage of objects or containers components.

See Also
csad: core