Changeset 71 in pacpusframework for trunk/include/Pacpus/kernel/ComponentFactory.h
- Timestamp:
- 01/10/13 15:07:34 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/Pacpus/kernel/ComponentFactory.h
r66 r71 25 25 #include <QString> 26 26 27 /** Register a component to the factory. 28 * @className Name of the class, without the quotes. 29 * @factoryName Name of the class in the factory. 30 */ 27 /// @def REGISTER_COMPONENT(className, factoryName) 28 /// Registers a component to the factory. 29 /// 30 /// @param className Name of the class, without the quotes. 31 /// @param factoryName Name of the class in the factory. 32 /// @example 33 /// REGISTER_COMPONENT("DummyComponent", DummyComponent); 34 /// @see pacpus::ComponentFactory 31 35 #define REGISTER_COMPONENT(className, factoryName) \ 32 36 static pacpus::ComponentFactory<className> sFactory(factoryName) … … 34 38 namespace pacpus { 35 39 36 /** ComponentFactory 37 * @brief Use it to interface your components with the application. 38 * 39 * @example 40 * REGISTER_COMPONENT("DummyComponent", DummyComponent); 41 */ 40 /// Use it to interface your components with the application. 41 /// 42 /// @tparam T Component class 43 /// @see #REGISTER_COMPONENT(className, factoryName) 42 44 template <typename T> 43 45 class ComponentFactory
Note:
See TracChangeset
for help on using the changeset viewer.