ROOT logo
// @(#)root/meta:$Id$
// Author: Bianca-Cristina Cristescu   03/07/13

/*************************************************************************
 * Copyright (C) 1995-2013, Rene Brun and Fons Rademakers.               *
 * All rights reserved.                                                  *
 *                                                                       *
 * For the licensing terms see $ROOTSYS/LICENSE.                         *
 * For the list of contributors see $ROOTSYS/README/CREDITS.             *
 *************************************************************************/

#ifndef ROOT_TClassAttributeMap
#define ROOT_TClassAttributeMap


//////////////////////////////////////////////////////////////////////////
//                                                                      //
// TClassAttributeMap                                                    //
//                                                                      //
// Dictionary of attributes of a TClass.                                //
//                                                                      //
//////////////////////////////////////////////////////////////////////////


#ifndef ROOT_TObject
#include "TObject.h"
#endif
#ifndef ROOT_THashTable
#include "THashTable.h"
#endif


class TClassAttributeMap : public TObject
{
public:

   TClassAttributeMap();
   virtual ~TClassAttributeMap();

   void        AddProperty(const char* key, Int_t value);
   void        AddProperty(const char* key, const char* value);
   Bool_t      HasKey(const char* key) const;
   const char  *GetPropertyAsString(const char* key) const;
   Int_t       GetPropertyAsInt(const char* key) const;
   Int_t       GetPropertySize() const;
   Int_t       RemovePropertyInt(const char* key);
   TString     RemovePropertyString(const char* key);
   Bool_t      RemoveProperty(const char* key);
   void        Clear(Option_t* option = "");

private:

   THashTable     fStringProperty;         //all properties of String type
   THashTable     fIntProperty;            //all properties of Int type

   ClassDef(TClassAttributeMap,1)  // Container for name/value pairs of TClass attributes
};

#endif // ROOT_TClassAttributeMap

 TClassAttributeMap.h:1
 TClassAttributeMap.h:2
 TClassAttributeMap.h:3
 TClassAttributeMap.h:4
 TClassAttributeMap.h:5
 TClassAttributeMap.h:6
 TClassAttributeMap.h:7
 TClassAttributeMap.h:8
 TClassAttributeMap.h:9
 TClassAttributeMap.h:10
 TClassAttributeMap.h:11
 TClassAttributeMap.h:12
 TClassAttributeMap.h:13
 TClassAttributeMap.h:14
 TClassAttributeMap.h:15
 TClassAttributeMap.h:16
 TClassAttributeMap.h:17
 TClassAttributeMap.h:18
 TClassAttributeMap.h:19
 TClassAttributeMap.h:20
 TClassAttributeMap.h:21
 TClassAttributeMap.h:22
 TClassAttributeMap.h:23
 TClassAttributeMap.h:24
 TClassAttributeMap.h:25
 TClassAttributeMap.h:26
 TClassAttributeMap.h:27
 TClassAttributeMap.h:28
 TClassAttributeMap.h:29
 TClassAttributeMap.h:30
 TClassAttributeMap.h:31
 TClassAttributeMap.h:32
 TClassAttributeMap.h:33
 TClassAttributeMap.h:34
 TClassAttributeMap.h:35
 TClassAttributeMap.h:36
 TClassAttributeMap.h:37
 TClassAttributeMap.h:38
 TClassAttributeMap.h:39
 TClassAttributeMap.h:40
 TClassAttributeMap.h:41
 TClassAttributeMap.h:42
 TClassAttributeMap.h:43
 TClassAttributeMap.h:44
 TClassAttributeMap.h:45
 TClassAttributeMap.h:46
 TClassAttributeMap.h:47
 TClassAttributeMap.h:48
 TClassAttributeMap.h:49
 TClassAttributeMap.h:50
 TClassAttributeMap.h:51
 TClassAttributeMap.h:52
 TClassAttributeMap.h:53
 TClassAttributeMap.h:54
 TClassAttributeMap.h:55
 TClassAttributeMap.h:56
 TClassAttributeMap.h:57
 TClassAttributeMap.h:58
 TClassAttributeMap.h:59
 TClassAttributeMap.h:60