includes/wxChecksums-1.2.0/src/checksum.hpp

Go to the documentation of this file.
00001 /*
00002  * Checksum
00003  * Written by Julien Couot.
00004  *
00005  * This program is free software; you can redistribute it and/or
00006  * modify it under the terms of the GNU General Public License
00007  * as published by the Free Software Foundation; either version 2
00008  * of the License, or (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 
00025 #ifndef INC_CHECKSUM_HPP
00026 #define INC_CHECKSUM_HPP
00027 
00028 //---------------------------------------------------------------------------
00029 // For compilers that support precompilation, includes "wx.h".
00030 #include <wx/wxprec.h>
00031 
00032 #ifdef __BORLANDC__
00033 #pragma hdrstop
00034 #endif
00035 
00036 #ifndef WX_PRECOMP
00037 // Include your minimal set of headers here, or wx.h
00038 #include <wx/wx.h>
00039 #endif
00040 //---------------------------------------------------------------------------
00041 
00042 
00056 class Checksum
00057 {
00058  public:
00062   virtual void reset() = 0;
00063 
00071   virtual wxString getValue(const bool hexInUpperCase = false) const = 0;
00072   
00079   virtual void update(const wxByte* buf, unsigned int len) = 0;
00080 };
00081 //---------------------------------------------------------------------------
00082 
00084 WX_DEFINE_ARRAY(Checksum*, ArrayChecksum);
00085 //---------------------------------------------------------------------------
00086 
00087 #endif  // INC_CHECKSUM_HPP

Generated on Mon Feb 20 11:06:41 2006 for wxFlickr by  doxygen 1.4.6-NO