00001 #include "Sti/Base/Described.h" 00002 00003 Described::Described(const string & description) 00004 { 00005 _description = description; 00006 } 00007 00008 Described::~Described() 00009 {} 00010 00011 void Described::setDescription(const string & description) 00012 { 00013 _description = description; 00014 } 00015 00016 const string Described::getDescription() const 00017 { 00018 return string(_description); 00019 } 00020 00021 bool Described::isDescribed() const 00022 { 00023 return (_description.size()>0 && _description!=" "); 00024 } 00025 00026 bool Described:: isDescription(const string & description) const 00027 { 00028 return _description==description; 00029 } 00030 00031 bool Described::sameDescriptionAs(const Described & described) const 00032 { 00033 return _description==described._description; 00034 } 00035
1.5.9