7 #ifndef AIDA_IANNOTATION_H
8 #define AIDA_IANNOTATION_H 1
51 virtual bool addItem(
const std::string &
key,
const std::string &
value,
bool sticky =
false) = 0;
68 virtual std::string
value(
const std::string &
key)
const = 0;
76 virtual void setValue(
const std::string &
key,
const std::string &
value) = 0;
84 virtual void setSticky(
const std::string &
key,
bool sticky) = 0;
91 virtual int size()
const = 0;
99 virtual std::string
key(
int index)
const = 0;
107 virtual std::string
value(
int index)
const = 0;
113 virtual void reset() = 0;
virtual void reset()=0
Remove all the non-sticky items.
virtual void setSticky(const std::string &key, bool sticky)=0
Set the sticky flag for a given key.
virtual bool addItem(const std::string &key, const std::string &value, bool sticky=false)=0
The list of the commonly accepted keys : "Title" for the title.
virtual std::string key(int index) const =0
Get the key at a given position within the IAnnotation.
virtual ~IAnnotation()
Destructor.
Definition: IAnnotation.h:32
virtual std::string value(const std::string &key) const =0
Retrieve the value for a given key.
virtual int size() const =0
Get the size of the IAnnotation, i.e.
virtual bool removeItem(const std::string &key)=0
Remove the item indicated by a given key.
virtual void setValue(const std::string &key, const std::string &value)=0
Set the value for a given key.
The annotation holds arbitrary information represented with (key,value) pairs of strings.
Definition: IAnnotation.h:28