source: abuse/trunk/src/include/points.hpp @ 2

Last change on this file since 2 was 2, checked in by Sam Hocevar, 14 years ago
  • imported original 0.7.0 tarball
File size: 497 bytes
Line 
1#ifndef __POINTS_HPP_
2#define __POINTS_HPP_
3#include <stdio.h>
4#include <stdlib.h>
5#include "jmalloc.hpp"
6#include "specs.hpp"
7
8class point_list
9{
10public :
11  unsigned char tot;
12  unsigned char *data;
13  point_list(unsigned char how_many, unsigned char *Data);
14  point_list() { tot=0; data=NULL; }
15  point_list(bFILE *fp);
16  void save(bFILE *fp);
17  long size() { return 1+2*tot; }
18  point_list *copy() { return new point_list(tot,data); }
19  ~point_list() { if (tot) { jfree(data); } }
20} ;
21
22#endif
23
24
Note: See TracBrowser for help on using the repository browser.