Canola  0.8.D001
canola/calculator/proxy.h
Go to the documentation of this file.
00001 //
00002 // canola - canon canola 1614p emulator
00003 // Copyright (C) 2012 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 CANOLA_CALCULATOR_PROXY_H
00019 #define CANOLA_CALCULATOR_PROXY_H
00020 
00021 #include <lib/calculator.h>
00022 
00028 class calculator_proxy:
00029     public calculator
00030 {
00031 public:
00035     virtual ~calculator_proxy();
00036 
00040     calculator_proxy(calculator &deeper);
00041 
00047     void forward(int addr);
00048 
00049 protected:
00050     // See base class for documentation.
00051     void on_error_v(const char *fmt, va_list ap);
00052 
00053     // See base class for documentation.
00054     void run(void);
00055 
00056     // See base class for documentation.
00057     void clock_tick_start_running(void);
00058 
00059     // See base class for documentation.
00060     void derived_print(const display &value);
00061 
00062     // See base class for documentation.
00063     void derived_feed(void);
00064 
00065     // See base class for documentation.
00066     void derived_off(void);
00067 
00068     // See base class for documentation.
00069     void derived_update_display(const display &value);
00070 
00071     // See base class for documentation.
00072     void printer_timer_start_running(void);
00073 
00074 private:
00079     calculator &deeper;
00080 
00085     calculator_proxy();
00086 
00094     calculator_proxy(const calculator_proxy &rhs);
00095 
00103     calculator_proxy &operator=(const calculator_proxy &rhs);
00104 };
00105 
00106 #endif // CANOLA_CALCULATOR_PROXY_H