Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
alta
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
5
Issues
5
List
Boards
Labels
Service Desk
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
alta
alta
Commits
c8bed4cf
Commit
c8bed4cf
authored
Apr 09, 2013
by
Laurent Belcour
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adding a todo.dox file
parent
4ae204f6
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
38 additions
and
6 deletions
+38
-6
documents/todo.dox
documents/todo.dox
+6
-0
sources/core/fitter.h
sources/core/fitter.h
+1
-6
sources/core/plugins_manager.cpp
sources/core/plugins_manager.cpp
+25
-0
sources/plugins/data_merl/data.cpp
sources/plugins/data_merl/data.cpp
+5
-0
sources/plugins/plugins.pro
sources/plugins/plugins.pro
+1
-0
No files found.
documents/todo.dox
0 → 100644
View file @
c8bed4cf
/**
\page todo_list Todo
\todo Change the automatic compilation soft to Cmake of scons
*/
sources/core/fitter.h
View file @
c8bed4cf
...
...
@@ -22,12 +22,7 @@ class fitter
virtual
void
set_parameters
(
const
arguments
&
args
)
=
0
;
/*
// Provide a function class and a data class
//
virtual data* provide_data() const = 0 ;
virtual function* provide_function() const = 0 ;
*/
}
;
Q_DECLARE_INTERFACE
(
fitter
,
"Fitter.Fitter"
)
sources/core/plugins_manager.cpp
View file @
c8bed4cf
...
...
@@ -218,6 +218,30 @@ data* plugins_manager::get_data(const std::string& n)
}
fitter
*
plugins_manager
::
get_fitter
(
const
std
::
string
&
n
)
const
{
if
(
n
.
empty
())
{
#ifdef DEBUG
std
::
cout
<<
"<<DEBUG>> no fitter plugin specified, returning null"
<<
std
::
endl
;
#endif
return
NULL
;
}
#ifndef USING_STATIC
FitterPrototype
myFitter
=
(
FitterPrototype
)
QLibrary
::
resolve
(
QString
(
n
.
c_str
()),
"_Z16provide_fitter"
);
if
(
myFitter
!=
NULL
)
{
#ifdef DEBUG
std
::
cout
<<
"<<DEBUG>> using function provider in file
\"
"
<<
n
<<
"
\"
"
<<
std
::
endl
;
#endif
return
myFitter
();
}
else
{
std
::
cerr
<<
"<<ERROR>> no data provider found in file
\"
"
<<
n
<<
"
\"
"
<<
std
::
endl
;
return
new
NULL
()
;
}
#else
if
(
_fitters
.
count
(
n
)
==
0
)
{
return
NULL
;
...
...
@@ -229,6 +253,7 @@ fitter* plugins_manager::get_fitter(const std::string& n) const
#endif
return
_fitters
.
find
(
n
)
->
second
;
}
#endif
}
// \todo implement the Darwin (MACOS) version.
...
...
sources/plugins/data_merl/data.cpp
View file @
c8bed4cf
...
...
@@ -333,6 +333,11 @@ int data_merl::dimY() const
return
3
;
}
data
*
provide_data
()
{
return
new
data_merl
();
}
Q_EXPORT_PLUGIN2
(
data_merl
,
data_merl
)
sources/plugins/plugins.pro
View file @
c8bed4cf
...
...
@@ -11,5 +11,6 @@ SUBDIRS = \
rational_fitter_matlab
\
rational_fitter_dca
\
nonlinear_levenberg_eigen
\
nonlinear_function_phong
\
data_merl
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment