Property Manager. More...
#include <fbproperties.h>
Public Member Functions | |
FBPropertyManager () | |
Constructor. More... | |
~FBPropertyManager () | |
Destructor. More... | |
int | Add (FBProperty *Property) |
Add a property to the property manager. More... | |
FBProperty * | operator[] (int pIndex) |
Overloaded [] operator. More... | |
int | GetCount () |
Get the number of properties stored in property manager. More... | |
FBProperty * | Find (const char *pPropertyName, bool pMultilangLookup=true) |
Find a property, based on its name. More... | |
void | FindPropertiesByName (const char *pPropertyNamePattern, FBArrayTemplate< FBProperty * > &pPropList, bool pMultilangLookup=true) |
This function will query the property list for properties fulfilling a particular name pattern. More... | |
int | Remove (FBProperty *pProperty) |
Remove a property. More... | |
void | AddToCache (FBProperty *pProperty) |
void | RemoveFromCache (KProperty *pProperty) |
FBProperty * | FindInCache (KProperty *pProperty) |
Property Manager.
The property manager exists in all FBComponent objects, and contains an array of all the registered properties. These properties may be SDK properties, internal properties or both.
Definition at line 1124 of file fbproperties.h.
Constructor.
~FBPropertyManager | ( | ) |
Destructor.
int Add | ( | FBProperty * | Property | ) |
Add a property to the property manager.
Property | Handle to property to add. |
Property
was added. FBProperty* Find | ( | const char * | pPropertyName, |
bool | pMultilangLookup = true |
||
) |
Find a property, based on its name.
pPropertyName | Name of property to look for. |
pMultilangLookup | When searching, indicate if the name lookup should also be done on the property name as shown in the GUI. (default = true) |
void FindPropertiesByName | ( | const char * | pPropertyNamePattern, |
FBArrayTemplate< FBProperty * > & | pPropList, | ||
bool | pMultilangLookup = true |
||
) |
This function will query the property list for properties fulfilling a particular name pattern.
pPropertyNamePattern | Indicate the name pattern to search. This pattern can contain any amount of *. (ex: *tr*mod*scene ) |
pPropList | List that contains the resulting properties matching the pattern |
pMultilangLookup | When searching, indicate if the name lookup should also be done on the property name as shown in the GUI. (default = true) |
int GetCount | ( | ) |
Get the number of properties stored in property manager.
FBProperty* operator[] | ( | int | pIndex | ) |
Overloaded [] operator.
Access the property at pIndex
.
pIndex | Index of property to access. |
pIndex
. int Remove | ( | FBProperty * | pProperty | ) |
Remove a property.
pProperty | Property to remove. |