Canola
0.8.D001
|
00001 // 00002 // canola - canon canola 1614p emulator 00003 // Copyright (C) 2011 Peter Miller 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, version 3, as 00007 // published by the Free Software Foundation. 00008 // 00009 // This program is distributed in the hope that it will be useful, 00010 // but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00012 // General Public License for more details. 00013 // 00014 // You should have received a copy of the GNU General Public License along 00015 // with this program. If not, see <http://www.gnu.org/licenses/>. 00016 // 00017 00018 #ifndef LIB_PROGRAM_CARD_FUNCTOR_H 00019 #define LIB_PROGRAM_CARD_FUNCTOR_H 00020 00021 #include <lib/ac/stddef.h> 00022 #include <string> 00023 #include <boost/shared_ptr.hpp> 00024 00030 class program_card_functor 00031 { 00032 public: 00036 virtual ~program_card_functor(); 00037 00051 virtual void operator()(unsigned card_num, unsigned card_count, 00052 const unsigned char *data, size_t data_size) = 0; 00053 00059 virtual size_t instructions_per_card(void) const; 00060 00061 virtual void set_title(const std::string &text); 00062 virtual void set_arrow(bool value); 00063 virtual void set_color(const std::string &text); 00064 virtual void set_disassemble(bool value); 00065 virtual void set_perforations(bool value); 00066 virtual void set_trim_corners(bool value); 00067 virtual void set_style(const std::string &text); 00068 virtual void set_sfj_list(const std::string &text); 00069 virtual void set_fj_list(const std::string &text); 00070 virtual void set_memory_list(const std::string &text); 00071 virtual void set_steps(int value); 00072 00073 protected: 00078 program_card_functor(); 00079 00086 program_card_functor(const program_card_functor &rhs); 00087 00094 program_card_functor &operator=(const program_card_functor &rhs); 00095 }; 00096 00097 #endif // LIB_PROGRAM_CARD_FUNCTOR_H