Main Page | Data Structures | File List | Data Fields | Globals

commands.h

Go to the documentation of this file.
00001 /*
00002         peakfinder
00003         Copyright (C) 2005 Hal Finkel
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 2 of the License, or
00008         (at your option) any later version.
00009 
00010         This program is distributed in the hope that it will be useful,
00011         but WITHOUT ANY WARRANTY; without even the implied warranty of
00012         MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013         GNU 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, write to the Free Software
00017         Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00018 */
00019 
00027 #include "common.h"
00028 
00029 #ifndef PF_COMMANDS_H
00030 #define PF_COMMANDS_H
00031 
00035 enum pf_command {
00036         command_invalid, 
00037         command_quit, 
00038         command_load, 
00039         command_print_data, 
00040         command_print_peaks, 
00041         command_print_peak, 
00042         command_print_calibration, 
00043         command_plot_data, 
00044         command_plot_peak, 
00045         command_calibrate, 
00046         command_clear_calibration 
00047 };
00048 
00052 struct pf_plot_range {
00053         double xstart; 
00054         double xend; 
00056         int xstartcal; 
00057         int xendcal; 
00058 };
00059 
00064 enum pf_command pf_get_parsed_command();
00065 
00070 enum pf_peak_sort pf_get_parsed_sort();
00071 
00076 struct pf_plot_range* pf_get_parsed_plot_range();
00077 
00082 char* pf_get_parsed_file();
00083 
00088 char* pf_get_parsed_driver();
00089 
00094 int pf_get_parsed_rescale();
00095 
00100 int pf_get_parsed_cal();
00101 
00106 int pf_get_parsed_norm();
00107 
00112 int pf_get_parsed_marked();
00113 
00118 int pf_get_parsed_annot();
00119 
00124 int pf_get_parsed_peak();
00125 
00130 double pf_get_parsed_rotation();
00131 
00132 struct pf_plot_params;
00133 
00138 void pf_get_parsed_plot_params(struct pf_plot_params* p);
00139 
00143 void pf_init_parse_data();
00144 
00148 void pf_free_parse_data();
00149 
00153 void pf_execute_command();
00154 
00159 void pf_set_command_parse_buffer(char* cmd);
00160 
00161 #endif

Generated on Sun Feb 20 17:46:14 2005 for peakfinder-0.1 by  doxygen 1.3.9.1