OBLOB.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. /*
  2. * Seven Kingdoms: Ancient Adversaries
  3. *
  4. * Copyright 1997,1998 Enlight Software Ltd.
  5. *
  6. * This program is free software: you can redistribute it and/or modify
  7. * it under the terms of the GNU General Public License as published by
  8. * the Free Software Foundation, either version 2 of the License, or
  9. * (at your option) any later version.
  10. *
  11. * This program is distributed in the hope that it will be useful,
  12. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. * GNU General Public License for more details.
  15. *
  16. * You should have received a copy of the GNU General Public License
  17. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  18. *
  19. */
  20. // Filename : OBLOB.H
  21. // Description : header file for fixed size binary block
  22. // Owner : Gilbert
  23. #ifndef __OBLOB_H
  24. #define __OBLOB_H
  25. class Blob
  26. {
  27. public:
  28. char *ptr; // more exactly char const *ptr
  29. int size; // const int
  30. public:
  31. Blob();
  32. Blob(int);
  33. Blob( Blob &);
  34. ~Blob();
  35. void resize(int);
  36. Blob& operator=(Blob &);
  37. char *p() { return ptr; }
  38. };
  39. #endif