/* * Parameters.h * openChams * * Created by damien dupuis on 18/12/09. * Copyright 2009 UPMC / LIP6. All rights reserved. * */ #ifndef __OPENCHAMS_PARAMETERS_H__ #define __OPENCHAMS_PARAMETERS_H__ #include #include "Name.h" namespace OpenChams { class Parameters { public: Parameters() {}; double getValue(Name); void addParameter(Name, double); // pour parcourir la map : inline bool isEmpty(); //inline map::iterator getFirstIt(); //inline map::iterator getLastIt(); inline const std::map& getValues(); private: std::map _params; }; inline bool Parameters::isEmpty() { return (_params.size() == 0)? true : false; } //inline map::iterator Parameters::getFirstIt() { return _params.begin(); } //inline map::iterator Parameters::getLastIt() { return _params.end(); } inline const std::map& Parameters::getValues() { return _params; }; } // namespace #endif