Particle Identification and Tracking
matlab_apps/include/generic_wrapper_matlab.h
Go to the documentation of this file.
00001 //Copyright 2009 Thomas A Caswell
00002 //tcaswell@uchicago.edu
00003 //http://jfi.uchicago.edu/~tcaswell
00004 //
00005 //This program is free software; you can redistribute it and/or modify
00006 //it under the terms of the GNU General Public License as published by
00007 //the Free Software Foundation; either version 3 of the License, or (at
00008 //your option) any later version.
00009 //
00010 //This program is distributed in the hope that it will be useful, but
00011 //WITHOUT ANY WARRANTY; without even the implied warranty of
00012 //MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
00013 //General Public License for more details.
00014 //
00015 //You should have received a copy of the GNU General Public License
00016 //along with this program; if not, see <http://www.gnu.org/licenses>.
00017 //
00018 //Additional permission under GNU GPL version 3 section 7
00019 //
00020 //If you modify this Program, or any covered work, by linking or
00021 //combining it with MATLAB (or a modified version of that library),
00022 //containing parts covered by the terms of MATLAB User License, the
00023 //licensors of this Program grant you additional permission to convey
00024 //the resulting work.
00025 
00026 #ifndef GWRAPPER_MATLAB
00027 #define GWRAPPER_MATLAB
00028 #include "generic_wrapper_base.h"
00029 
00030 #include "mex.h"
00031 namespace utilities{
00032 class Generic_parameters_matlab;
00033 
00038 class Generic_wrapper_matlab:public Generic_wrapper_base{
00039 public:
00040 
00041 
00042   virtual void start_new_row() ;
00043   virtual void append_to_row(float data_in);
00044   virtual void finish_row();
00045   virtual void initialize_wrapper ();
00046   virtual void finalize_wrapper () ;
00047 
00048   
00049   
00050   virtual ~Generic_wrapper_matlab(){};
00051   Generic_wrapper_matlab(Generic_parameters_matlab* param);
00052 private:
00053   double* data_ptr_;
00054   int rows_;
00055   int cols_;
00056   int row_indx_;
00057   int col_indx_;
00058   mxArray** mx_ptr_ptr_;
00059 };
00060 }
00061 #endif