A repository for group factories.
More...
#include <GroupFactoryRepository.h>
|
void | init (void) |
| Initializes factories for all supported GAMS groups. More...
|
|
A repository for group factories.
Definition at line 76 of file GroupFactoryRepository.h.
gams::groups::GroupFactoryRepository::GroupFactoryRepository |
( |
madara::knowledge::KnowledgeBase * |
knowledge = 0 | ) |
|
Constructor.
- Parameters
-
knowledge | a knowledge base to look into for group prefixes |
virtual gams::groups::GroupFactoryRepository::~GroupFactoryRepository |
( |
| ) |
|
|
virtual |
Adds an algorithm factory.
- Parameters
-
type | the type number for this factory |
factory | the factory for creating an algorithm |
- Returns
- the new algorithm
GroupBase* gams::groups::GroupFactoryRepository::create |
( |
const std::string & |
prefix | ) |
|
Creates a group based on group prefix in the knowledge base.
- Parameters
-
prefix | the name of the group (e.g. group.protectors) |
- Returns
- the new group
Creates a group based on type.
- Parameters
-
type | the type of the group ( |
- See also
- GroupTypes)
- Returns
- the new group
void gams::groups::GroupFactoryRepository::init |
( |
void |
| ) |
|
|
protected |
Initializes factories for all supported GAMS groups.
void gams::groups::GroupFactoryRepository::set_knowledge |
( |
madara::knowledge::KnowledgeBase * |
knowledge | ) |
|
Sets the knowledge base.
- Parameters
-
knowledge | the knowledge base to use |
madara::knowledge::KnowledgeBase* gams::groups::GroupFactoryRepository::knowledge_ |
|
protected |
The documentation for this class was generated from the following file: