aboutsummaryrefslogtreecommitdiffstats
path: root/models/dl_model.hpp
diff options
context:
space:
mode:
authorastrojhgu <astrojhgu@ed2142bd-67ad-457f-ba7c-d818d4011675>2009-10-19 17:02:42 +0000
committerastrojhgu <astrojhgu@ed2142bd-67ad-457f-ba7c-d818d4011675>2009-10-19 17:02:42 +0000
commit372caea057ff88b2fb1327c45f77b7e4205293ea (patch)
tree08fde30323593835775b647898044f388f9586ed /models/dl_model.hpp
parente664e9d1d23b44f24459ddb24241efb684bdb0fd (diff)
downloadopt-utilities-372caea057ff88b2fb1327c45f77b7e4205293ea.tar.bz2
git-svn-id: file:///home/svn/opt_utilities@85 ed2142bd-67ad-457f-ba7c-d818d4011675
Diffstat (limited to 'models/dl_model.hpp')
-rw-r--r--models/dl_model.hpp45
1 files changed, 0 insertions, 45 deletions
diff --git a/models/dl_model.hpp b/models/dl_model.hpp
deleted file mode 100644
index 9729335..0000000
--- a/models/dl_model.hpp
+++ /dev/null
@@ -1,45 +0,0 @@
-#ifdef __linux__
-
-#ifndef DL_MODEL_HPP
-#define DL_MODEL_HPP
-#define OPT_HEADER
-#include <core/fitter.hpp>
-#include <cmath>
-#include <iostream>
-#include <string>
-#include <sstream>
-#include <dlfcn.h>
-
-namespace opt_utilities
-{
-
- template <typename T>
- model<T,T,std::vector<T>,std::string>* load_model(const char* fname)
- {
- void* handle;
-
- handle=dlopen(fname,RTLD_LAZY);
-
- if(!handle)
- {
- throw opt_exception("faild loading object");
- }
-
-
- model<T,T,std::vector<T>,std::string>* (*func_create)();
-
- func_create=(model<T,T,std::vector<T>,std::string>* (*)())dlsym(handle,"create_model_object");
-
- if(!func_create)
- {
- throw opt_exception("symble undefined");
- }
- return func_create();
- }
-}
-
-
-
-#endif
-#endif
-//EOF