3 #include <boost/assign/list_of.hpp>
4 #include <base-logging/Logging.hpp>
13 std::map<representation::Type, MessageFormatPtr > MessageGenerator::msFormats = boost::assign::map_list_of
20 std::map<representation::Type, MessageFormatPtr >::const_iterator it = msFormats.find(type);
22 if( it != msFormats.end())
24 return it->second->apply(msg);
29 LOG_ERROR(
"%s", buffer);
30 throw std::runtime_error(buffer);
static std::string create(const ACLMessage &msg, const representation::Type &acl_representation)
const std::string TypeTxt[]
This class provides a representation of a message conforming to the FIPA specification SC00061...