#include <Y2ComponentCreator.h>
Inheritance diagram for Y2ComponentCreator:
Public Member Functions | |
Y2ComponentCreator (Y2ComponentBroker::order_t order) | |
virtual | ~Y2ComponentCreator () |
virtual Y2Component * | create (const char *name) const |
virtual Y2Component * | createInLevel (const char *name, int level, int current_level) const |
virtual Y2Component * | provideNamespace (const char *name) |
virtual bool | isServerCreator () const=0 |
bool | isClientCreator () const |
If you want to implement a component creator, subclass Y2ComponentCreator, override the create method such that it returns a newly created component of your type and create a global variable of type of your component creator. Its constructor will be called before the execution goes into the main() function and it will be added to the Y2ComponentBrokers list of creators.
|
Enters this component creator into the global list of component creators.
|
|
Base class must have virtual destructor |
|
Override this method to implement the actual creating of the component. You must use the symbol and the signature of the term to decide, which component is to be created. If you are not able to create a matching component, return 0. Reimplemented in Y2CCAgentComp< AgentComp >, Y2CCRemote, Y2CCSerial, Y2CCStdio, and Y2CCWFM. |
|
Override this method to implement component creation for non-builtin components such as share library plugins, scripts and external programs that must be searched for in different directories. The default implementation is to call create in case level == current_level. Reimplemented in Y2CCPlugin, Y2CCProgram, Y2CCPkg, and Y2CCScript. |
|
Specifies, whether this creator creates Y2Clients. |
|
Specifies, whether this creator creates Y2Servers. Implemented in Y2CCAgentComp< AgentComp >, Y2CCPlugin, Y2CCProgram, Y2CCRemote, Y2CCSerial, Y2CCStdio, TestY2CC, TestY2CC, Y2CCPkg, Y2CCScript, Y2CCWFM, and TestY2CC. |
|
Override this method to implement providing a component for a given namespace. If you are not able to create a matching component, return 0. Reimplemented in Y2CCAgentComp< AgentComp >, Y2CCPlugin, Y2CCProgram, Y2CCRemote, Y2CCSerial, Y2CCStdio, TestY2CC, TestY2CC, Y2CCPkg, Y2CCScript, Y2CCWFM, and TestY2CC. |