StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Described.cxx
1 #include "Sti/Base/Described.h"
2 
3 Described::Described(const string & description)
4 {
5  _description = description;
6 }
7 
8 Described::~Described()
9 {}
10 
11 void Described::setDescription(const string & description)
12 {
13  _description = description;
14 }
15 
16 const string Described::getDescription() const
17 {
18  return string(_description);
19 }
20 
22 {
23  return (_description.size()>0 && _description!=" ");
24 }
25 
26 bool Described:: isDescription(const string & description) const
27 {
28  return _description==description;
29 }
30 
31 bool Described::sameDescriptionAs(const Described & described) const
32 {
33  return _description==described._description;
34 }
35 
void setDescription(const string &description)
Set the Describe of the object.
Definition: Described.cxx:11
bool isDescription(const string &description) const
Determine whether Describe equals given Describe.
Definition: Described.cxx:26
Described(const string &aDescribe=" ")
Only derived class are Described.
Definition: Described.cxx:3
const string getDescription() const
Get the Describe of the object.
Definition: Described.cxx:16
bool sameDescriptionAs(const Described &described) const
Determine whether Describe equals that of given object.
Definition: Described.cxx:31
bool isDescribed() const
Determine whether Describe is set, i.e object has a Describe.
Definition: Described.cxx:21