Canola  0.8.D001
lib/program_card/functor/image/png.h
Go to the documentation of this file.
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_IMAGE_PNG_H
00019 #define LIB_PROGRAM_CARD_FUNCTOR_IMAGE_PNG_H
00020 
00021 #include <lib/config.h>
00022 #include <string>
00023 
00024 #include <lib/program_card/functor/image.h>
00025 
00030 class program_card_functor_image_png:
00031     public program_card_functor_image
00032 {
00033 public:
00037     virtual ~program_card_functor_image_png();
00038 
00048     static pointer create(const std::string &filename);
00049 
00050     // See base class for documentation.
00051     void operator()(unsigned card_num, unsigned card_count,
00052         const unsigned char *data, size_t data_size);
00053 
00054 private:
00062     program_card_functor_image_png(const std::string &filename);
00063 
00068     std::string filename;
00069 
00074     program_card_functor_image_png();
00075 
00083     program_card_functor_image_png(const program_card_functor_image_png &rhs);
00084 
00092     program_card_functor_image_png &operator=(
00093         const program_card_functor_image_png &rhs);
00094 };
00095 
00096 #endif // LIB_PROGRAM_CARD_FUNCTOR_IMAGE_PNG_H