Changeset 116 in pacpusframework for trunk/include/Pacpus/kernel/ComponentFactoryBase.h
- Timestamp:
- 06/25/13 13:44:25 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/Pacpus/kernel/ComponentFactoryBase.h
r76 r116 16 16 #define DEF_PACPUS_COMPONENTFACTORYBASE_H 17 17 18 #include <Pacpus/kernel/ pacpus.h>18 #include <Pacpus/kernel/PacpusLibConfig.h> 19 19 20 20 class QString; … … 25 25 class ComponentBase; 26 26 27 /** ComponentFactoryBase 28 * @brief Provide an abstract class to the template ComponentFactory. 29 */ 27 /// ComponentFactoryBase 28 /// @brief Provide an abstract class to the template ComponentFactory. 30 29 class PACPUSLIB_API ComponentFactoryBase 31 30 { 32 31 friend class ComponentManager; 32 33 33 public: 34 / ** Ctor of ComponentFactoryBase. */34 /// Ctor of ComponentFactoryBase. 35 35 ComponentFactoryBase(); 36 / ** Dtor of ComponentFactoryBase. */36 /// Dtor of ComponentFactoryBase. 37 37 virtual ~ComponentFactoryBase(); 38 38 39 39 protected: 40 /** Create a new component having @em name as component name. 41 * @param name Name of the instantiated component. 42 * @return Pointer on the newly created component, you become the owner of its lifetime. 43 */ 40 /// Creates a new component having @em name as component name. 41 /// Caller becomes the owner of its lifetime 42 /// 43 /// @param name Name of the instantiated component. 44 /// @returns Pointer on the newly created component. 44 45 virtual ComponentBase * instantiateComponent(const QString& name) = 0; 45 46 46 / ** Registera new factory.47 * @param addr Address of the factory.48 * @param type Name of the type created bythe factory.49 */47 /// Registers a new factory. 48 /// 49 /// @param addr Address of the factory. 50 /// @param type Name of the type created by the factory. 50 51 void addFactory(ComponentFactoryBase* addr, const QString& type); 51 52 52 / ** Adda new component.53 * @param name Name of the new component.54 */53 /// Adds a new component. 54 /// 55 /// @param name Name of the new component. 55 56 void addComponent(const QString& name); 56 57
Note:
See TracChangeset
for help on using the changeset viewer.