]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PWG/Tools/AliNamedString.h
Fixes for coverity.
[u/mrichter/AliRoot.git] / PWG / Tools / AliNamedString.h
1 #ifndef ALINAMEDSTRING_H
2 #define ALINAMEDSTRING_H
3
4 // $Id$
5
6 #include <TObjString.h>
7
8 class AliNamedString : public TObjString {
9  public: 
10   AliNamedString();
11   AliNamedString(const char *name, const char *string="");
12
13   void Clear(Option_t* /*option*/="")           { SetString("")      ; }
14
15   const char* GetName()               const { return fName       ; }
16   void        SetName(const char* n)        { fName = n          ; }
17
18  protected:
19   TString fName; // name of the string object
20   
21  private:
22   AliNamedString(const AliNamedString&);             // not implemented
23   AliNamedString& operator=(const AliNamedString&);  // not implemented
24   
25   ClassDef(AliNamedString, 1); // Named string object
26 };
27 #endif