API Guides > ConceptRT 3.x
Objects (child) declaration

Detailed Description

Helper macros to declare an object (child) with its getter and setter.

    PROPERTY_[ | PROTECTED | PRIVATE]_OBJECT(type, name)

Macros

#define PROPERTY_OBJECT(type, name)
 Helper to declare a child object. More...
 
#define PROPERTY_PRIVATE_OBJECT(type, name)
 Helper to declare a child object. More...
 
#define PROPERTY_PROTECTED_OBJECT(type, name)
 Helper to declare a child object. More...
 

Macro Definition Documentation

#define PROPERTY_OBJECT (   type,
  name 
)

Helper to declare a child object.

Getter is public.

Parameters
typeThe child object type. The child object type should be a non scalar class.
nameThe child object name. Getter is created with Getname().

Direct access to the child object is possible using _name (private).

Context of use : Class declaration.

Examples:
DynamicInvocation/2.Macros/DynamicInvocationMacros.h, and Machine/main.cpp.
#define PROPERTY_PRIVATE_OBJECT (   type,
  name 
)

Helper to declare a child object.

Getter is private.

Parameters
typeThe child object type. The child object type should be a non scalar class.
nameThe child object name. Getter is created with Getname().

Direct access to the child object is possible using _name (private).

Context of use : Class declaration.

#define PROPERTY_PROTECTED_OBJECT (   type,
  name 
)

Helper to declare a child object.

Getter is protected.

Parameters
typeThe child object type. The child object type should be a non scalar class.
nameThe child object name. Getter is created with Getname().

Direct access to the child object is possible using _name (private).

Context of use : Class declaration.