home *** CD-ROM | disk | FTP | other *** search
/ Chip 2005 June / ccd0605.iso / LINUX / gopchop-1.1.7.tar.tar / gopchop-1.1.7.tar / gopchop-1.1.7 / src / Bounds.h < prev    next >
C/C++ Source or Header  |  2003-04-27  |  1KB  |  54 lines

  1. /*
  2. #
  3. # Header for Bounds class
  4. #
  5. # $Id: Bounds.h,v 1.5 2003/04/27 07:21:56 nemies Exp $
  6. #
  7. # Copyright (C) 2001-2003 Kees Cook
  8. # kees@outflux.net, http://outflux.net/
  9. # This program is free software; you can redistribute it and/or
  10. # modify it under the terms of the GNU General Public License
  11. # as published by the Free Software Foundation; either version 2
  12. # of the License, or (at your option) any later version.
  13. # This program is distributed in the hope that it will be useful,
  14. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  16. # GNU General Public License for more details.
  17. # You should have received a copy of the GNU General Public License
  18. # along with this program; if not, write to the Free Software
  19. # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
  20. # http://www.gnu.org/copyleft/gpl.html
  21. #
  22. */
  23.  
  24. #ifndef _BOUNDS_H_
  25. #define _BOUNDS_H_
  26.  
  27. #include "GOPchop.h"
  28.  
  29. class Bounds
  30. {
  31.   public:
  32.     Bounds();
  33.  
  34.     void defineBounds(uint32_t start, uint32_t maxi);
  35.     void extendTo(uint32_t maxi);
  36.  
  37.     int getDefined();
  38.  
  39.     uint32_t getFirst();
  40.     uint32_t getMax();
  41.   protected:
  42.     int defined;
  43.  
  44.     uint32_t first;
  45.     uint32_t max;
  46. };
  47.  
  48. #endif // _BOUNDS_H_
  49.  
  50. /* vi:set ai ts=4 sw=4 expandtab: */
  51.