MAJ terminée. Nous sommes passés en version 14.6.2 . Pour consulter les "releases notes" associées c'est ici :

https://about.gitlab.com/releases/2022/01/11/security-release-gitlab-14-6-2-released/
https://about.gitlab.com/releases/2022/01/04/gitlab-14-6-1-released/

Commit b51576c3 authored by KLOCZKO Thibaud's avatar KLOCZKO Thibaud
Browse files

Modify file extension for template classes to fit with c++

standards. Add documention for dtkCore.
parent 74dae3fb
......@@ -2,8 +2,8 @@ naturallanguage = en_US
outputencoding = UTF-8
sourceencoding = UTF-8
headers.fileextensions = "*.h *.hpp *.ch *.h++ *.hh *.hxx"
sources.fileextensions = "*.c++ *.cc *.cpp *.cxx *.mm *.qml *.qdoc"
examples.fileextensions = "*.cpp *.h *.js *.xq *.svg *.xml *.ui *.qhp *.qhcp *.qml *.css"
examples.imageextensions = "*.png *.jpg *.gif"
headers.fileextensions = "*.ch *.h *.h++ *.hh *.hpp *.hxx"
sources.fileextensions = "*.c++ *.cc *.cpp *.cxx *.tpp *.mm *.qml *.qdoc"
......@@ -11,7 +11,5 @@ sourcedirs = ../../src/dtkCore/
exampledirs = .
imagedirs = .
sources.fileextensions += "*.tpp"
navigation.landingpage = "dtkCore"
navigation.cppclassespage = "dtkCore C++ Classes"
\ No newline at end of file
......@@ -3,9 +3,9 @@
## Author: Julien Wintz
## Created: Fri Feb 8 16:49:52 2013 (+0100)
## Version:
## Last-Updated: Sun Mar 24 16:58:43 2013 (+0100)
## By: Julien Wintz
## Update #: 34
## Last-Updated: mer. avril 2 10:03:28 2014 (+0200)
## By: Thibaud Kloczko
## Update #: 35
######################################################################
##
### Change Log:
......@@ -27,10 +27,10 @@ set(${PROJECT_NAME}_HEADERS
dtkCorePlugin.h
dtkCorePluginFactory
dtkCorePluginFactory.h
dtkCorePluginFactory.tpp
dtkCorePluginFactory_t.h
dtkCorePluginManager
dtkCorePluginManager.h
dtkCorePluginManager.tpp
dtkCorePluginManager_t.h
dtkCoreSettings
dtkCoreSettings.h)
......
/*!
\class dtkCorePluginFactory
\inmodule dtkCore
\brief The dtkCorePluginFactory class is a template class that provides a plugin factory for any template type.
\brief The dtkCorePluginFactory class is a template class that provides a plugin factory for any type.
*/
......@@ -14,6 +14,9 @@
*/
/*! \typedef dtkCorePluginFactory::creator
Pattern defining creator functions provided by the plugin.
The signature of such functions must be:
\code T *(*creator) () \endcode
*/
/*! \fn void dtkCorePluginFactory::record(const QString& key, creator func)
......
/*!
\class dtkCorePluginManagerPrivate
\internal
\brief The dtkCorePluginManagerPrivate class is the private implementation of dtkCorePluginManager.
*/
/*! \fn bool dtkCorePluginManagerPrivate::check(const QString& path)
\internal
Checks validity of the plugin library \a path (name, version, dependencies).
*/
/*!
\class dtkCorePluginManager
\inmodule dtkCore
\brief The dtkCorePluginManager class is a template class that handles plugins.
*/
/*! \fn dtkCorePluginManager::dtkCorePluginManager()
Constructs the plugin manager.
*/
/*! \fn dtkCorePluginManager::~dtkCorePluginManager()
Destroys the plugin manager
*/
/*! \fn void dtkCorePluginManager::initialize(const QString& path)
Scans and loads each plugin library located in directory \a path.
\sa scan(), load(), uninitialize()
*/
/*! \fn void dtkCorePluginManager::uninitialize()
Unloads all plugin libraries handled by the manager.
\sa initialize()
*/
/*! \fn void dtkCorePluginManager::scan(const QString& path)
Scans plugin library \a path and stores plugin metadatas (name, version, dependencies).
\sa initialize(), load()
*/
/*! \fn void dtkCorePluginManager::load(const QString& path)
Checks the validity of the plugin library \a path, and if so creates the plugin.
\sa initialize(), scan(), unload()
*/
/*! \fn void dtkCorePluginManager::unload(const QString& path)
Destroys the plugin of the plugin library \a path. Destroys the related plugin loader.
\sa load()
*/
/*! \fn QStringList dtkCorePluginManager::plugins()
Returns all absolute path to all the plugin libraries handled by the manager.
*/
......@@ -3,9 +3,9 @@
* Author: Julien Wintz
* Created: Thu Feb 28 15:43:06 2013 (+0100)
* Version:
* Last-Updated: mar. avril 1 16:59:36 2014 (+0200)
* Last-Updated: mer. avril 2 10:03:47 2014 (+0200)
* By: Thibaud Kloczko
* Update #: 28
* Update #: 31
*/
/* Change Log:
......@@ -58,4 +58,4 @@ template <typename S, typename T> S *dtkCorePluginFactoryCreator(void) {
return new T;
}
#include "dtkCorePluginFactory.tpp"
#include "dtkCorePluginFactory_t.h"
......@@ -3,9 +3,9 @@
* Author: Julien Wintz
* Created: Mon Feb 11 12:07:50 2013 (+0100)
* Version:
* Last-Updated: Thu Feb 28 15:58:49 2013 (+0100)
* By: Julien Wintz
* Update #: 43
* Last-Updated: mer. avril 2 10:04:36 2014 (+0200)
* By: Thibaud Kloczko
* Update #: 53
*/
/* Change Log:
......@@ -18,17 +18,21 @@
template <typename T> class dtkCorePluginManagerPrivate;
// ///////////////////////////////////////////////////////////////////
// dtkCorePluginManager
// ///////////////////////////////////////////////////////////////////
template <typename T> class dtkCorePluginManager : public QObject
{
public:
dtkCorePluginManager(void);
~dtkCorePluginManager(void);
dtkCorePluginManager();
~dtkCorePluginManager();
#pragma mark -
#pragma Manager Management
virtual void initialize(const QString& path);
virtual void uninitialize(void);
virtual void uninitialize();
#pragma mark -
#pragma Plugin Management
......@@ -40,10 +44,12 @@ public:
#pragma mark -
#pragma Plugin Queries
QStringList plugins(void);
QStringList plugins();
protected:
dtkCorePluginManagerPrivate<T> *d;
};
#include "dtkCorePluginManager.tpp"
// ///////////////////////////////////////////////////////////////////
#include "dtkCorePluginManager_t.h"
......@@ -3,9 +3,9 @@
* Author: Julien Wintz
* Created: Mon Feb 11 12:08:44 2013 (+0100)
* Version:
* Last-Updated: Thu Feb 28 16:01:42 2013 (+0100)
* By: Julien Wintz
* Update #: 57
* Last-Updated: mar. avril 1 22:11:13 2014 (+0200)
* By: Thibaud Kloczko
* Update #: 62
*/
/* Change Log:
......@@ -75,12 +75,12 @@ template <typename T> bool dtkCorePluginManagerPrivate<T>::check(const QString&
// dtkCorePluginManager
// ///////////////////////////////////////////////////////////////////
template <typename T> dtkCorePluginManager<T>::dtkCorePluginManager(void) : d(new dtkCorePluginManagerPrivate<T>)
template <typename T> dtkCorePluginManager<T>::dtkCorePluginManager() : d(new dtkCorePluginManagerPrivate<T>)
{
}
template <typename T> dtkCorePluginManager<T>::~dtkCorePluginManager(void)
template <typename T> dtkCorePluginManager<T>::~dtkCorePluginManager()
{
delete d;
......@@ -101,7 +101,7 @@ template <typename T> void dtkCorePluginManager<T>::initialize(const QString& pa
this->load(info.absoluteFilePath());
}
template <typename T> void dtkCorePluginManager<T>::uninitialize(void)
template <typename T> void dtkCorePluginManager<T>::uninitialize()
{
foreach(const QString &path, d->loaders.keys())
this->unload(path);
......@@ -132,7 +132,7 @@ template <typename T> void dtkCorePluginManager<T>::load(const QString& path)
if(!d->check(path))
return;
QPluginLoader *loader = new QPluginLoader(path);
QPluginLoader *loader = new QPluginLoader(path); // should not set this as parent to avoid bad deallocation
if(!loader)
return;
......@@ -169,7 +169,7 @@ template <typename T> void dtkCorePluginManager<T>::unload(const QString& path)
#pragma mark -
#pragma Plugin Queries
template <typename T> QStringList dtkCorePluginManager<T>::plugins(void)
template <typename T> QStringList dtkCorePluginManager<T>::plugins()
{
return d->loaders.keys();
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment