41 lines
891 B
C++
41 lines
891 B
C++
#ifndef _OWLPS_POSITIONING_REFERENCEPOINT_HH_
|
|
#define _OWLPS_POSITIONING_REFERENCEPOINT_HH_
|
|
|
|
class Area ;
|
|
class Waypoint ;
|
|
|
|
#include <iostream>
|
|
#include <vector>
|
|
|
|
using namespace std ;
|
|
|
|
class Building
|
|
{
|
|
protected:
|
|
string name ;
|
|
vector<Area*> areas ;
|
|
vector<Waypoint*> waypoints ;
|
|
|
|
public :
|
|
Building(const string &_name = "Unnamed building") ;
|
|
Building(const Building &b) ;
|
|
|
|
~Building(void) ;
|
|
|
|
string get_name(void) const ;
|
|
vector<Area*> get_areas(void) const ;
|
|
vector<Waypoint*> get_waypoints(void) const ;
|
|
|
|
void set_name(const string &_name) ;
|
|
void add_area(const Area *a) ;
|
|
void add_waypoint(const Waypoint *wp) ;
|
|
|
|
Building operator=(const Building &p) ;
|
|
bool operator==(const Building &p) const ;
|
|
inline bool operator!=(const Building &p) const ;
|
|
|
|
friend ostream& operator<<(ostream &os, Building &b) ;
|
|
} ;
|
|
|
|
#endif // _OWLPS_POSITIONING_REFERENCEPOINT_HH_
|