23 #ifndef _PLUGINS_PLAYER_MAPPER_FACTORY_H_
24 #define _PLUGINS_PLAYER_MAPPER_FACTORY_H_
30 class ObjectPositionInterface;
35 class Position2dProxy;
49 template <
class FawkesInterfaceType,
class PlayerProxyType,
class MapperType>
51 try_create(std::string varname,
fawkes::Interface *interface, PlayerCc::ClientProxy *proxy);
64 template <
class FawkesInterfaceType,
class PlayerProxyType,
class MapperType>
66 PlayerMapperFactory::try_create(std::string varname,
68 PlayerCc::ClientProxy *proxy)
70 FawkesInterfaceType *fi;
71 if ((fi =
dynamic_cast<FawkesInterfaceType *
>(interface)) != NULL) {
73 if ((pp =
dynamic_cast<PlayerProxyType *
>(proxy)) != NULL) {
74 return new MapperType(varname, fi, pp);
Player Fawkes mapper factory.
static PlayerProxyFawkesInterfaceMapper * create_mapper(std::string varname, fawkes::Interface *interface, PlayerCc::ClientProxy *proxy)
Create a mapp instance.
Player proxy to Fawkes interface mapper interface.
Base class for all Fawkes BlackBoard interfaces.
Fawkes library namespace.