[a34150]: contrib / brl / bseg / boxm2_batch / reg_boxm2.cxx Maximize Restore History

Download this file

reg_boxm2.cxx    134 lines (120 with data), 4.0 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
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
#include "reg_boxm2.h"
#include <bprb/bprb_macros.h>
#include <bprb/bprb_batch_process_manager.h>
#include <brdb/brdb_selection.h>
// processes
#include <boxm2/pro/boxm2_register.h>
#include <boxm2/cpp/pro/boxm2_cpp_register.h>
#include <vpgl_pro/vpgl_register.h>
#include <vil_pro/vil_register.h>
#include <sdet_pro/sdet_register.h>
#include <brip_pro/brip_register.h>
#if defined(HAS_OPENCL) && HAS_OPENCL
#include <bocl/pro/bocl_register.h>
#include <boxm2/ocl/pro/boxm2_ocl_register.h>
#include <boxm2/volm/pro/boxm2_volm_register.h>
#if defined(HAS_GLEW) && HAS_GLEW
#include <boxm2/view/pro/boxm2_view_register.h>
#endif
#endif
#include <bbas_pro/bbas_register.h>
#include <brad_pro/brad_register.h>
#include <bsta/pro/bsta_register.h>
#include <bvpl/kernels/pro/bvpl_kernels_register.h>
#include <ihog_pro/ihog_register.h>
#if defined(HAS_HDFS) && HAS_HDFS
#include <bhdfs/pro/bhdfs_register.h>
#endif
#include <bxml/bsvg/pro/bsvg_register.h>
#include <bvrml/pro/bvrml_register.h>
#include <bbgm/pro/bbgm_register.h>
#include <icam_pro/icam_register.h>
#include <volm/pro/volm_register.h>
PyObject *
register_processes(PyObject *self, PyObject *args)
{
boxm2_register::register_process();
boxm2_cpp_register::register_process();
vpgl_register::register_process();
vil_register::register_process();
brip_register::register_process();
bvpl_kernels_register::register_process();
#if defined(HAS_OPENCL) && HAS_OPENCL
bocl_register::register_process();
boxm2_ocl_register::register_process();
boxm2_volm_register::register_process();
#if defined(HAS_GLEW) && HAS_GLEW
boxm2_view_register::register_process();
#endif
#endif
bbas_register::register_process();
brad_register::register_process();
bsta_register::register_process();
ihog_register::register_process();
sdet_register::register_process();
#if defined(HAS_HDFS) && HAS_HDFS
bhdfs_register::register_process();
#endif
bsvg_register::register_process();
bvrml_register::register_process();
bbgm_register::register_process();
icam_register::register_process();
volm_register::register_process();
Py_INCREF(Py_None);
return Py_None;
}
PyObject *
register_datatypes(PyObject *self, PyObject *args)
{
register_basic_datatypes();
boxm2_register::register_datatype();
boxm2_cpp_register::register_datatype();
vpgl_register::register_datatype();
vil_register::register_datatype();
brip_register::register_datatype();
bvpl_kernels_register::register_datatype();
#if defined(HAS_OPENCL) && HAS_OPENCL
bocl_register::register_datatype();
boxm2_ocl_register::register_datatype();
boxm2_volm_register::register_datatype();
#if defined(HAS_GLEW) && HAS_GLEW
boxm2_view_register::register_datatype();
#endif
#endif
bbas_register::register_datatype();
sdet_register::register_datatype();
brad_register::register_datatype();
bsta_register::register_datatype();
ihog_register::register_datatype();
#if defined(HAS_HDFS) && HAS_HDFS
bhdfs_register::register_datatype();
#endif
bsvg_register::register_datatype();
bvrml_register::register_datatype();
bbgm_register::register_datatype();
icam_register::register_datatype();
boxm2_register::register_datatype();
volm_register::register_datatype();
Py_INCREF(Py_None);
return Py_None;
}
PyMODINIT_FUNC
initboxm2_batch(void)
{
PyMethodDef reg_pro;
reg_pro.ml_name = "register_processes";
reg_pro.ml_meth = register_processes;
reg_pro.ml_doc = "register_processes() create instances of each defined process";
reg_pro.ml_flags = METH_VARARGS;
PyMethodDef reg_data;
reg_data.ml_name = "register_datatypes";
reg_data.ml_meth = register_datatypes;
reg_data.ml_doc = "register_datatypes() insert tables in the database for each type";
reg_data.ml_flags = METH_VARARGS;
boxm2_batch_methods[0]=reg_pro;
boxm2_batch_methods[1]=reg_data;
for (int i=0; i<METHOD_NUM; ++i) {
boxm2_batch_methods[i+2]=batch_methods[i];
}
Py_InitModule("boxm2_batch", boxm2_batch_methods);
}