Changeset 117 in pacpusframework
- Timestamp:
- Jun 25, 2013, 1:50:46 PM (11 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/Pacpus/kernel/ComponentFactory.h
r116 r117 53 53 /// Ctor of ComponentFactory, initialize the factory of the components of type @em T. 54 54 /// @param type Name of the type of the components. 55 ComponentFactory(const QString & type);55 ComponentFactory(const QString & type); 56 56 57 57 /// Dtor of ComponentFactory. … … 60 60 /// Gets the name of the type of the components. 61 61 /// @returns Name of the type of the components. 62 const QString & getType() const;62 const QString & getType() const; 63 63 64 64 protected: 65 virtual ComponentBase * instantiateComponent(const QString& name);65 virtual ComponentBase * instantiateComponent(const QString& name); 66 66 67 67 private: … … 89 89 90 90 template<typename T> 91 ComponentBase * ComponentFactory<T>::instantiateComponent(const QString& name)91 ComponentBase * ComponentFactory<T>::instantiateComponent(const QString & name) 92 92 { 93 93 return new T(name); … … 96 96 } // namespace pacpus 97 97 98 #endif // DEF_PACPUS_ DBITEEXCEPTION_H98 #endif // DEF_PACPUS_COMPONENTFACTORY_H -
trunk/include/Pacpus/kernel/DbiteException.h
r116 r117 23 23 namespace pacpus { 24 24 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. 27 26 class FILELIB_API DbiteException 28 27 : virtual public PacpusException -
trunk/src/PacpusLib/PacpusApplication.cpp
r115 r117 9 9 /// @copyright Copyright (c) UTC/CNRS Heudiasyc 2006 - 2013. All rights reserved. 10 10 11 #include <Pacpus/kernel/DbiteException.h>12 11 #include <Pacpus/kernel/Log.h> 13 12 #include <Pacpus/kernel/PacpusApplication.h> 13 #include <Pacpus/kernel/PacpusException.h> 14 14 15 15 using namespace pacpus; … … 83 83 try { 84 84 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()); 87 87 } catch(std::exception & e) { 88 88 LOG_ERROR("std::exception thrown:" << e.what());
Note:
See TracChangeset
for help on using the changeset viewer.