Particle Identification and Tracking
common_src/include/generic_wrapper_base.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_BASE
00027 #define GWRAPPER_BASE
00028 
00029 namespace utilities{
00045 class Generic_wrapper_base{
00046 public:
00047 
00048 
00053 
00057   virtual void start_new_row() = 0;
00064   virtual void append_to_row(float data_in) = 0;
00068   virtual void finish_row() = 0;
00070 
00071 
00076   
00080   virtual void initialize_wrapper () = 0;
00084   virtual void finalize_wrapper () = 0;
00085 
00087   
00091   Generic_wrapper_base(bool a,bool b):
00092     wrapper_open_(a),row_open_(b){}
00096   virtual ~Generic_wrapper_base(){};
00097 protected:
00101   bool wrapper_open_;
00105   bool row_open_;
00106 };
00107 }
00108 #endif