AliPhysics  07fddbf (07fddbf)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliNamedString.h
Go to the documentation of this file.
1 #ifndef ALINAMEDSTRING_H
2 #define ALINAMEDSTRING_H
3 
4 // $Id$
5 
6 #include <TObjString.h>
7 
8 class AliNamedString : public TObjString {
9  public:
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
AliNamedString & operator=(const AliNamedString &)
void Clear(Option_t *="")
ClassDef(AliNamedString, 1)
const char * GetName() const
void SetName(const char *n)
const char Option_t
Definition: External.C:48