13 using namespace MessageField;
15 std::string msg =
"(";
16 msg += aclMsg.getPerformative();
18 const AgentID& sender = aclMsg.getSender();
24 const AgentIDList& receivers = aclMsg.getAllReceivers();
25 if(!receivers.empty())
30 if(!aclMsg.getContentPtr()->empty())
32 size_t size = aclMsg.getContentPtr()->size();
39 const std::string& replyWith = aclMsg.getReplyWith();
40 if(!replyWith.empty())
46 base::Time replyBy = aclMsg.getReplyBy();
49 std::string replyByString = replyBy.toString(base::Time::Milliseconds,
"%Y%m%dT%H%M%S");
50 boost::erase_all(replyByString,
":");
55 const std::string& inReplyTo = aclMsg.getInReplyTo();
56 if(!inReplyTo.empty())
61 const AgentIDList& replyTo = aclMsg.getAllReplyTo();
67 const std::string& language = aclMsg.getLanguage();
73 const std::string& encoding = aclMsg.getEncoding();
79 const std::string& ontology = aclMsg.getOntology();
85 const std::string& protocol = aclMsg.getProtocol();
91 const std::string& conversationId = aclMsg.getConversationID();
92 if(!conversationId.empty())
97 const std::vector<fipa::acl::UserdefParam>& parameters = aclMsg.getUserdefParams();
98 std::vector<fipa::acl::UserdefParam>::const_iterator cit = parameters.begin();
99 for(; cit != parameters.end(); ++cit)
std::map< MessageField::Type, std::string > MessageFieldTxt
std::vector< AgentID > AgentIDList