#include <string_format.h>
Definition at line 8 of file string_format.h.
◆ getAgentIdentifier()
| std::string fipa::acl::StringFormat::getAgentIdentifier |
( |
const AgentID & |
agentID | ) |
|
|
static |
Definition at line 7 of file string_format.cpp.
9 std::string agentTxt =
"(agent-identifier";
10 agentTxt +=
":name" +
getWord(agent.getName());
11 if(!agent.getAddresses().empty())
15 if(!agent.getResolvers().empty())
20 std::vector<UserdefParam>::const_iterator cit = agent.getUserdefParams().begin();
21 for(; cit != agent.getUserdefParams().end(); ++cit)
◆ getAgentIdentifierList()
| std::string fipa::acl::StringFormat::getAgentIdentifierList |
( |
const AgentIDList & |
agentList | ) |
|
|
static |
Get encoded agent identifier list
Definition at line 47 of file string_format.cpp.
49 std::string list =
"";
50 AgentIDList::const_iterator cit = agentList.begin();
51 for(; cit != agentList.end(); ++cit)
◆ getAgentIdentifierSequence()
| std::string fipa::acl::StringFormat::getAgentIdentifierSequence |
( |
const AgentIDList & |
agentList | ) |
|
|
static |
Get encoded agent identifier list (with sequence label)
Definition at line 31 of file string_format.cpp.
33 std::string list =
"(sequence";
◆ getAgentIdentifierSet()
| std::string fipa::acl::StringFormat::getAgentIdentifierSet |
( |
const AgentIDList & |
agentList | ) |
|
|
static |
Get encoded agent identifier list (with set label)
Definition at line 39 of file string_format.cpp.
41 std::string list =
"(set";
◆ getExpression()
| static std::string fipa::acl::StringFormat::getExpression |
( |
const std::string & |
txt | ) |
|
|
inlinestatic |
Get Expression Expression is encoded as a byte-length encoded string.
Definition at line 37 of file string_format.h.
◆ getString()
| std::string fipa::acl::StringFormat::getString |
( |
const std::string & |
txt | ) |
|
|
static |
Byte-length encoded string format.
Definition at line 71 of file string_format.cpp.
73 size_t size = txt.size();
75 ss <<
"#" << size <<
"\"" << txt;
◆ getUrl()
| static std::string fipa::acl::StringFormat::getUrl |
( |
const std::string & |
url | ) |
|
|
inlinestatic |
◆ getUrlSequence()
| std::string fipa::acl::StringFormat::getUrlSequence |
( |
const Addresses & |
addresses | ) |
|
|
static |
Definition at line 58 of file string_format.cpp.
60 std::string sequence =
"(sequence";
61 Addresses::const_iterator cit = addresses.begin();
62 for(; cit != addresses.end(); ++cit)
65 sequence +=
getUrl(*cit) +
" ";
◆ getUserdefinedParameter()
| static std::string fipa::acl::StringFormat::getUserdefinedParameter |
( |
const std::string & |
param | ) |
|
|
inlinestatic |
◆ getWord()
| static std::string fipa::acl::StringFormat::getWord |
( |
const std::string & |
txt | ) |
|
|
inlinestatic |
The documentation for this class was generated from the following files:
- /build/rock-master-18.09-multiagent-fipa-acl-0.20180914/src/message_generator/format/string_format.h
- /build/rock-master-18.09-multiagent-fipa-acl-0.20180914/src/message_generator/format/string_format.cpp