00001 00011 class OLPoint : public OPoint 00012 { 00013 protected: 00014 string label; 00015 public: 00016 inline OGraphic* clone() const; 00017 inline OGraphic* create() const; 00018 OLPoint(); 00019 OLPoint(int,int,string &); 00020 OLPoint(OPoint &,string &); 00021 ~OLPoint(); 00022 00023 bool isValid(); 00024 00025 void gomo(ostream &); 00026 void gomi(istream &); 00027 void xmlo(ostream &); 00028 void svgo(ostream &); 00029 00030 inline void clear(); 00031 inline void setLabel(string &); 00032 inline string getLabel(); 00033 }; 00034 00035 inline OGraphic* OLPoint::clone() const 00036 { return new OLPoint(*this); } 00037 inline OGraphic* OLPoint::create() const 00038 { return new OLPoint(); } 00039 00040 inline void OLPoint::clear() 00041 { this->x = -1; this->y = -1; this->label = "none"; } 00042 inline void OLPoint::setLabel(string & label) 00043 { this->label = label; } 00044 inline string OLPoint::getLabel() 00045 { return label; }