* @file system.h
* @brief Contains a system typedefs used to reuse code.
* @author Diego CACERES (diego.caceres[AT]creatis.insa-lyon.fr)
- * @date 2011-05-24
-*/
+ * @date 2011-06-02
+ */
#ifndef SYSTEM_H_
#define SYSTEM_H_
#include <map>
#include <iostream>
#include <exception>
+#include <string>
#include "functor.h"
/*! @namespace <creaButtonContainer>
*/
namespace creaButtonContainer
{
+ // ----------------------------------------------------------------------------------
+ /*! @typedef std::string* StringType;
+ * @brief Defines the StringType type.
+ */
+ typedef std::string StringType;
+ // ----------------------------------------------------------------------------------
/*! @typedef model::TFunctor* FunctionEventType;
* @brief Defines the FunctionEventType type.
*/
* @brief Defines the ActionButton type.
* First is the button description, Second FunctionEventType
*/
- typedef std::pair< std::string, FunctionEventType > ButtonAction;
+ typedef std::pair< StringType, FunctionEventType > ButtonAction;
// ----------------------------------------------------------------------------------
/*! @typedef std::pair< std::string, std::string > ButtonInfo;
* @brief Defines the ButtonInfo type.
* First is the ButtonName and Second is the IconPath
*/
- typedef std::pair< std::string, std::string > ButtonInfo;
+ typedef std::pair< StringType, StringType > ButtonInfo;
// ----------------------------------------------------------------------------------
/*! @typedef std::pair< ButtonInfo*, ActionButton* > ButtonPair;
* @brief Defines the ButtonPair type.
/*! @typedef std::list< std::string > KeyMapList;
* @brief Defines the KeyMapList type.
*/
- typedef std::list< std::string > KeyMapList;
+ typedef std::list< StringType > KeyMapList;
// ----------------------------------------------------------------------------------
/*! @typedef std::list< ButtonPair* > ButtonList;
* @brief Defines the ButtonList type.
/*! @typedef std::map< std::string, ButtonList > ButtonGroupMap;
* @brief Defines the ButtonGroupMap type.
*/
- typedef std::map< std::string, ButtonList > ButtonGroupMap;
+ typedef std::map< StringType, ButtonList > ButtonGroupMap;
// ----------------------------------------------------------------------------------
}