Pol  Revision:f37d500
boundbox.h
Go to the documentation of this file.
1 
7 #ifndef __BOUNDBOX_H
8 #define __BOUNDBOX_H
9 
10 #include <string>
11 #include <vector>
12 
13 namespace Pol
14 {
15 namespace Mobile
16 {
17 struct Point
18 {
19  unsigned short x;
20  unsigned short y;
21 };
22 
23 struct Area
24 {
27 };
28 
30 {
31 public:
32  bool contains( unsigned short x, unsigned short y ) const;
33  bool read( std::string areadesc );
34  void addarea( const Area& area );
35 
36 private:
37  typedef std::vector<Area> Areas;
38  Areas areas;
39 };
40 }
41 }
42 #endif // BOUNDBOX_H
std::vector< Area > Areas
Definition: boundbox.h:37
unsigned short x
Definition: boundbox.h:19
Point bottomright
Definition: boundbox.h:26
unsigned short y
Definition: boundbox.h:20
Definition: berror.cpp:12