#include <AttributeFactory.h>
Public Types | |
typedef AttributeBase* (* | CreateAttributeCallback )(std::vector< std::string > &) |
Public Methods | |
AttributeFactory () | |
virtual | ~AttributeFactory () |
bool | RegisterAttribute (std::string &AttributeId, CreateAttributeCallback f) |
Register a type identifier representing an attribute and the corresponding attribute creator function. | |
bool | UnregisterAttribute (std::string &AttributeId) |
Unregister a type identifier. The attribute factory will no longer be able to create attributes of that type identifier anymore. | |
AttributeBase* | CreateAttribute (std::string &AttributeId, std::vector< std::string > &AttributeInfo) |
Create an attribute object of the given attribute type. |