00001 00011 class ALink : public AGraphic 00012 { 00013 protected: 00014 int from,to; 00015 string linkLabel(int); 00016 00017 public: 00018 static int begin,end,center; 00019 00020 inline AGraphic* clone() const; 00021 inline AGraphic* create() const; 00022 ALink(); 00023 ALink(int,int); 00024 ~ALink(); 00025 00026 void gomo(ostream &); 00027 void gomi(istream &); 00028 void xmlo(ostream &); 00029 00030 inline void setLink(int,int); 00031 inline int getFrom(); 00032 inline int getTo(); 00033 }; 00034 00035 inline AGraphic* ALink::clone() const 00036 { return new ALink(*this); } 00037 inline AGraphic* ALink::create() const 00038 { return new ALink(); } 00039 00044 void ALink::setLink(int fE,int tB) 00045 { this->from = from; this->to = to;} 00049 int ALink::getFrom() 00050 { return from;} 00054 int ALink::getTo() 00055 { return to;}