StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Described.h
1 #if !defined(AFX_DESCRIBED_H__AD46D0D8_4A85_45BE_AB18_B64D1E2A4658__INCLUDED_)
2 #define AFX_DESCRIBED_H__AD46D0D8_4A85_45BE_AB18_B64D1E2A4658__INCLUDED_
3 
4 #if _MSC_VER > 1000
5 #pragma once
6 #endif // _MSC_VER > 1000
7 #include <string>
8 using std::string;
9 
18 class Described
19 {
20 public:
21  virtual ~Described();
22 
24  void setDescription(const string & description);
25 
27  const string getDescription() const;
28 
30  bool isDescribed() const;
31 
33  bool isDescription(const string & description) const;
34 
36  bool sameDescriptionAs(const Described & described) const;
37 
38  protected:
39 
41  Described(const string & aDescribe=" ");
42 
43  string _description;
44 };
45 
46 #endif // !defined(AFX_DESCRIBED_H__AD46D0D8_4A85_45BE_AB18_B64D1E2A4658__INCLUDED_)
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