PIP
0.4.0_beta2
Platform-Independent Primitives
|
Interface to discover element groups. More...
Static Public Member Functions | |
static PIStringList | groups () |
Returns all existing groups by their names. | |
static PIVector< const PIObject * > | groupElements (const PIString &group) |
Returns all elements of group "group". | |
Related Functions | |
(Note that these are not member functions.) | |
#define | ADD_TO_COLLECTION(group, object) |
Add existing element "object" in group with name "group". More... | |
#define | ADD_NEW_TO_COLLECTION(group, class) |
Add new element of class "class" in group with name "group". More... | |
Interface to discover element groups.
This class has only static functions so no need to create instance of the PICollection. This class provide macros to add some classes or existing objects to global collection and access to them from any place of the code.
|
related |
Add existing element "object" in group with name "group".
If there is no group with name "group" it will be created. Only one element of the class "object" can be in group "group". If this is already exists nothing be happens.
"object" should to be pointer to object based on PIObject.
|
related |
Add new element of class "class" in group with name "group".
If there is no group with name "group" it will be created. Only one element of the class "class" can be in group "group". If this is already exists nothing be happens.
"class" should to be name of the any class based on PIObject.