Back to home page

EIC code displayed by LXR

 
 

    


Warning, file /include/root/TDictAttributeMap.h was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

0001 // @(#)root/meta:$Id$
0002 // Author: Bianca-Cristina Cristescu   03/07/13
0003 
0004 /*************************************************************************
0005  * Copyright (C) 1995-2013, Rene Brun and Fons Rademakers.               *
0006  * All rights reserved.                                                  *
0007  *                                                                       *
0008  * For the licensing terms see $ROOTSYS/LICENSE.                         *
0009  * For the list of contributors see $ROOTSYS/README/CREDITS.             *
0010  *************************************************************************/
0011 
0012 #ifndef ROOT_TDictAttributeMap
0013 #define ROOT_TDictAttributeMap
0014 
0015 
0016 //////////////////////////////////////////////////////////////////////////
0017 //                                                                      //
0018 // TDictAttributeMap                                                    //
0019 //                                                                      //
0020 // Dictionary of attributes of a TClass.                                //
0021 //                                                                      //
0022 //////////////////////////////////////////////////////////////////////////
0023 
0024 
0025 #include "TObject.h"
0026 #include "THashTable.h"
0027 
0028 
0029 class TDictAttributeMap : public TObject
0030 {
0031 public:
0032 
0033    TDictAttributeMap();
0034    virtual ~TDictAttributeMap();
0035 
0036    void        AddProperty(const char* key, const char* value);
0037    Bool_t      HasKey(const char* key) const;
0038    const char  *GetPropertyAsString(const char* key) const;
0039    Int_t       GetPropertySize() const { return fStringProperty.GetSize(); }
0040    TString     RemovePropertyString(const char* key);
0041    Bool_t      RemoveProperty(const char* key);
0042    void        Clear(Option_t* option = "") override;
0043 
0044 private:
0045 
0046    THashTable     fStringProperty;         //all properties of String type
0047 
0048    ClassDefOverride(TDictAttributeMap,2)  // Container for name/value pairs of TDictionary attributes
0049 };
0050 
0051 #endif // ROOT_TDictAttributeMap
0052