-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlibrary_init.cpp
More file actions
43 lines (36 loc) · 1.42 KB
/
library_init.cpp
File metadata and controls
43 lines (36 loc) · 1.42 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#include "common.h"
#include "LPM_UFRGS_Block_Kriging.h"
#include <GsTL/utils/smartptr.h>
#include <utils/gstl_messages.h>
#include <utils/manager_repository.h>
//extern "C" __declspec(dllexport) int plugin_init() {
extern "C" PLUGIN_DECL int plugin_init() {
GsTLlog << "\n\n registering actions add_properties" << "\n";
SmartPtr<Named_interface> ni =
Root::instance()->interface( actions_manager );
Manager* dir = dynamic_cast<Manager*>( ni.raw_ptr() );
if( !dir ) {
GsTLlog << "Directory " << actions_manager << " does not exist \n";
return 1;
}
//dir->factory( "AddProperties", Add_property::create_new_interface );
//dir->factory( "MultiplyProperties", Multiply_property::create_new_interface );
// Register algo
ni = Root::instance()->interface( geostatAlgo_manager );
dir = dynamic_cast<Manager*>( ni.raw_ptr() );
if( !dir ) {
GsTLlog << "Directory " << geostatAlgo_manager << " does not exist \n";
return 1;
}
dir->factory(LPM_UFRGS_Block_Kriging().name(), LPM_UFRGS_Block_Kriging::create_new_interface );
// Add the new chart
//ni = Root::instance()->interface( eda_charts_manager );
//dir = dynamic_cast<Manager*>( ni.raw_ptr() );
//if( !dir ) {
// GsTLlog << "Directory " << eda_charts_manager << " does not exist \n";
//return 1;
//}
//dir->factory( Pie_chart_creator_factory().name(),
// Pie_chart_creator_factory::create_new_interface);
return 0;
}