2 #ifndef AIDA_IANNOTATIONROOT_H
3 #define AIDA_IANNOTATIONROOT_H 1
6 #include <AIDA/IAnnotation.h>
45 const std::string &
value,
46 bool sticky =
false) ;
63 virtual std::string
value(
const std::string &
key)
const ;
72 const std::string &
value) ;
80 virtual void setSticky(
const std::string &
key,
bool sticky) ;
87 virtual int size()
const ;
95 virtual std::string
key(
int index)
const ;
103 virtual std::string
value(
int index)
const ;
109 virtual void reset() ;
virtual void setSticky(const std::string &key, bool sticky)
Set the sticky flag for a given key.
Definition: IAnnotationROOT.cc:33
virtual bool addItem(const std::string &key, const std::string &value, bool sticky=false)
The list of the commonly accepted keys : "Title" for the title.
Definition: IAnnotationROOT.cc:7
The annotation holds arbitrary information represented with (key,value) pairs of strings.
Definition: IAnnotationROOT.h:19
virtual ~IAnnotationROOT()
Destructor.
Definition: IAnnotationROOT.h:23
virtual std::string key(int index) const
Get the key at a given position within the IAnnotation.
Definition: IAnnotationROOT.cc:44
virtual bool removeItem(const std::string &key)
Remove the item indicated by a given key.
Definition: IAnnotationROOT.cc:15
virtual void setValue(const std::string &key, const std::string &value)
Set the value for a given key.
Definition: IAnnotationROOT.cc:27
virtual int size() const
Get the size of the IAnnotation, i.e.
Definition: IAnnotationROOT.cc:38
virtual void reset()
Remove all the non-sticky items.
Definition: IAnnotationROOT.cc:56
virtual std::string value(const std::string &key) const
Retrieve the value for a given key.
Definition: IAnnotationROOT.cc:21
The annotation holds arbitrary information represented with (key,value) pairs of strings.
Definition: IAnnotation.h:28