/* * getLastPosition.hpp * * Created on: Aug 20, 2013 * Author: heber */ #ifndef GETLASTPOSITION_HPP_ #define GETLASTPOSITION_HPP_ // include config.h #ifdef HAVE_CONFIG_H #include #endif #include #include class getLastPosition { public: //!> typedef for list of tokens typedef std::vector ActionTokens_t; getLastPosition(const ActionTokens_t &tokens); ~getLastPosition(); /** Returns the last present action position in the requested menu. * * \param &menu token of the menu * \return last used position */ int operator()(const std::string &menu) const; private: //!> list of ActionTokens_t tokens; }; #endif /* GETLASTPOSITION_HPP_ */