1 #ifndef __VARIABLEDICT_H__
2 #define __VARIABLEDICT_H__
9 * Dictionary of variables. The variables are stored as key / value
10 * pairs (string / string).
12 * @author Andrew Mustun
18 virtual ~VariableDict();
23 void add(const QString & key, const Vector & value, int code);
24 void add(const QString & key, const QString & value, int code);
25 void add(const QString & key, int value, int code);
26 void add(const QString & key, double value, int code);
28 Vector getVector(const QString & key, const Vector & def);
29 QString getString(const QString & key, const QString & def);
30 int getInt(const QString & key, int def);
31 double getDouble(const QString & key, double def);
33 virtual void remove(const QString & key);
34 // Q3Dict<Variable> & getVariableDict();
35 QMultiHash<QString, Variable *> & getVariableDict();
37 //void addVariableDictListener(VariableDictListener* listener);
39 friend std::ostream & operator<<(std::ostream & os, VariableDict & v);
42 //! Variables for the graphic
43 // Q3Dict<Variable> variables;
44 QMultiHash<QString, Variable *> variables;