Changeset 117 in pacpusframework


Ignore:
Timestamp:
Jun 25, 2013, 1:50:46 PM (12 years ago)
Author:
Marek Kurdej
Message:

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

Location:
trunk
Files:
3 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
  • trunk/include/Pacpus/kernel/DbiteException.h

    r116 r117  
    2323namespace pacpus {
    2424
    25 /// DbiteException
    26 /// @brief Exception thrown when an error manipulation a dbite file occured.
     25/// Exception thrown when an error during manipulation a dbite file occurs.
    2726class FILELIB_API DbiteException
    2827    : virtual public PacpusException
  • trunk/src/PacpusLib/PacpusApplication.cpp

    r115 r117  
    99/// @copyright Copyright (c) UTC/CNRS Heudiasyc 2006 - 2013. All rights reserved.
    1010
    11 #include <Pacpus/kernel/DbiteException.h>
    1211#include <Pacpus/kernel/Log.h>
    1312#include <Pacpus/kernel/PacpusApplication.h>
     13#include <Pacpus/kernel/PacpusException.h>
    1414
    1515using namespace pacpus;
     
    8383    try {
    8484        return QApplication::notify(receiver, ev);
    85     } catch(DbiteException & e) {
    86         LOG_ERROR("DbiteException thrown:" << e.what());
     85    } catch(PacpusException & e) {
     86        LOG_ERROR("PacpusException thrown:" << e.what());
    8787    } catch(std::exception & e) {
    8888        LOG_ERROR("std::exception thrown:" << e.what());
Note: See TracChangeset for help on using the changeset viewer.