Logo Search packages:      
Sourcecode: kalgebra version File versions  Download package

variables.h

#ifndef VARIABLES_H
#define VARIABLES_H
#include <qvaluelist.h>
#include <qstringlist.h>
#include <qdom.h>

/**
@author Aleix Pol,,,
*/
00010 struct VARIABLE{
      QString nom;
      QDomElement valor;
};

class Variables{
      private:
            QValueList<struct VARIABLE> vars;
      public:
            Variables();
            void afegeix(QString id, QDomElement val);
            void treu(QString id, bool *ex=0);
            void modifica(QString id, QDomElement new_val);
            void modifica(QString id, double new_val);
            QDomElement value(QString id, bool *ex=NULL);
            QStringList getNoms();
            bool isvar(QDomElement e);
};

#endif

Generated by  Doxygen 1.6.0   Back to index