Changeset 117 in pacpusframework for trunk/include/Pacpus/kernel/ComponentFactory.h


Ignore:
Timestamp:
06/25/13 13:50:46 (11 years ago)
Author:
Marek Kurdej
Message:

Removed FileLib dependency in PacpusLib (using PacpusException instead of DbiteException).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/Pacpus/kernel/ComponentFactory.h

    r116 r117  
    5353    /// Ctor of ComponentFactory, initialize the factory of the components of type @em T.
    5454    /// @param type Name of the type of the components.
    55     ComponentFactory(const QString& type);
     55    ComponentFactory(const QString & type);
    5656
    5757    /// Dtor of ComponentFactory.
     
    6060    /// Gets the name of the type of the components.
    6161    /// @returns Name of the type of the components.
    62     const QString& getType() const;
     62    const QString & getType() const;
    6363
    6464protected:
    65     virtual ComponentBase* instantiateComponent(const QString& name);
     65    virtual ComponentBase * instantiateComponent(const QString& name);
    6666
    6767private:
     
    8989
    9090template<typename T>
    91 ComponentBase* ComponentFactory<T>::instantiateComponent(const QString& name)
     91ComponentBase * ComponentFactory<T>::instantiateComponent(const QString & name)
    9292{
    9393    return new T(name);
     
    9696} // namespace pacpus
    9797
    98 #endif // DEF_PACPUS_DBITEEXCEPTION_H
     98#endif // DEF_PACPUS_COMPONENTFACTORY_H
Note: See TracChangeset for help on using the changeset viewer.