ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
TPropertyListAdapter Class Reference

#include <RootType.h>

Collaboration diagram for TPropertyListAdapter:

Public Member Functions

 TPropertyListAdapter (TDictAttributeMap *dam)
 
Bool_t HasProperty (const std::string &key) const
 
std::string PropertyAsString (const std::string &key) const
 

Private Attributes

TDictAttributeMap * fAttributes
 

Detailed Description

Definition at line 37 of file RootType.h.

Constructor & Destructor Documentation

◆ TPropertyListAdapter()

TPropertyListAdapter::TPropertyListAdapter ( TDictAttributeMap *  dam)
inline

Definition at line 39 of file RootType.h.

39 : fAttributes( dam ) {}

Member Function Documentation

◆ HasProperty()

Bool_t TPropertyListAdapter::HasProperty ( const std::string &  key) const

Definition at line 74 of file RootType.cxx.

75 {
76  if ( fAttributes )
77  return fAttributes->HasKey( map_property( key ).c_str() );
78  return kFALSE;
79 }

◆ PropertyAsString()

std::string TPropertyListAdapter::PropertyAsString ( const std::string &  key) const

Definition at line 83 of file RootType.cxx.

84 {
85  if ( fAttributes )
86  return fAttributes->GetPropertyAsString( map_property( key ).c_str() );
87  return "";
88 }

Member Data Documentation

◆ fAttributes

TDictAttributeMap* TPropertyListAdapter::fAttributes
private

Definition at line 46 of file RootType.h.


The documentation for this class was generated from the following files:
TPropertyListAdapter::fAttributes
TDictAttributeMap * fAttributes
Definition: RootType.h:46
mapkey::key
key
Definition: TElectronEfficiencyCorrectionTool.cxx:37